Skip to the content.

Prometheus

What is Prometheus

Prometheus is a server-based monitoring system where typically, you run one instance per environment.

Time-series data

PromQL

Server Configurations

Exporters

To monitor systems with Prometheus, you need to run an exporter on each system.

For example, to monitor a Linux server, you would run a node exporter on it. This exporter provides an HTTP endpoint that returns all current metric values in the Prometheus format.

<metric name>{<label name>=<label value>, ...} 

An example of a time series could be an entry with the metric name api_http_requests_total and the labels method="POST" and handler="/messages".

api_http_requests_total{method="POST", handler="/messages"}  

The entire monitoring stack runs on a single, lightweight server. Additionally, many exporters, developed by the community or the Prometheus project, are available for various use cases, including:

For application-level metrics, Prometheus also supports several client libraries, including:

Counters and Gauges

Resources