C0: move immich blackbox probe to ringtail alloy
Immich migrated to ringtail's k3s cluster but the probe still targeted the in-cluster service DNS on indri's minikube, firing ServiceProbeFailure indefinitely. Moved the target into alloy-ringtail's config so the probe runs in the cluster where immich actually lives. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e222d47d45
commit
1897eb1c5b
3 changed files with 21 additions and 6 deletions
|
|
@ -196,12 +196,6 @@ prometheus.exporter.blackbox "services" {
|
||||||
module = "http_2xx"
|
module = "http_2xx"
|
||||||
}
|
}
|
||||||
|
|
||||||
target {
|
|
||||||
name = "immich"
|
|
||||||
address = "http://immich-server.immich.svc.cluster.local:2283/api/server/ping"
|
|
||||||
module = "http_2xx"
|
|
||||||
}
|
|
||||||
|
|
||||||
target {
|
target {
|
||||||
name = "navidrome"
|
name = "navidrome"
|
||||||
address = "http://navidrome.navidrome.svc.cluster.local:4533/"
|
address = "http://navidrome.navidrome.svc.cluster.local:4533/"
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,26 @@ prometheus.scrape "kube_state_metrics" {
|
||||||
forward_to = [prometheus.remote_write.prometheus.receiver]
|
forward_to = [prometheus.remote_write.prometheus.receiver]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ============== SERVICE HEALTH PROBES ==============
|
||||||
|
|
||||||
|
// Blackbox-style HTTP probes for in-cluster services on ringtail
|
||||||
|
prometheus.exporter.blackbox "services" {
|
||||||
|
config = "{ modules: { http_2xx: { prober: http, timeout: 5s } } }"
|
||||||
|
|
||||||
|
target {
|
||||||
|
name = "immich"
|
||||||
|
address = "http://immich-server.immich.svc.cluster.local:2283/api/server/ping"
|
||||||
|
module = "http_2xx"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Scrape blackbox probe results
|
||||||
|
prometheus.scrape "blackbox" {
|
||||||
|
targets = prometheus.exporter.blackbox.services.targets
|
||||||
|
scrape_interval = "30s"
|
||||||
|
forward_to = [prometheus.remote_write.prometheus.receiver]
|
||||||
|
}
|
||||||
|
|
||||||
// Push metrics to indri Prometheus
|
// Push metrics to indri Prometheus
|
||||||
prometheus.remote_write "prometheus" {
|
prometheus.remote_write "prometheus" {
|
||||||
external_labels = { cluster = "ringtail" }
|
external_labels = { cluster = "ringtail" }
|
||||||
|
|
|
||||||
1
docs/changelog.d/+immich-probe-ringtail.infra.md
Normal file
1
docs/changelog.d/+immich-probe-ringtail.infra.md
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Moved the Immich blackbox health probe from indri's alloy to ringtail's alloy. After the immich migration to ringtail, the probe still targeted `immich-server.immich.svc.cluster.local` on indri's cluster where the service no longer exists, causing a persistent `ServiceProbeFailure` alert.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue