{
  "annotations": {"list": []},
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "datasource": {"type": "prometheus", "uid": "prometheus"},
      "gridPos": {"h": 4, "w": 6, "x": 0, "y": 0},
      "id": 1,
      "options": {"colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false}, "textMode": "auto"},
      "title": "NATS Connections",
      "type": "stat",
      "targets": [{"expr": "nats_connz_connections", "legendFormat": "connections", "refId": "A"}]
    },
    {
      "datasource": {"type": "prometheus", "uid": "prometheus"},
      "gridPos": {"h": 4, "w": 6, "x": 6, "y": 0},
      "id": 2,
      "options": {"colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false}, "textMode": "auto"},
      "title": "NATS Messages In",
      "type": "stat",
      "targets": [{"expr": "rate(nats_varz_in_msgs[5m])", "legendFormat": "msg/s", "refId": "A"}]
    },
    {
      "datasource": {"type": "prometheus", "uid": "prometheus"},
      "gridPos": {"h": 4, "w": 6, "x": 12, "y": 0},
      "id": 3,
      "options": {"colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false}, "textMode": "auto"},
      "title": "JetStream Streams",
      "type": "stat",
      "targets": [{"expr": "nats_jetstream_streams", "legendFormat": "streams", "refId": "A"}]
    },
    {
      "datasource": {"type": "prometheus", "uid": "prometheus"},
      "gridPos": {"h": 4, "w": 6, "x": 18, "y": 0},
      "id": 4,
      "options": {"colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": {"calcs": ["lastNotNull"], "fields": "", "values": false}, "textMode": "auto"},
      "title": "JetStream Messages",
      "type": "stat",
      "targets": [{"expr": "nats_jetstream_messages", "legendFormat": "messages", "refId": "A"}]
    },
    {
      "datasource": {"type": "prometheus", "uid": "prometheus"},
      "gridPos": {"h": 8, "w": 12, "x": 0, "y": 4},
      "id": 5,
      "options": {"legend": {"calcs": [], "displayMode": "list", "placement": "bottom"}},
      "title": "NATS Message Throughput",
      "type": "timeseries",
      "targets": [
        {"expr": "rate(nats_varz_in_msgs[1m])", "legendFormat": "in", "refId": "A"},
        {"expr": "rate(nats_varz_out_msgs[1m])", "legendFormat": "out", "refId": "B"}
      ]
    },
    {
      "datasource": {"type": "prometheus", "uid": "prometheus"},
      "gridPos": {"h": 8, "w": 12, "x": 12, "y": 4},
      "id": 6,
      "options": {"legend": {"calcs": [], "displayMode": "list", "placement": "bottom"}},
      "title": "Qdrant Collections",
      "type": "timeseries",
      "targets": [{"expr": "qdrant_collections_total", "legendFormat": "collections", "refId": "A"}]
    },
    {
      "datasource": {"type": "prometheus", "uid": "prometheus"},
      "gridPos": {"h": 8, "w": 12, "x": 0, "y": 12},
      "id": 7,
      "options": {"legend": {"calcs": [], "displayMode": "list", "placement": "bottom"}},
      "title": "Redis Operations",
      "type": "timeseries",
      "targets": [{"expr": "rate(redis_commands_processed_total[5m])", "legendFormat": "ops/s", "refId": "A"}]
    },
    {
      "datasource": {"type": "prometheus", "uid": "prometheus"},
      "gridPos": {"h": 8, "w": 12, "x": 12, "y": 12},
      "id": 8,
      "options": {"legend": {"calcs": [], "displayMode": "list", "placement": "bottom"}},
      "title": "Redis Memory",
      "type": "timeseries",
      "targets": [{"expr": "redis_memory_used_bytes", "legendFormat": "used", "refId": "A"}]
    }
  ],
  "refresh": "10s",
  "schemaVersion": 38,
  "style": "dark",
  "tags": ["daarion", "nats", "memory"],
  "time": {"from": "now-1h", "to": "now"},
  "title": "NATS & Memory Layer",
  "uid": "daarion-nats-memory",
  "version": 1
}
