{
  "title": "App Runtime Overview (Dev)",
  "uid": "dev-app-runtime-overview",
  "tags": ["dev","application"],
  "time": { "from": "now-1h", "to": "now" },
  "schemaVersion": 42,
  "panels": [
    {
      "type": "timeseries",
      "title": "Requests per Second (RPS)",
      "gridPos": {"x":0,"y":0,"w":12,"h":8},
      "datasource": "prometheus",
      "targets": [
        { "refId": "A", "expr": "sum(rate(http_requests_total[2m]))" }
      ]
    },
    {
      "type": "timeseries",
      "title": "Error Rate (%)",
      "gridPos": {"x":12,"y":0,"w":12,"h":8},
      "datasource": "prometheus",
      "fieldConfig": { "defaults": { "unit": "percent" }, "overrides": [] },
      "targets": [
        { "refId": "A", "expr": "sum(rate(http_requests_total{status=~\"5..\"}[2m])) / sum(rate(http_requests_total[2m])) * 100" }
      ]
    },
    {
      "type": "timeseries",
      "title": "Latency P95 (s)",
      "gridPos": {"x":0,"y":8,"w":24,"h":8},
      "datasource": "prometheus",
      "targets": [
        {
          "refId": "A",
          "expr": "histogram_quantile(0.95, sum by (le) (rate(http_request_duration_seconds_bucket[2m])))"
        }
      ]
    }
  ]
}
