{
  "annotations": {
    "list": []
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 1,
  "id": null,
  "links": [],
  "panels": [
    {
      "title": "CPU Usage (Docker Containers)",
      "type": "timeseries",
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "datasource": {
        "type": "prometheus",
        "uid": "f9ddd651-33ec-4dad-a950-e1375a964315"
      },
      "targets": [
        {
          "expr": "rate(docker_container_cpu_usage_seconds_total[5m]) * 100",
          "legendFormat": "{{container}}",
          "refId": "A"
        }
      ],
      "fieldConfig": {
        "defaults": {
          "unit": "percent"
        }
      }
    },
    {
      "title": "Memory Usage (Docker Containers)",
      "type": "timeseries",
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "datasource": {
        "type": "prometheus",
        "uid": "f9ddd651-33ec-4dad-a950-e1375a964315"
      },
      "targets": [
        {
          "expr": "docker_container_memory_usage_bytes / 1024 / 1024 / 1024",
          "legendFormat": "{{container}} (GB)",
          "refId": "A"
        }
      ],
      "fieldConfig": {
        "defaults": {
          "unit": "decbytes"
        }
      }
    },
    {
      "title": "Network Receive (Docker Containers)",
      "type": "timeseries",
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 16
      },
      "datasource": {
        "type": "prometheus",
        "uid": "f9ddd651-33ec-4dad-a950-e1375a964315"
      },
      "targets": [
        {
          "expr": "rate(docker_container_network_receive_bytes_total[5m]) * 8",
          "legendFormat": "{{container}} RX",
          "refId": "A"
        }
      ],
      "fieldConfig": {
        "defaults": {
          "unit": "bps"
        }
      }
    },
    {
      "title": "Network Transmit (Docker Containers)",
      "type": "timeseries",
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 16
      },
      "datasource": {
        "type": "prometheus",
        "uid": "f9ddd651-33ec-4dad-a950-e1375a964315"
      },
      "targets": [
        {
          "expr": "rate(docker_container_network_transmit_bytes_total[5m]) * 8",
          "legendFormat": "{{container}} TX",
          "refId": "A"
        }
      ],
      "fieldConfig": {
        "defaults": {
          "unit": "bps"
        }
      }
    },
    {
      "title": "Container Status (1=Running, 0=Stopped)",
      "type": "state-timeline",
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 32
      },
      "datasource": {
        "type": "prometheus",
        "uid": "f9ddd651-33ec-4dad-a950-e1375a964315"
      },
      "targets": [
        {
          "expr": "docker_container_status",
          "legendFormat": "{{container}}",
          "refId": "A"
        }
      ]
    }
  ],
  "schemaVersion": 38,
  "style": "dark",
  "tags": [
    "docker",
    "containers",
    "metrics",
    "prometheus"
  ],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-1h",
    "to": "now"
  },
  "title": "Smart City - Docker Containers Metrics",
  "uid": "smartcity-docker-metrics",
  "version": 1
}