Skip to content
Snippets Groups Projects
Unverified Commit 6ca476fe authored by Anton Tolchanov's avatar Anton Tolchanov Committed by GitHub
Browse files

Add prometheus metric naming guidelines (#37149)


* Add prometheus metric naming guidelines.

* Update homeassistant/components/prometheus/README.md

Co-authored-by: default avatarMartin Weinelt <mweinelt@users.noreply.github.com>

Co-authored-by: default avatarMartin Weinelt <mweinelt@users.noreply.github.com>
parent b64ae55c
No related branches found
No related tags found
No related merge requests found
# Prometheus integration
This integration exposes metrics in a Prometheus compatible format.
## Metric naming guidelines
Please follow these guidelines while defining metrics.
* Metric and label names should conform to [Prometheus
naming guidelines](https://prometheus.io/docs/practices/naming/).
* Domain-specific metrics should have the domain (`sensor`, `switch`,
`climate`, etc.) as a metric name prefix.
* Enum-like values (e.g. entity state or current mode) should be exported using
a "boolean" metric (values of 0 or 1) broken down by state/mode (as a metric
label).
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment