Prometheus - Label (Dimension)

Scale Counter Graph

About

A label in Prometheus is specified in a metric and allows dimensional data model

Any given combination of labels for the same metric name identifies a particular dimensional instantiation of that metric (for example: all HTTP requests that used the method POST to the /api/tracks handler).

The query language allows filtering and aggregation based on these dimensions.

Changing any label value, including adding or removing a label, will create a new time series.

Example

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

where:

  • the metric name is api_http_requests_total
  • the labels are:
    • method=“POST”
    • handler=“/messages”

Syntax

name=value

Example of two labels:

method="POST"
handler="/messages"

Properties

Name

Label names may contain:

They must match the regex [a-zA-Z_][a-zA-Z0-9_]*.

Label names beginning with __ are reserved for internal use.

More … naming

Value

Label values may contain any Unicode characters.

A label with an empty label value is considered equivalent to a label that does not exist.





Discover More
Scale Counter Graph
Prometheus - Label (Dimension)

A label in Prometheus is specified in a metric and allows dimensional data model Any given combination of labels for the same metric name identifies a particular dimensional instantiation of that metric...
Scale Counter Graph
Prometheus - Metrics

This page is metrics in Prometheus. where: the metric name is api_http_requests_total the labels are: method=“POST” handler=“/messages” A metric identifier is composed uniquely...
Scale Counter Graph
Prometheus - Time Serie

All data stored and manipulated are time series in Prometheus server making it a time serie database. Every time series is uniquely identified by: its metric name and optional key-value pairs called...



Share this page:
Follow us:
Task Runner