Prometheus : PromQL Example Queries

Channel:
Subscribers:
24,900
Published on ● Video Link: https://www.youtube.com/watch?v=AvR5bIDRgbg



Duration: 14:07
0 views
2


Documentation : https://sbcode.net/prometheus/example-queries/

Now that we have a few scape targets, it is time to delve into queries.

The query language used in Prometheus is called PromQL (Prometheus Query Language).

The data can either be viewed as a gfraph, as tabled data, or in external systems such as Grafana, Zabbix and others.

Example,

`scrape_duration_seconds`

This shows multiple time series results. 1 for each target,

we can filter for 1 target by including either the `instance`, or `job` labels

`scrape_duration_seconds{instance="localhost:9100"}`

See video for more examples of using regex and PromQL functions.







Tags:
prometheus
prometheus course
prometheus tutorial
prometheus engineer
prometheus promql
promql examples
promql queries