Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
holyjak opened this issue May 3, 2015 · 3 comments
Open

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

holyjak opened this issue May 3, 2015 · 3 comments

Comments

@holyjak
Copy link

holyjak commented May 3, 2015

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!

@crccheck
Copy link
Owner

crccheck commented May 3, 2015

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.

@holyjak
Copy link
Author

holyjak commented May 5, 2015

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

@crccheck
Copy link
Owner

crccheck commented May 5, 2015

I may just move all that to the github wiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants