We will explain the Prometheus architecture by discussing its key components:
- Prometheus server: This is the heart of Prometheus and does the main job of scraping and storing time series data. pull-metrics pulls the time series data from jobs or exporters using HTTP endpoints. For example, Prometheus would pull the different metrics and other data from api-service based on the configuration done on Prometheus (.yml file). Once metrics are scraped, they are stored locally. Then, Prometheus server runs rules on the stored data to generate time series data or raise alerts.
- Pushgateway: This is used for fetching data from short-lived jobs. Short-lived jobs push metrics before exiting to Pushgateway. Prometheus server pulls metrics ...