add hass metrics to prometeus
This commit is contained in:
parent
2221784cb1
commit
a30d9d112d
@ -1,5 +1,5 @@
|
|||||||
job "prometheus" {
|
job "prometheus" {
|
||||||
datacenters = ["hetzner"]
|
datacenters = ["homelab"]
|
||||||
type = "service"
|
type = "service"
|
||||||
|
|
||||||
group "prometheus" {
|
group "prometheus" {
|
||||||
@ -17,6 +17,9 @@ job "prometheus" {
|
|||||||
delay = "15s"
|
delay = "15s"
|
||||||
mode = "fail"
|
mode = "fail"
|
||||||
}
|
}
|
||||||
|
vault {
|
||||||
|
policies = ["access-tables"]
|
||||||
|
}
|
||||||
|
|
||||||
ephemeral_disk {
|
ephemeral_disk {
|
||||||
size = 300
|
size = 300
|
||||||
@ -81,6 +84,15 @@ scrape_configs:
|
|||||||
relabel_configs:
|
relabel_configs:
|
||||||
- source_labels: [__meta_consul_node]
|
- source_labels: [__meta_consul_node]
|
||||||
target_label: instance
|
target_label: instance
|
||||||
|
- job_name: 'HASS'
|
||||||
|
consul_sd_configs:
|
||||||
|
- server: 'consul.service.consul:8500'
|
||||||
|
services: ['hass']
|
||||||
|
scrape_interval: 60s
|
||||||
|
metrics_path: /api/prometheus
|
||||||
|
authorization:
|
||||||
|
credentials: {{ with secret "secrets/data/prometheus"}}'{{ .Data.data.hass_token }}'{{end}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user