feat: add various infrastructure check and automation scripts

This commit is contained in:
2026-11-15 17:17:41 -05:00
parent 336b7759d0
commit b301aa3ece
232 changed files with 8274 additions and 298 deletions

View File

@@ -0,0 +1,24 @@
import requests
import json
import urllib3
urllib3.disable_warnings()
auth = ("admin", "Katzir476!!!")
for uid in ["aerodrome-resource-monitor", "spaceport-resource-monitor", "shipyard-resource-monitor", "snarfnet-ai-stack"]:
url = f"https://grafana.snarfnet.net/api/dashboards/uid/{uid}"
resp = requests.get(url, auth=auth, verify=False, timeout=10)
data = resp.json()
dash = data.get("dashboard", {})
title = dash.get("title")
folder_title = data.get("meta", {}).get("folderTitle")
panels = dash.get("panels", [])
rows = [p.get("title") for p in panels if p.get("type") == "row"]
non_rows = [p for p in panels if p.get("type") != "row"]
print(f"\n==========================================")
print(f"UID: {uid}")
print(f"Title: {title}")
print(f"Folder: {folder_title}")
print(f"Elevated Row Groups ({len(rows)}): {rows}")
print(f"Metric Panels Count: {len(non_rows)}")