cloudposse / prometheus-to-cloudwatch

Utility for scraping Prometheus metrics from a Prometheus client endpoint and publishing them to CloudWatch
https://cloudposse.com/accelerate
Apache License 2.0
169 stars 37 forks source link

feat: add ability to exclude dimensions per-metric #28

Closed austince closed 5 years ago

austince commented 5 years ago

Closes #27

This feature allows users to exclude a set of dimensions on a per-metric basis. It should be easy enough to add a dimensions whitelist as well, which seems to be in the style of this application, which I'd be happy to add as well.

This attempts to deal with the 10 dimensions/metric constraint in Cloudwatch, where sometimes the valuable dimensions are left out.

The format is:

EXCLUDE_DIMENSIONS_FOR_METRICS=metric_glob*=dim1,dim2;metric2_*=dim3;
# will exclude 'dim1' and 'dim2' from any metric matching 'metric_glob*'
# and 'dim3' from any metric matching 'metric2_*'
austince commented 5 years ago

Great, thank you for the quick review @aknysh!