Extending Prometheus Globally with Thanos
The remote storage systems that we covered in the previous chapter are not for everyone. Perhaps you are perfectly happy to run your Prometheus instances globally without any centralized place where you’re aggregating those metrics. However, it sure would be nice to have some way to run queries from a centralized place and fan them out to all of your Prometheus instances… Good news! Thanos can do that, and more!
Thanos is less of a pre-built, comprehensive solution the way VictoriaMetrics or Mimir are, and more of a Swiss Army knife of a la carte components that can be mixed and matched to fit your specific use case. At the time of writing, seven different components comprise the Thanos project and you can run as few or as many of them as you need.
In this chapter, we’ll cover them all in these main topics:
- Overview of Thanos
- Thanos Sidecar
- Thanos Compactor
- Thanos Query
- Thanos Query Frontend...