hass-core/homeassistant/components/prometheus
tkdrob ab53b49d3f
Clean up constants (#46948)
* Clean up constants

* clean up humidifier constants

* fix tests

* fix prometheus tests

Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
2021-03-02 12:52:00 +01:00
..
__init__.py Clean up constants (#46948) 2021-03-02 12:52:00 +01:00
manifest.json Add @knyar as a codeowner for prometheus integration (#36487) 2020-06-05 21:29:06 +02:00
README.md Add prometheus metric naming guidelines (#37149) 2020-07-05 19:00:37 +02:00

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.
  • 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).