Prometheus Architecture
Prometheus Architecture at its core has the main component called Prometheus server that does the actual monitoring work and is made up of three parts:
- Time Series Database that stores all the metrics data like current CPU usage or number of exceptions in an application per second.
- Data Retrieval Worker that is responsible for getting or pulling those metrics from applications services, servers and other target resources and storing them or pushing them into that database.
- Web Server that accepts queries for that stored data and that web server component, or the Server API that is used to display the data in a dashboard or UI either through Prometheus Dashboard or some other data visualization tool like Grafana.
Kubernetes Prometheus
With modern DevOps becoming more and more complex, monitoring and alerting stakeholders has become even more crucial for any microservice, and Prometheus is a tool to do the same. Prometheus is a completely open-sourced tool created to monitor highly dynamic container environments like Kubernetes, Docker Swarm, etc. However, it can also be used in a traditional non-container infrastructure where you have just bare servers with applications deployed directly on them. In this article, we will learn what prometheus is. We will see why Prometheus is so important in such infrastructure. And what are some of its use cases?
Table of Content
- What is Prometheus Monitoring?
- Why use Prometheus for Kubernetes monitoring?
- Prometheus Architecture
- Key Terminologies
- Tutorial – Deploying Prometheus Monitoring in Kubernetes Cluster
- Step 1: Creating a Kubernetes Cluster
- Step 2: Installing Helm
- Step 3: Adding the Prometheus repository
- Step 4: Installing Prometheus
- Step 5: Checking all the resources installed
- Step 6: Expose the “prometheus-server” Service
- Advantages of Prometheus
- How Prometheus compares to other Kubernetes monitoring tools
- The challenges of Prometheus scaling and monitoring
- Increased management overhead for SREs and platform teams
- Prometheus Kubernetes Service Discovery
- Conclusion
- Kubernetes Prometheus – FAQ’s