{
  "annotations": {"list": []},
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 1,
  "id": null,
  "links": [],
  "panels": [
    {
      "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"},
      "fieldConfig": {
        "defaults": {
          "thresholds": {
            "steps": [
              {"color": "red", "value": null},
              {"color": "yellow", "value": 0.92},
              {"color": "green", "value": 0.97}
            ]
          },
          "unit": "percentunit"
        }
      },
      "gridPos": {"h": 4, "w": 6, "x": 0, "y": 0},
      "id": 1,
      "title": "Profile Start Success (5m)",
      "type": "stat",
      "targets": [{
        "expr": "sum(rate(mlx_profile_start_total{status=\"ok\"}[5m])) / sum(rate(mlx_profile_start_total[5m]))",
        "legendFormat": "success"
      }]
    },
    {
      "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"},
      "gridPos": {"h": 4, "w": 6, "x": 6, "y": 0},
      "id": 2,
      "title": "Prod Pool Depth",
      "type": "stat",
      "targets": [{"expr": "redis_key_size{key=\"mlx:pool:prod\"}", "legendFormat": "prod"}]
    },
    {
      "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"},
      "gridPos": {"h": 4, "w": 6, "x": 12, "y": 0},
      "id": 3,
      "title": "DLQ Depth",
      "type": "stat",
      "targets": [{"expr": "redis_key_size{key=\"mlx:dlq\"}", "legendFormat": "dlq"}]
    },
    {
      "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"},
      "fieldConfig": {"defaults": {"unit": "percentunit"}},
      "gridPos": {"h": 8, "w": 12, "x": 0, "y": 4},
      "id": 4,
      "title": "Health Probe Fail Rate by Tier",
      "type": "timeseries",
      "targets": [{
        "expr": "sum(rate(mlx_health_probe_total{status=\"fail\"}[15m])) by (tier) / sum(rate(mlx_health_probe_total[15m])) by (tier)",
        "legendFormat": "{{tier}}"
      }]
    },
    {
      "datasource": {"type": "prometheus", "uid": "${DS_PROMETHEUS}"},
      "gridPos": {"h": 8, "w": 12, "x": 12, "y": 4},
      "id": 5,
      "title": "Ban Signals (24h) by Platform",
      "type": "timeseries",
      "targets": [{
        "expr": "sum(increase(mlx_ban_signal_total{tier=\"prod\"}[24h])) by (platform)",
        "legendFormat": "{{platform}}"
      }]
    }
  ],
  "refresh": "30s",
  "schemaVersion": 39,
  "tags": ["multilogin", "mlx-mmo", "profile-pool"],
  "templating": {"list": []},
  "time": {"from": "now-6h", "to": "now"},
  "title": "MLX Multilogin Health",
  "uid": "mlx-health",
  "version": 1
}
