{
  "id": null,
  "title": "📊 Quick Overview - Critical Services",
  "tags": ["overview", "critical", "simple"],
  "style": "dark",
  "timezone": "browser",
  "panels": [
    {
      "id": 1,
      "title": "🔐 Vaultwarden Status",
      "type": "stat",
      "targets": [
        {
          "expr": "up{instance=~\".*vaultwarden.*\"}",
          "legendFormat": "{{instance}}"
        }
      ],
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "thresholds": {
            "steps": [
              {"color": "red", "value": 0},
              {"color": "green", "value": 1}
            ]
          },
          "mappings": [
            {
              "options": {
                "0": {"text": "🔴 DOWN", "color": "red"},
                "1": {"text": "🟢 UP", "color": "green"}
              },
              "type": "value"
            }
          ],
          "unit": "short"
        }
      },
      "gridPos": {"h": 6, "w": 8, "x": 0, "y": 0}
    },
    {
      "id": 2,
      "title": "📄 Document Services",
      "type": "stat",
      "targets": [
        {
          "expr": "up{instance=~\".*192\\.168\\.50\\.229:8000.*\"}",
          "legendFormat": "Paperless-NGX"
        },
        {
          "expr": "up{instance=~\".*192\\.168\\.50\\.229:3000.*\"}",
          "legendFormat": "Paperless-AI"
        }
      ],
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "thresholds": {
            "steps": [
              {"color": "red", "value": 0},
              {"color": "green", "value": 1}
            ]
          },
          "mappings": [
            {
              "options": {
                "0": {"text": "🔴 DOWN", "color": "red"},
                "1": {"text": "🟢 UP", "color": "green"}
              },
              "type": "value"
            }
          ],
          "unit": "short"
        }
      },
      "gridPos": {"h": 6, "w": 8, "x": 8, "y": 0}
    },
    {
      "id": 3,
      "title": "☁️ Cloud Services",
      "type": "stat",
      "targets": [
        {
          "expr": "up{instance=~\".*192\\.168\\.50\\.229:8081.*\"}",
          "legendFormat": "Nextcloud"
        }
      ],
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "thresholds": {
            "steps": [
              {"color": "red", "value": 0},
              {"color": "green", "value": 1}
            ]
          },
          "mappings": [
            {
              "options": {
                "0": {"text": "🔴 DOWN", "color": "red"},
                "1": {"text": "🟢 UP", "color": "green"}
              },
              "type": "value"
            }
          ],
          "unit": "short"
        }
      },
      "gridPos": {"h": 6, "w": 8, "x": 16, "y": 0}
    },
    {
      "id": 4,
      "title": "🏠 Home Assistant",
      "type": "stat",
      "targets": [
        {
          "expr": "up{instance=~\".*192\\.168\\.50\\.181:8123.*\"}",
          "legendFormat": "Home Assistant"
        }
      ],
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "thresholds": {
            "steps": [
              {"color": "red", "value": 0},
              {"color": "green", "value": 1}
            ]
          },
          "mappings": [
            {
              "options": {
                "0": {"text": "🔴 DOWN", "color": "red"},
                "1": {"text": "🟢 UP", "color": "green"}
              },
              "type": "value"
            }
          ],
          "unit": "short"
        }
      },
      "gridPos": {"h": 6, "w": 8, "x": 0, "y": 6}
    },
    {
      "id": 5,
      "title": "🗄️ Database Services",
      "type": "stat",
      "targets": [
        {
          "expr": "up{instance=~\".*192\\.168\\.50\\.229:5432.*\"}",
          "legendFormat": "PostgreSQL"
        },
        {
          "expr": "up{instance=~\".*192\\.168\\.50\\.229:3306.*\"}",
          "legendFormat": "MariaDB"
        },
        {
          "expr": "up{instance=~\".*192\\.168\\.50\\.229:6379.*\"}",
          "legendFormat": "Redis"
        }
      ],
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "thresholds": {
            "steps": [
              {"color": "red", "value": 0},
              {"color": "green", "value": 1}
            ]
          },
          "mappings": [
            {
              "options": {
                "0": {"text": "🔴 DOWN", "color": "red"},
                "1": {"text": "🟢 UP", "color": "green"}
              },
              "type": "value"
            }
          ],
          "unit": "short"
        }
      },
      "gridPos": {"h": 6, "w": 8, "x": 8, "y": 6}
    },
    {
      "id": 6,
      "title": "📊 System Health",
      "type": "stat",
      "targets": [
        {
          "expr": "100 - (avg by (instance) (irate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)",
          "legendFormat": "CPU Usage"
        },
        {
          "expr": "(1 - (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)) * 100",
          "legendFormat": "Memory Usage"
        }
      ],
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "thresholds": {
            "steps": [
              {"color": "green", "value": 0},
              {"color": "yellow", "value": 70},
              {"color": "red", "value": 90}
            ]
          },
          "unit": "percent",
          "min": 0,
          "max": 100
        }
      },
      "gridPos": {"h": 6, "w": 8, "x": 16, "y": 6}
    },
    {
      "id": 7,
      "title": "⚡ Response Times (Last 5 min)",
      "type": "graph",
      "targets": [
        {
          "expr": "probe_duration_seconds{job=\"http-service-health\"}",
          "legendFormat": "{{instance}}"
        }
      ],
      "yAxes": [
        {
          "label": "Response Time (seconds)",
          "min": 0
        }
      ],
      "gridPos": {"h": 8, "w": 12, "x": 0, "y": 12}
    },
    {
      "id": 8,
      "title": "📈 System Load",
      "type": "graph",
      "targets": [
        {
          "expr": "node_load1",
          "legendFormat": "1m Load"
        },
        {
          "expr": "node_load5",
          "legendFormat": "5m Load"
        },
        {
          "expr": "node_load15",
          "legendFormat": "15m Load"
        }
      ],
      "yAxes": [
        {
          "label": "Load Average"
        }
      ],
      "gridPos": {"h": 8, "w": 12, "x": 12, "y": 12}
    }
  ],
  "time": {
    "from": "now-1h",
    "to": "now"
  },
  "refresh": "30s"
}
