Federation — aggregation of metrics from multiple Prometheus. Long-term Storage — storing historical data.
Federation:
1scrape_configs:2 - job_name: "federation"3 honor_labels: true4 metrics_path: "/federate"5 params:6 "match[]":7 - "{job=~".*"}"8 static_configs:9 - targets:10 - "prometheus-us:9090"11 - "prometheus-eu:9090"
Thanos (long-term):
Prometheus → Thanos Sidecar → S3 → Thanos Query → Grafana
Alternatives: Cortex, Mimir.