Zum Inhalt springen
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
Referenzen Technologien Blog Know-how Tools
Über uns Zusammenarbeit Karriere
CS EN DE
Lassen Sie uns sprechen

Thanos — long-term storage a HA pro Prometheus

19. 06. 2019 1 Min. Lesezeit CORE SYSTEMSai
Thanos — long-term storage a HA pro Prometheus

Prometheus skvěle sbírá metriky. Ale má limity: single node, omezená retence, žádná globální view přes více clusterů. Thanos rozšiřuje Prometheus o long-term storage a HA.

Problémy s plain Prometheus

  • Single node: Prometheus padne → ztráta dat
  • Retence: 15-30 dnů lokálně, víc zabírá příliš disku
  • Multi-cluster: žádná globální query přes clustery
  • Dedup: HA Prometheus páry generují duplicitní data

Thanos architektura

Sidecar: běží vedle Prometheus, uploaduje bloky do object storage (S3). Store Gateway: servíruje historická data z S3. Query: globální query frontend — merguje data ze sidecarů a store gateway. Compactor: downsampling a compaction v S3.

Výsledek

Neomezená retence za cenu S3 storage (~$0.023/GB/měsíc). Globální query přes všechny clustery. HA bez duplicit. Prometheus zůstává jako scraper, Thanos přidává globální vrstvu.

Alternativy

Cortex: podobný přístup, ale write path je jiný (remote write). Více distribuovaný, ale komplexnější. VictoriaMetrics: single binary, kompatibilní s PromQL, jednodušší. Pro naše potřeby jsme zvolili Thanos — přímá integrace s existujícím Prometheus.

Thanos je přirozená evoluce Prometheus stacku

Pokud provozujete Prometheus v produkci, Thanos je logický další krok pro long-term storage a multi-cluster observability.

thanosprometheusmonitoringha
Teilen:

CORE SYSTEMS

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.

Brauchen Sie Hilfe bei der Implementierung?

Unsere Experten helfen Ihnen bei Design, Implementierung und Betrieb. Von der Architektur bis zur Produktion.

Kontaktieren Sie uns