Replaces PR #2262 .
Internal version of this functionality had diverged sufficiently from original PR that it is cleaner to start afresh
Requires a role with the ListMetrics and GetMetricData capabilities.
Role can be supplied using either the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables or by attaching it to the EC2 instance on which bosun runs.
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How has this been tested?
[x] CloudWatch query functionality had good unit test coverage
[x] Has been used in production in Skyscanner for several years
Description
Replaces PR #2262 . Internal version of this functionality had diverged sufficiently from original PR that it is cleaner to start afresh
Requires a role with the ListMetrics and GetMetricData capabilities. Role can be supplied using either the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables or by attaching it to the EC2 instance on which bosun runs.
Type of change
How has this been tested?
Checklist: