cloudwatch-to-graphite
cloudwatch-to-graphite copied to clipboard
Doc: Provide a more involved config file (example provided)
The provided sample config file is little to simple to be useful, especially for those not too familiar with YAML. Here is a more complex one that avoids duplication via YAML anchor+alias. It would be helpful to include some of this, I believe.
# Define defaults that can be referenced below
My_Defaults:
- &ElbMetric
Namespace: "AWS/ELB"
Dimensions:
# You can have multiple dimensions, but boto will only return the last one
LoadBalancerName: "awseb-e-v-AWSEBLoa-ZELK76TU0GP"
Auth:
region: "us-west-1"
Metrics:
- <<: *ElbMetric
MetricName: "RequestCount"
Statistics: "Sum"
Unit: "Count"
# You can list additional metrics in one file. Just be careful about rate limits.
- <<: *ElbMetric
MetricName: "UnHealthyHostCount"
Statistics: "Maximum"
Unit: "Count"
# You can list additional metrics in one file. Just be careful about rate limits.
- <<: *ElbMetric
MetricName: "Latency"
Statistics:
- "Average"
- "Maximum"
Unit: "Seconds"
- <<: *ElbMetric
MetricName: "HTTPCode_ELB_5XX"
Statistics: "Sum"
Unit: "Count"
# OPTIONAL: set defaults for all metrics in this file
Options:
Count: 1 # How many Periods to return (note: there is a max num datapoints you can get at once)
Period: 5 # [min], minimum 1
Thank you!
Oh neat. There's also a bunch of sample templates for plumbum
(but not leadbutt
) in ./sample_templates that are based off actual templates I've used.
Oh, I haven't noticed what plumbum
if for until now.
I may just move all that to the github wiki