The metric and label conventions presented in this document are not required
The metric and label conventions presented in this document are not required
for using Prometheus, but can serve as both a style-guide and collection of
for using Prometheus, but can serve as both a style-guide and a collection of
best practices. Individual organizations may want to approach e.g. naming
best practices. Individual organizations may want to approach e.g. naming
conventions differently.
conventions differently.
## Metric names
## Metric names
A metric name:
A metric name...
*should have a (single-word) application prefix relevant to the containing Prometheus domain
*...should have a (single-word) application prefix relevant to the domain the metric belongs to. The prefix is sometimes referred to as `namespace` by client libraries. For metrics specific to an application, the prefix is usually the application name itself. Sometimes, however, metrics are more generic, like standardized metrics exported by client libraries. Examples: