mirror of
https://github.com/nikdoof/homeassistant-prometheus-query.git
synced 2025-12-18 04:59:21 +00:00
Modified manifest.json to match new requirements, chaged the folder name with underscore
This commit is contained in:
@@ -8,7 +8,7 @@ To enable it, add the following lines to your `configuration.yaml`:
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
sensor:
|
||||
- platform: prometheus-query
|
||||
- platform: prometheus_query
|
||||
name: Temperature Pisa
|
||||
prometheus_url: http://localhost:9090
|
||||
prometheus_query: temperature{location="Pisa",province="PI",region="Tuscany"}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"name": "Prometheus query sensor",
|
||||
"version": "2021.06.1",
|
||||
"documentation": "https://github.com/lfasci/homeassistant-prometheus-query",
|
||||
"dependencies": "prometheus_client",
|
||||
"codeowners": ["lfasci"],
|
||||
"requirements": ["prometheus_client","requests"]
|
||||
"requirements": ["prometheus-client==0.9.0", "requests==2.25.0"]
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ from homeassistant.const import (
|
||||
|
||||
from prometheus_client import Summary
|
||||
|
||||
DOMAIN = 'prometheus'
|
||||
CONF_PROMETHEUS_URL = 'prometheus_url'
|
||||
CONF_PROMETHEUS_QUERY = 'prometheus_query'
|
||||
SCAN_INTERVAL = timedelta(seconds=600)
|
||||
|
||||
Reference in New Issue
Block a user