metric name

The name that identifies what a metric measures, such as http_request_duration_seconds.

In more detail

Names are the interface other people build on, so Prometheus conventions matter: base units such as seconds and bytes, _total at the end of a counter, and no values encoded in the name. Put variations such as status or route in labels, because you can add across a label but not across different names.

Example

Good: http_requests_total{status="500"}. Bad: checkout_requests_from_mobile.

Related terms

Taught in

References

Certification courses