mqtt exporter for prometheus
This commit is contained in:
38
apps/mosquitto-prometheus-exporter/live.hcl
Normal file
38
apps/mosquitto-prometheus-exporter/live.hcl
Normal file
@@ -0,0 +1,38 @@
|
||||
job "mosquitto-prometheus-exporter" {
|
||||
datacenters = ["nummer5"]
|
||||
|
||||
group "apps" {
|
||||
count = 1
|
||||
|
||||
network {
|
||||
port "http"{
|
||||
to = 9234
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
name = "mosquitto-prometheus-exporter"
|
||||
port = "http"
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.mosquitto-pormetheus-exporter.rule=Host(`mosquitto-prometheus-exporter.service.nr5`)",
|
||||
]
|
||||
|
||||
}
|
||||
|
||||
task "server" {
|
||||
driver = "podman"
|
||||
|
||||
config {
|
||||
image = "cr.wks/mosquitto-prometheus-exporter"
|
||||
ports = ["http"]
|
||||
force_pull = true
|
||||
|
||||
args = [
|
||||
"--endpoint", "tcp://mqtt.wks:1883"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user