Skip to content

Home Assistant Custom Component for quering Prometheus values

License

Notifications You must be signed in to change notification settings

Adi146/home-assistant-promql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hacs_badge

Home Assistant PromQL

This is a custom component for quering Prometheus values with Home Assistant.

Installation

  1. Install this Integration as a HACS custom repository or just copy the content of the custom_components folder.
  2. Add a query by navigating to Configuration -> Integrations -> Add Integration and search for PromQL

Sensors

The integration will create a seperate sensor for each combination of labels.

You can also use complex PromQL queries like e.g.

100 - (avg by (instance) (irate(node_cpu_seconds_total{job="node",mode="idle"}[5m])) * 100)

About

Home Assistant Custom Component for quering Prometheus values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages