Interview Prep/Monitoring & Observability/Cloud Monitoring, Incidents and Migrations

You run Prometheus in an on-prem datacenter and on AWS. How do you unify metrics?

IntermediateScenarioCloud Monitoring, Incidents and Migrations
Answer

Situation read → Two environments, networks with firewalls, and one team that needs one view.

What I'd do →

  1. Keep local Prometheus (or agents) in each environment for scraping and local alerts.
  2. remote_write from both to one central store (AMP, Mimir or Thanos Receive), over VPN/Direct Connect or HTTPS with auth.
  3. Standardise labels: env, site, cluster, team via external_labels.
  4. Use the same recording rules and dashboards in both places.
  5. Monitor the link: alert on remote write lag per site.

Why → A single store and consistent labels make cross-environment comparison possible.

Interview tip → Outbound-only remote_write is firewall-friendly compared with inbound scraping.

All Monitoring & Observability questions

More on Cloud Monitoring, Incidents and Migrations