mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:01:08 +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
|
|
@ -292,10 +292,11 @@ scrape_configs:
|
|||
module: [http_2xx]
|
||||
static_configs:
|
||||
- targets:
|
||||
# mana-geocoding's own health (Hono wrapper)
|
||||
- http://mana-geocoding:3018/health
|
||||
# Pelias stack runs on host network, reached via host gateway
|
||||
- http://host.docker.internal:4000/v1/status
|
||||
- http://host.docker.internal:9200/_cluster/health
|
||||
# Upstream Pelias health, proxied through the wrapper so the
|
||||
# blackbox-exporter doesn't need host.docker.internal access.
|
||||
- http://mana-geocoding:3018/health/pelias
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue