Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Prometheus metrics naming based on device_class and unit_of_measurement #24103
The naming of metrics has been changed and doesn't use the entity_id anymore.
Current version of prometheus creates way to many metrics based on entity id name.
This PR will try to use the device_class first, and secondly the unit of measurement to create the name of the metric.
This means all
Also adds support for glob filtering of devices to change metric.
Updates prometheus_client to 0.7.1
Related issue (if applicable): fixes #
Example entry for