17 lines
606 B
Python
17 lines
606 B
Python
import json
|
|
|
|
with open("homelab-gitops-repo/dashboards/grafana/systems-dashboard.json") as f:
|
|
sys_dash = json.load(f)
|
|
|
|
with open("homelab-gitops-repo/dashboards/grafana/container-metrics-dashboard.json") as f:
|
|
cnt_dash = json.load(f)
|
|
|
|
print("Systems panels summary:")
|
|
for p in sys_dash.get("panels", []):
|
|
print(f"ID {p.get('id')} | Type: {p.get('type')} | Title: {p.get('title')} | Grid: {p.get('gridPos')}")
|
|
|
|
print("\nContainers panels summary:")
|
|
for p in cnt_dash.get("panels", []):
|
|
print(f"ID {p.get('id')} | Type: {p.get('type')} | Title: {p.get('title')} | Grid: {p.get('gridPos')}")
|
|
|