forked from Deuxfleurs/nixcfg
Update telemetry on staging as well
This commit is contained in:
parent
7866a92e16
commit
2592dcaa2d
1 changed files with 16 additions and 4 deletions
|
@ -3,7 +3,7 @@ job "telemetry" {
|
|||
type = "service"
|
||||
|
||||
group "prometheus" {
|
||||
count = 1
|
||||
count = 2
|
||||
|
||||
network {
|
||||
port "prometheus" {
|
||||
|
@ -11,14 +11,26 @@ job "telemetry" {
|
|||
}
|
||||
}
|
||||
|
||||
constraint {
|
||||
attribute = "${attr.unique.hostname}"
|
||||
operator = "set_contains_any"
|
||||
value = "cariacou,carcajou"
|
||||
}
|
||||
|
||||
task "prometheus" {
|
||||
driver = "docker"
|
||||
config {
|
||||
image = "prom/prometheus:v2.38.0"
|
||||
image = "prom/prometheus:v2.39.0"
|
||||
network_mode = "host"
|
||||
ports = [ "prometheus" ]
|
||||
args = [
|
||||
"--config.file=/etc/prometheus/prometheus.yml",
|
||||
"--storage.tsdb.path=/data",
|
||||
"--storage.tsdb.retention.size=20GB",
|
||||
]
|
||||
volumes = [
|
||||
"secrets:/etc/prometheus"
|
||||
"secrets:/etc/prometheus",
|
||||
"/mnt/ssd/prometheus:/data"
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -110,7 +122,7 @@ job "telemetry" {
|
|||
task "grafana" {
|
||||
driver = "docker"
|
||||
config {
|
||||
image = "grafana/grafana:8.4.3"
|
||||
image = "grafana/grafana:9.2.0"
|
||||
network_mode = "host"
|
||||
ports = [ "grafana" ]
|
||||
volumes = [
|
||||
|
|
Loading…
Reference in a new issue