Separate Prom metrics, different processors as different jobs

This commit is contained in:
Cyber MacGeddon 2024-09-30 12:00:20 +01:00
parent 5e8a1520ee
commit 8c3ac009da
2 changed files with 109 additions and 6 deletions

View file

@ -11,7 +11,7 @@ obj = resp.json()
tbl = [
[
m["metric"]["instance"],
m["metric"]["job"],
"running" if int(m["value"][1]) > 0 else "down"
]
for m in obj["data"]["result"]