Update telemetry on staging as well

This commit is contained in:
Alex 2022-10-18 10:32:41 +02:00
parent 7866a92e16
commit 2592dcaa2d
Signed by untrusted user: lx
GPG key ID: 0E496D15096376BE

View file

@ -3,7 +3,7 @@ job "telemetry" {
type = "service" type = "service"
group "prometheus" { group "prometheus" {
count = 1 count = 2
network { network {
port "prometheus" { port "prometheus" {
@ -11,14 +11,26 @@ job "telemetry" {
} }
} }
constraint {
attribute = "${attr.unique.hostname}"
operator = "set_contains_any"
value = "cariacou,carcajou"
}
task "prometheus" { task "prometheus" {
driver = "docker" driver = "docker"
config { config {
image = "prom/prometheus:v2.38.0" image = "prom/prometheus:v2.39.0"
network_mode = "host" network_mode = "host"
ports = [ "prometheus" ] ports = [ "prometheus" ]
args = [
"--config.file=/etc/prometheus/prometheus.yml",
"--storage.tsdb.path=/data",
"--storage.tsdb.retention.size=20GB",
]
volumes = [ volumes = [
"secrets:/etc/prometheus" "secrets:/etc/prometheus",
"/mnt/ssd/prometheus:/data"
] ]
} }
@ -110,7 +122,7 @@ job "telemetry" {
task "grafana" { task "grafana" {
driver = "docker" driver = "docker"
config { config {
image = "grafana/grafana:8.4.3" image = "grafana/grafana:9.2.0"
network_mode = "host" network_mode = "host"
ports = [ "grafana" ] ports = [ "grafana" ]
volumes = [ volumes = [