CloudWatch remote read adapter for Prometheus.
Add following setting to prometheus.yml
.
remote_read:
- url: http://localhost:9415/read
And then, launch read adapter.
./cloudwatch_read_adapter
This read apadter use AWS SDK for Go
, read credentials from Environment variables, IAM role for Amazon EC2, etc.
Please read following document.
https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html
Specify CloudWatch GetMetricStatistics parameters as label.
{Region="us-east-1",Namespace="AWS/EC2",MetricName="CPUUtilization",InstanceId="i-0123456789abcdefg",Statistics="Average",Period="300"}
Now, this plugin doesn't support regex matcher.