Maint/rename pkg (#88)

* Rename trustgraph-utils -> trustgraph-cli
* Update YAMLs
This commit is contained in:
cybermaggedon 2024-09-30 22:20:26 +01:00 committed by GitHub
parent 771d9fc2c7
commit 88a7dfa126
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 361 additions and 361 deletions

View file

@ -1,24 +0,0 @@
#!/usr/bin/env python3
import requests
import tabulate
url = 'http://localhost:9090/api/v1/query?query=processor_state%7Bprocessor_state%3D%22running%22%7D'
resp = requests.get(url)
obj = resp.json()
tbl = [
[
m["metric"]["job"],
"running" if int(m["value"][1]) > 0 else "down"
]
for m in obj["data"]["result"]
]
print(tabulate.tabulate(
tbl, tablefmt="pretty", headers=["processor", "state"],
stralign="left"
))