Interview Prep/Monitoring & Observability/Observability as Code, Security & Vendor Choices

How do you get CloudWatch metrics into Prometheus or Grafana?

IntermediateProductionObservability as Code, Security & Vendor Choices
Answer

Three patterns:

  1. Grafana CloudWatch data source: query CloudWatch directly from dashboards. Simplest, no copy, but no PromQL and every panel refresh is an API call.
  2. YACE (yet-another-cloudwatch-exporter, prometheus-community): discovers resources by tag and exports metrics as Prometheus series with resource tags as labels. Good for alerting in Alertmanager alongside everything else.
  3. CloudWatch metric streams → Firehose → backend: near real-time push, cheaper than polling at scale, supported by most vendors and Grafana Cloud.

Remember CloudWatch metrics arrive with 1–5 minute delay; set YACE delay/period and alert for: durations accordingly, or you will see false gaps.

All Monitoring & Observability questions

More on Observability as Code, Security & Vendor Choices