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)}")