Hello!
Prometheus has the following job config:
- job_name: cloudwatch
static_configs:
- targets: ['localhost:9106']
And cloudwatch exporter config:
region: us-east-1
range_seconds: 60
delay_seconds: 300
metrics:
- aws_namespace: AWS/ApplicationELB
aws_metric_name: TargetResponseTime
aws_dimensions: [LoadBalancer]
aws_statistics: [Average]
aws_extended_statistics: [p95, p99]
period_seconds: 1
Problem that cloudwatch metrics are collecting with 300 seconds delay (because of cloudwatch delay), but prometheus thinks that this is current time, so metrics on grafana dashboards are shifted by 5 minutes.
Example screenshot from grafana with cloudwatch metric source (directly from aws api) and prometheus metric source below.
