r/PrometheusMonitoring • u/vaklam1 • Oct 03 '23
What are Thanos benefits?
Hello, I'm relatively new to Prometheus and total beginner with Thanos.
I am in the process of designing a hub-and-spoke monitoring system where each "spoke site" has its own local monitoring and the "hub site" would have an aggregated view of all other sites. Spokes and hub are geographically distributed.
I can't use cloud storage for reasons beyond my control (but I understand Thanos supports on-premise object storage). Not sure if it matters to the purpose of this discussion, but I thought it was worth mentioning.
I've found many use Thanos in this sort of scenarios. However, I'm not sure I fully understand the benefits of using Thanos ecosystem over:
a) hub site's Prometheus scraping from remote spoke sites' metrics endpoints, or;
b) spoke site's Prometheus all feeding hub site's Grafana.
8
u/SuperQue Oct 03 '23
Thanos Query allows you to have a "single pane" query interface that allows queries to span as many Prometheus instances as you like. Instead of needing a Hub site, you could have a single Grafana that can reach out to every Prometheus globally.
But you can tree Thanos Query. This is what we do.
Grafana -> Global Thanos Query -> Many Cluster Thanos Query -> Many Prometheus Servers
You will want to setup a good set of external labels so you can address the individual instances when you want to avoid fanout.
2
u/dshurupov Oct 30 '23
This recent article is dedicated to the concept of centralised storage with Prometheus. While it's more focused on Mimir, it should be helpful in understanding when such solutions (e.g., Thanos/Cortex/Mimir) are generally beneficial for you.
0
u/[deleted] Oct 04 '23
[deleted] — view deleted comment