Compare commits
2 Commits
e85dd7e44b
...
1c24642405
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c24642405 | |||
| 16d9406d29 |
@@ -30,8 +30,8 @@ job "plugin-nfs-controller" {
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 250
|
||||
memory = 128
|
||||
cpu = 50
|
||||
memory = 15
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,8 +34,8 @@ job "plugin-nfs-nodes" {
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 250
|
||||
memory = 128
|
||||
cpu = 50
|
||||
memory = 10
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,8 +51,8 @@ job "drone-runner" {
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 100
|
||||
memory = 64
|
||||
cpu = 300
|
||||
memory = 1500
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
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