Migrate from a self-managed Prometheus to a managed or long-term storage setup. What do you consider?
IntermediateScenarioMigrations
Answer
Situation read → Usually triggered by retention limits, HA gaps or multi-cluster views. Pick the backend, then migrate without losing alerting.
What I'd do →
- Requirements: retention, query across clusters, cost per active series, and who runs it.
- Options: Amazon Managed Service for Prometheus, Grafana Cloud, or self-hosted Thanos or Mimir with S3 storage.
- Add
remote_writefrom existing Prometheus instances; both run in parallel.
remote_write:
- url: https://aps-workspaces.ap-south-1.amazonaws.com/workspaces/ws-abc/api/v1/remote_write
sigv4:
region: ap-south-1
- Migrate recording and alerting rules, point Grafana at the new datasource, and compare alert behaviour for a week.
- Reduce cardinality before migrating; managed services bill per sample or series.
Why → Running both in parallel catches missing rules and label differences before you rely on the new system.
Interview tip → Mention cardinality as a cost driver.
More on Migrations
Migrate an application from EC2 to EKS with zero downtime. Walk me through it.AdvancedMigrate a database from on-prem MySQL to Amazon RDS with minimal downtime. How?AdvancedYou need to move Terraform state from local files to an S3 backend. How?BeginnerMigrate CI from Jenkins to GitHub Actions for 80 repositories. How do you plan it?IntermediateUpgrade an EKS cluster from 1.30 to 1.31 in production. What's your process?IntermediateMove from a monolith to microservices. What's the DevOps side of the migration?Advanced