cloudwatch-to-graphite icon indicating copy to clipboard operation
cloudwatch-to-graphite copied to clipboard

Doc: Provide a more involved config file (example provided)

Open holyjak opened this issue 9 years ago • 3 comments

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!

holyjak avatar May 03 '15 13:05 holyjak

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.

crccheck avatar May 03 '15 14:05 crccheck

Oh, I haven't noticed what plumbum if for until now.

holyjak avatar May 05 '15 09:05 holyjak

I may just move all that to the github wiki

crccheck avatar May 05 '15 13:05 crccheck