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 →
- Keep local Prometheus (or agents) in each environment for scraping and local alerts.
remote_writefrom both to one central store (AMP, Mimir or Thanos Receive), over VPN/Direct Connect or HTTPS with auth.- Standardise labels:
env,site,cluster,teamviaexternal_labels. - Use the same recording rules and dashboards in both places.
- 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.
More on Cloud Monitoring, Incidents and Migrations
A new AWS workload uses EC2, an ALB and RDS, with only CloudWatch available. Which alarms do you create first?BeginnerThe CloudWatch bill jumped from $2k to $15k a month. How do you find and cut the cost?IntermediateYour company has 50 AWS accounts. How do you get one monitoring view?IntermediateYour team uses Prometheus and Grafana, but RDS, SQS and ALB metrics live only in CloudWatch. How do you unify?IntermediateHow do you monitor a fleet of AWS Lambda functions?BeginnerYour RDS PostgreSQL database gets slow every afternoon. What monitoring do you use to find out why?Beginner