Scrape homeassistant metrics into prometheus
This commit is contained in:
parent
0b69388f2c
commit
c7d5056f2a
3 changed files with 38 additions and 11 deletions
|
@ -8,6 +8,7 @@ scrape_configs:
|
|||
static_configs:
|
||||
- targets:
|
||||
- "{{ pve_hosts.pve.ip }}:9273"
|
||||
|
||||
- job_name: traefik
|
||||
metric_relabel_configs:
|
||||
- source_labels: [__name__]
|
||||
|
@ -19,3 +20,17 @@ scrape_configs:
|
|||
- "{{ nebula.clients.walker.ip }}:8080"
|
||||
- "{{ nebula.clients.decker.ip }}:8080"
|
||||
- "{{ pve_hosts.docker.ip }}:8080"
|
||||
|
||||
- job_name: homeassistant
|
||||
metrics_path: /api/prometheus
|
||||
|
||||
authorization:
|
||||
credentials: "{{ homeassistant_token }}"
|
||||
|
||||
metric_relabel_configs:
|
||||
- source_labels: [__name__]
|
||||
regex: go_.+
|
||||
action: drop
|
||||
|
||||
static_configs:
|
||||
- targets: ["{{ pve_hosts.homeassistant.ip }}:8123"]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
grafana_smtp_password: "{{ vault_grafana_smtp_password }}"
|
||||
grafana_smtp_user: "{{ vault_grafana_smtp_user }}"
|
||||
grafana_from_email: "{{ vault_grafana_from_email }}"
|
||||
homeassistant_token: "{{ vault_homeassistant_token }}"
|
||||
|
|
|
@ -1,12 +1,23 @@
|
|||
$ANSIBLE_VAULT;1.1;AES256
|
||||
39626534366162623533633336393263363933636563323938643564666332633662363563636265
|
||||
6562343564353338346438643861336563363837633462330a383764653037346165633064323863
|
||||
36626537373632626265336337366232663239666238353233393463353866653934356634613837
|
||||
6636666432323837330a313434396632316335363561346465636563356462313864633464373533
|
||||
64323335393665383634613233613230393139303561393335373736303135333666613062616363
|
||||
31383064386339323232306337396164346566306632356531616663376264303031633862636232
|
||||
61393036353464623939313839626334363135356135663037613436643634326339633264376434
|
||||
62656436636532623030333961653961613163623335303831346161323731663031306566303462
|
||||
64623263646666666333343062623434636533303539323365333932313734643036356363623462
|
||||
61303430373166613466613164623534663236353762613565306662623831343335656363316138
|
||||
336538346664316633303764643961373639
|
||||
30623166386164393930326337376161313239303830373436636330333064646538633732653130
|
||||
3737373230353563376133346539356331393536316533300a316564316465666661343938346137
|
||||
39653530356337326466383538656166336465646432383635343166306462653639653934366131
|
||||
3666333536396236300a636337323535313364333736646633633834663632363566633939633635
|
||||
32623364626530613639653861636331623833393361306137326234376366363838323461333336
|
||||
61353632386562313239656664396462623135356234663035663361633436623034323534613537
|
||||
65656533633938646561343436643239656633653962303462623931646632373262323132396630
|
||||
38363464393833353835313237643738353637363639303534666566373433656164656337393062
|
||||
31336466303231396165396665633932653665646362383461376461626437386665373032363236
|
||||
64343562633966386161643836626237343161626235396637356265353934366332323038353836
|
||||
34646466666637303931366462643537666565663430633536346137653139643766366663626162
|
||||
65336439313061396364663734316537303463613335643962383639633464653138303734386331
|
||||
31313262303766343964373762653563323632346666386161613837623836303936656536386339
|
||||
33613064356361353863323364323832396230643964656139386663363031646130383539333038
|
||||
66333434333564353063343636356265326366373334343163633538663731653266306231323061
|
||||
32316235346638356230356339353463653439323138373835646165663634393436623066633335
|
||||
36656131383535636539396633343336333531396434333062613361653764666365656562373238
|
||||
66653161623935363030653132373936363831323064353033373430343163383562623232653831
|
||||
66396138396364653961343161313863646632663133343961326361373564306333303335346135
|
||||
61653937646262373363653039613431323066396363323066356266353261303431316263336137
|
||||
32356337303437636165376530316131386561346434663864313034633831373163353265636332
|
||||
3635306661346532316561633039303531333164663363316137
|
||||
|
|
Loading…
Reference in a new issue