fix: uptime kuma parser fallback to monitor_name as id

This commit is contained in:
2026-04-05 20:38:10 +00:00
parent 9108ba56b2
commit 1da8a3f740
@@ -128,7 +128,7 @@ class UptimeKumaClient(BaseHTTPClient):
continue continue
metric_name, labels, raw_value = parsed metric_name, labels, raw_value = parsed
monitor_id = labels.get("monitor_id") or labels.get("id") or labels.get("monitor") monitor_id = labels.get("monitor_id") or labels.get("id") or labels.get("monitor") or labels.get("monitor_name")
monitor_name = labels.get("monitor_name") or labels.get("name") monitor_name = labels.get("monitor_name") or labels.get("name")
if not monitor_id or not monitor_name: if not monitor_id or not monitor_name:
continue continue