Add envoy metrics to ipdvr

This commit is contained in:
IamTheFij 2023-03-02 11:05:36 -08:00
parent e0fe3327f0
commit 24461d4c6f

View File

@ -12,6 +12,9 @@ job "ipdvr" {
host_network = "loopback" host_network = "loopback"
to = 8080 to = 8080
} }
port "envoy_metrics" {
to = 9123
}
} }
volume "sabnzbd-config" { volume "sabnzbd-config" {
@ -34,6 +37,10 @@ job "ipdvr" {
sidecar_service { sidecar_service {
proxy { proxy {
local_service_port = 8080 local_service_port = 8080
config {
envoy_prometheus_bind_addr = "0.0.0.0:9123"
}
} }
} }
@ -50,6 +57,10 @@ job "ipdvr" {
"traefik.enable=true", "traefik.enable=true",
"traefik.http.routers.sabnzbd.entryPoints=websecure", "traefik.http.routers.sabnzbd.entryPoints=websecure",
] ]
meta {
envoy_metrics_addr = "${NOMAD_ADDR_envoy_metrics}"
}
} }
task "sabnzbd" { task "sabnzbd" {
@ -93,6 +104,9 @@ job "ipdvr" {
host_network = "loopback" host_network = "loopback"
to = 6789 to = 6789
} }
port "envoy_metrics" {
to = 9123
}
} }
volume "nzbget-config" { volume "nzbget-config" {
@ -115,6 +129,10 @@ job "ipdvr" {
sidecar_service { sidecar_service {
proxy { proxy {
local_service_port = 6789 local_service_port = 6789
config {
envoy_prometheus_bind_addr = "0.0.0.0:9123"
}
} }
} }
@ -139,6 +157,10 @@ job "ipdvr" {
"traefik.enable=true", "traefik.enable=true",
"traefik.http.routers.nzbget.entryPoints=websecure", "traefik.http.routers.nzbget.entryPoints=websecure",
] ]
meta {
envoy_metrics_addr = "${NOMAD_ADDR_envoy_metrics}"
}
} }
task "nzbget" { task "nzbget" {
@ -183,6 +205,9 @@ job "ipdvr" {
host_network = "loopback" host_network = "loopback"
to = 8989 to = 8989
} }
port "envoy_metrics" {
to = 9123
}
} }
volume "sonarr-data" { volume "sonarr-data" {
@ -214,6 +239,10 @@ job "ipdvr" {
destination_name = "sabnzbd" destination_name = "sabnzbd"
local_bind_port = 8080 local_bind_port = 8080
} }
config {
envoy_prometheus_bind_addr = "0.0.0.0:9123"
}
} }
} }
@ -238,6 +267,10 @@ job "ipdvr" {
"traefik.enable=true", "traefik.enable=true",
"traefik.http.routers.sonarr.entryPoints=websecure", "traefik.http.routers.sonarr.entryPoints=websecure",
] ]
meta {
envoy_metrics_addr = "${NOMAD_ADDR_envoy_metrics}"
}
} }
task "sonarr" { task "sonarr" {