fix(status-json): strip /health path before .mana.how suffix for correct service keys

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-31 18:49:18 +02:00
parent bf49b95319
commit a6560a3227

View file

@ -386,8 +386,10 @@ echo "$SUCCESS_JSON" | jq \
key: (
.metric.instance
| ltrimstr("https://")
| rtrimstr("/health")
| rtrimstr("/")
| if . == "mana.how" then "manacore"
else (. | rtrimstr(".mana.how") | rtrimstr("/health"))
else rtrimstr(".mana.how")
end
),
value: (.value[1] == "1")