Describe the Prometheus architecture.

BeginnerConceptPrometheus Architecture
Answer
flowchart LR
    SD["Service discovery"] --> P["Prometheus server"]
    T["Targets and exporters"] -->|"scrape /metrics"| P
    PG["Pushgateway"] -->|"scrape"| P
    P --> TSDB["Local TSDB"]
    P -->|"alerts"| AM["Alertmanager"]
    P -->|"remote_write"| LTS["Thanos / Mimir"]
    G["Grafana"] -->|"PromQL"| P
    AM --> N["Slack / PagerDuty / Email"]

The server discovers targets, scrapes them over HTTP, stores samples in its local TSDB, evaluates recording and alerting rules, and sends firing alerts to Alertmanager. Grafana and the HTTP API query it with PromQL.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus Architecture