fix: uptime kuma parser fallback to monitor_name as id
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user