mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-20 22:46:41 +02:00
fix(geocoding): proxy Pelias health through wrapper for monitoring
blackbox-exporter can't resolve host.docker.internal on Colima, so probes of host.docker.internal:4000 and :9200 always fail. Instead, add a /health/pelias endpoint on the Hono wrapper that proxies to the Pelias API, and update prometheus.yml to probe the wrapper's proxied health endpoint. Also simplifies the status page friendly_name() now that we don't need to display the host.docker.internal targets. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6977d189ab
commit
c47ce83e83
4 changed files with 40 additions and 16 deletions
|
|
@ -64,15 +64,12 @@ friendly_name() {
|
|||
name="${name#http://}"
|
||||
# Interne Services (Docker-Netz): mana-geocoding:3018/health → Mana Geocoding
|
||||
case "$name" in
|
||||
mana-geocoding:*/health/pelias)
|
||||
name="Pelias (via Geocoding)"
|
||||
;;
|
||||
mana-geocoding:*)
|
||||
name="Mana Geocoding"
|
||||
;;
|
||||
host.docker.internal:4000*)
|
||||
name="Pelias API"
|
||||
;;
|
||||
host.docker.internal:9200*)
|
||||
name="Pelias Elasticsearch"
|
||||
;;
|
||||
mana.how/*)
|
||||
name="${name#mana.how/}"
|
||||
;;
|
||||
|
|
@ -81,10 +78,8 @@ friendly_name() {
|
|||
name="${name%.mana.how}"
|
||||
;;
|
||||
esac
|
||||
# Entferne /health, /_cluster/health, /v1/status suffixe
|
||||
# Entferne /health suffixe
|
||||
name="${name%/health}"
|
||||
name="${name%/_cluster/health}"
|
||||
name="${name%/v1/status}"
|
||||
# mana.how (ohne Route) → Mana
|
||||
[ "$name" = "mana.how" ] && name="Mana"
|
||||
# Erster Buchstabe groß (POSIX-kompatibel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue