mirror of
https://codeberg.org/icewind/prometheus-edge-trigger.git
synced 2026-06-03 18:24:10 +02:00
remove my config
This commit is contained in:
parent
5aae476618
commit
06cd2a4106
2 changed files with 2 additions and 17 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,4 @@
|
||||||
/target
|
/target
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
|
*.json
|
||||||
|
*.toml
|
||||||
17
config.toml
17
config.toml
|
|
@ -1,17 +0,0 @@
|
||||||
[prometheus]
|
|
||||||
url = "http://astoria:9291"
|
|
||||||
|
|
||||||
[[trigger]]
|
|
||||||
name = "VR Charging"
|
|
||||||
delay = 300
|
|
||||||
|
|
||||||
[trigger.condition]
|
|
||||||
query = "switch_state{instance=\"$instance\"}"
|
|
||||||
from = 1
|
|
||||||
to = 0
|
|
||||||
params.instance = { type = "mdns", service = "_switch-http._tcp.local", host = "lighthouse1" }
|
|
||||||
|
|
||||||
[trigger.action]
|
|
||||||
method = "PUT"
|
|
||||||
params.host = { type = "mdns", service = "_switch-http._tcp.local", host = "vr_switch" }
|
|
||||||
url = "http://$host/off"
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue