Interview Prep/Monitoring & Observability/Scaling Prometheus, Long-Term Storage & HA

When does hierarchical federation still make sense?

IntermediateProductionScaling Prometheus, Long-Term Storage & HA
Answer

When a global Prometheus only needs a small set of pre-aggregated series from each cluster: recording rules like job:http_requests:rate5m. It is cheap and simple.

- job_name: federate
  honor_labels: true
  metrics_path: /federate
  params:
    'match[]': ['{__name__=~"job:.*"}']
  static_configs:
    - targets: ['prom-eu-1:9090', 'prom-us-1:9090']

It breaks down for raw data, long retention or many clusters: big /federate scrapes time out and there is no HA. That is when remote_write or Thanos comes in.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Scaling Prometheus, Long-Term Storage & HA