{
  "title": "Infra Overview (Ops)",
  "uid": "ops-infra-overview",
  "tags": ["ops","infrastructure"],
  "time": { "from": "now-1h", "to": "now" },
  "schemaVersion": 42,
  "panels": [
    {
      "type": "timeseries",
      "title": "CPU Utilization (%)",
      "gridPos": {"x":0,"y":0,"w":12,"h":8},
      "datasource": "prometheus",
      "fieldConfig": { "defaults": { "unit": "percent" }, "overrides": [] },
      "targets": [
        { "refId": "A", "expr": "100 - (avg by(instance)(rate(node_cpu_seconds_total{mode=\"idle\"}[2m]))*100)" }
      ]
    },
    {
      "type": "timeseries",
      "title": "Memory Utilization (%)",
      "gridPos": {"x":12,"y":0,"w":12,"h":8},
      "datasource": "prometheus",
      "fieldConfig": { "defaults": { "unit": "percent" }, "overrides": [] },
      "targets": [
        { "refId": "A", "expr": "((node_memory_MemTotal_bytes - node_memory_MemAvailable_bytes) / node_memory_MemTotal_bytes) * 100" }
      ]
    },
    {
      "type": "timeseries",
      "title": "Disk Space Used (bytes)",
      "gridPos": {"x":0,"y":8,"w":12,"h":8},
      "datasource": "prometheus",
      "fieldConfig": { "defaults": { "unit": "bytes" }, "overrides": [] },
      "targets": [
        { "refId": "A", "expr": "node_filesystem_size_bytes{fstype!~\"tmpfs|overlay\"} - node_filesystem_avail_bytes{fstype!~\"tmpfs|overlay\"}" }
      ]
    },
    {
      "type": "timeseries",
      "title": "Host Power (Watts) - Scaphandre",
      "gridPos": {"x":12,"y":8,"w":12,"h":8},
      "datasource": "prometheus",
      "fieldConfig": { "defaults": { "unit": "watt" }, "overrides": [] },
      "targets": [
        { "refId": "A", "expr": "scaph_host_power_microwatts / 1e6" }
      ]
    }
  ]
}
