What are the Thanos components?
IntermediateConceptKubernetes Monitoring, Scale & Cloud
Answer
| Component | Role |
|---|---|
| Sidecar | Runs next to Prometheus, uploads 2h TSDB blocks to object storage, serves recent data via the Store API |
| Store Gateway | Serves historical blocks from object storage |
| Querier (Query) | PromQL engine that fans out to sidecars, stores and receivers; deduplicates HA replicas |
| Query Frontend | Splits long queries by time, caches results |
| Compactor | Compacts blocks, downsamples to 5m and 1h, applies retention; run exactly one per bucket |
| Ruler | Evaluates rules against the Querier for global alerts |
| Receive | Accepts remote_write instead of the sidecar model |
flowchart LR
P["Prometheus + Sidecar"] --> S3["Object storage"]
S3 --> SG["Store Gateway"]
Q["Querier"] --> P
Q --> SG
G["Grafana"] --> QF["Query Frontend"] --> Q
More on Kubernetes Monitoring, Scale & Cloud
What is kube-prometheus-stack and what does it install?BeginnerWhat CRDs does the Prometheus Operator provide?IntermediateHow does the Prometheus Operator decide which ServiceMonitors to load?IntermediateWhich cAdvisor container memory metric should you watch, and why?IntermediateHow do metrics-server and the custom/external metrics APIs relate to HPA?IntermediateWhich kube-state-metrics metrics do you use most?Beginner