# services/monitoring/grafana-dashboard-testing.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: grafana-dashboard-testing
  labels:
    grafana_dashboard: "1"
data:
  atlas-testing.json: |
    {
      "uid": "atlas-testing",
      "title": "Atlas Testing",
      "folderUid": "atlas-public",
      "editable": false,
      "panels": [
        {
          "id": 156,
          "type": "stat",
          "title": "Current Gate Health (%)",
          "datasource": {
            "type": "prometheus",
            "uid": "atlas-vm"
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 0,
            "y": 0
          },
          "targets": [
            {
              "expr": "(avg((min by (suite) (((100 * (sum by (suite) (((clamp_max(max by (suite, check) ((((sum by (suite, branch, check, status) (platform_quality:check_status:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"tests|coverage|loc|style|docs_naming|gate_glue|sonarqube\",status=~\"ok|passed|success|not_applicable|skipped|na|n/a\"})) or (sum by (suite, branch, check, status) (platform_quality:check_status:present_1h{suite=~\"${suite:regex}\",suite=~\"ariadne|atlasbot|bstein_home|data_prepper\",branch!=\"\",branch=~\"${branch:regex}\",check=\"supply_chain\",status=~\"ok|passed|success|not_applicable|skipped|na|n/a\"})))) > 0), 1)) unless on(suite, check) (clamp_max(max by (suite, check) ((((sum by (suite, branch, check, status) (platform_quality:check_status:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"tests|coverage|loc|style|docs_naming|gate_glue|sonarqube\",status!~\"ok|passed|success|not_applicable|skipped|na|n/a\"})) or (sum by (suite, branch, check, status) (platform_quality:check_status:present_1h{suite=~\"${suite:regex}\",suite=~\"ariadne|atlasbot|bstein_home|data_prepper\",branch!=\"\",branch=~\"${branch:regex}\",check=\"supply_chain\",status!~\"ok|passed|success|not_applicable|skipped|na|n/a\"})))) > 0), 1))))) / clamp_min((sum by (suite) (clamp_max(max by (suite, check) ((((sum by (suite, branch, check, status) (platform_quality:check_status:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"tests|coverage|loc|style|docs_naming|gate_glue|sonarqube\",status!=\"\"})) or (sum by (suite, branch, check, status) (platform_quality:check_status:present_1h{suite=~\"${suite:regex}\",suite=~\"ariadne|atlasbot|bstein_home|data_prepper\",branch!=\"\",branch=~\"${branch:regex}\",check=\"supply_chain\",status!=\"\"})))) > 0), 1))), 1))) or (min by (suite) (platform_quality:test_category_health_rate:percent_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",category=~\"api|chaos|compatibility|component|contract|e2e|integration|manual|performance|regression|reliability|security|smoke|system|ui|unit\"}))))) or on() vector(0))",
              "refId": "A",
              "instant": true
            }
          ],
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "dark-orange",
                    "value": 90
                  },
                  {
                    "color": "dark-yellow",
                    "value": 93
                  },
                  {
                    "color": "dark-green",
                    "value": 95
                  },
                  {
                    "color": "dark-blue",
                    "value": 100
                  }
                ]
              },
              "unit": "percent",
              "custom": {
                "displayMode": "auto"
              },
              "decimals": 2
            },
            "overrides": []
          },
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "center",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "description": "Average latest required gate checks passing across selected suites; this is the current quality state."
        },
        {
          "id": 2,
          "type": "stat",
          "title": "CI Run Success Rate (24h)",
          "datasource": {
            "type": "prometheus",
            "uid": "atlas-vm"
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 3,
            "y": 0
          },
          "targets": [
            {
              "expr": "100 * ((sum(platform_quality:suite_runs:increase_24h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",status=~\"ok|passed|success\"}) or on() vector(0))) / clamp_min(((sum(platform_quality:suite_runs:increase_24h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\"}) or on() vector(0))), 1)",
              "refId": "A",
              "instant": true
            }
          ],
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "dark-orange",
                    "value": 90
                  },
                  {
                    "color": "dark-yellow",
                    "value": 93
                  },
                  {
                    "color": "dark-green",
                    "value": 95
                  },
                  {
                    "color": "dark-blue",
                    "value": 100
                  }
                ]
              },
              "unit": "percent",
              "custom": {
                "displayMode": "auto"
              },
              "decimals": 2
            },
            "overrides": []
          },
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "center",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "description": "Percent of selected quality-gate CI runs that completed successfully in 24h; this is run health, not individual test pass rate."
        },
        {
          "id": 3,
          "type": "stat",
          "title": "CI Run Success Rate (7d)",
          "datasource": {
            "type": "prometheus",
            "uid": "atlas-vm"
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 6,
            "y": 0
          },
          "targets": [
            {
              "expr": "100 * ((sum(increase((max without(instance, job) (platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",status=~\"ok|passed|success\"}))[7d:1h])) or on() vector(0))) / clamp_min(((sum(increase((max without(instance, job) (platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"}))[7d:1h])) or on() vector(0))), 1)",
              "refId": "A",
              "instant": true
            }
          ],
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "dark-orange",
                    "value": 90
                  },
                  {
                    "color": "dark-yellow",
                    "value": 93
                  },
                  {
                    "color": "dark-green",
                    "value": 95
                  },
                  {
                    "color": "dark-blue",
                    "value": 100
                  }
                ]
              },
              "unit": "percent",
              "custom": {
                "displayMode": "auto"
              },
              "decimals": 2
            },
            "overrides": []
          },
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "center",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "description": "Percent of selected quality-gate CI runs that completed successfully in 7d; higher means more stable automation."
        },
        {
          "id": 4,
          "type": "stat",
          "title": "Failed Runs (24h)",
          "datasource": {
            "type": "prometheus",
            "uid": "atlas-vm"
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 9,
            "y": 0
          },
          "targets": [
            {
              "expr": "(sum(platform_quality:suite_runs:increase_24h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",status!~\"ok|passed|success\"}) or on() vector(0))",
              "refId": "A",
              "instant": true
            }
          ],
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-blue",
                    "value": null
                  },
                  {
                    "color": "dark-green",
                    "value": 0.01
                  },
                  {
                    "color": "dark-yellow",
                    "value": 1
                  },
                  {
                    "color": "dark-orange",
                    "value": 3
                  },
                  {
                    "color": "dark-red",
                    "value": 5
                  }
                ]
              },
              "unit": "none",
              "custom": {
                "displayMode": "auto"
              }
            },
            "overrides": []
          },
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "center",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "description": "Selected quality-gate runs that failed in 24h; zero is good and anything else needs a look."
        },
        {
          "id": 5,
          "type": "stat",
          "title": "CI Runs (24h)",
          "datasource": {
            "type": "prometheus",
            "uid": "atlas-vm"
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 12,
            "y": 0
          },
          "targets": [
            {
              "expr": "(sum(platform_quality:suite_runs:increase_24h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\"}) or on() vector(0))",
              "refId": "A",
              "instant": true
            }
          ],
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "dark-green",
                    "value": 1
                  }
                ]
              },
              "unit": "none",
              "custom": {
                "displayMode": "auto"
              }
            },
            "overrides": []
          },
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "center",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "description": "Selected quality-gate CI run count in 24h; zero means the dashboard may be stale."
        },
        {
          "id": 157,
          "type": "stat",
          "title": "Suite Freshness (24h)",
          "datasource": {
            "type": "prometheus",
            "uid": "atlas-vm"
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 15,
            "y": 0
          },
          "targets": [
            {
              "expr": "100 * (sum((sum by (suite) (platform_quality:suite_runs:increase_24h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\"})) > bool 0) or on() vector(0)) / clamp_min(count(((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0))), 1)",
              "refId": "A",
              "instant": true
            }
          ],
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "dark-orange",
                    "value": 90
                  },
                  {
                    "color": "dark-yellow",
                    "value": 93
                  },
                  {
                    "color": "dark-green",
                    "value": 95
                  },
                  {
                    "color": "dark-blue",
                    "value": 100
                  }
                ]
              },
              "unit": "percent",
              "custom": {
                "displayMode": "auto"
              },
              "decimals": 0
            },
            "overrides": []
          },
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "center",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "description": "Percent of selected suites with at least one quality-gate CI run in 24h; 100% means inputs are fresh."
        },
        {
          "id": 6,
          "type": "stat",
          "title": "Avg Coverage (%)",
          "datasource": {
            "type": "prometheus",
            "uid": "atlas-vm"
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 18,
            "y": 0
          },
          "targets": [
            {
              "expr": "(avg((max by (suite) (platform_quality:suite_coverage_percent:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"}))) or on() vector(0))",
              "refId": "A",
              "instant": true
            }
          ],
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "dark-orange",
                    "value": 90
                  },
                  {
                    "color": "dark-yellow",
                    "value": 93
                  },
                  {
                    "color": "dark-green",
                    "value": 95
                  },
                  {
                    "color": "dark-blue",
                    "value": 100
                  }
                ]
              },
              "unit": "percent",
              "custom": {
                "displayMode": "auto"
              },
              "decimals": 2
            },
            "overrides": []
          },
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "center",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "description": "Average latest line coverage for selected suites; higher means better test protection."
        },
        {
          "id": 7,
          "type": "stat",
          "title": "Suites with LOC >500",
          "datasource": {
            "type": "prometheus",
            "uid": "atlas-vm"
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 21,
            "y": 0
          },
          "targets": [
            {
              "expr": "(sum(((max by (suite) (platform_quality:suite_source_lines_over_500_total:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"})) > bool 0)) or on() vector(0))",
              "refId": "A",
              "instant": true
            }
          ],
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "dark-green",
                    "value": 0
                  },
                  {
                    "color": "dark-yellow",
                    "value": 1
                  },
                  {
                    "color": "dark-orange",
                    "value": 3
                  },
                  {
                    "color": "dark-red",
                    "value": 5
                  }
                ]
              },
              "unit": "none",
              "custom": {
                "displayMode": "auto"
              }
            },
            "overrides": []
          },
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "center",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "description": "Selected suites with oversized source files; zero is good for maintainability."
        },
        {
          "id": 8,
          "type": "bargauge",
          "title": "Latest Gate Health by Suite",
          "datasource": {
            "type": "prometheus",
            "uid": "atlas-vm"
          },
          "gridPos": {
            "h": 7,
            "w": 6,
            "x": 0,
            "y": 4
          },
          "targets": [
            {
              "expr": "sort(((min by (suite) (((100 * (sum by (suite) (((clamp_max(max by (suite, check) ((((sum by (suite, branch, check, status) (platform_quality:check_status:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"tests|coverage|loc|style|docs_naming|gate_glue|sonarqube\",status=~\"ok|passed|success|not_applicable|skipped|na|n/a\"})) or (sum by (suite, branch, check, status) (platform_quality:check_status:present_1h{suite=~\"${suite:regex}\",suite=~\"ariadne|atlasbot|bstein_home|data_prepper\",branch!=\"\",branch=~\"${branch:regex}\",check=\"supply_chain\",status=~\"ok|passed|success|not_applicable|skipped|na|n/a\"})))) > 0), 1)) unless on(suite, check) (clamp_max(max by (suite, check) ((((sum by (suite, branch, check, status) (platform_quality:check_status:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"tests|coverage|loc|style|docs_naming|gate_glue|sonarqube\",status!~\"ok|passed|success|not_applicable|skipped|na|n/a\"})) or (sum by (suite, branch, check, status) (platform_quality:check_status:present_1h{suite=~\"${suite:regex}\",suite=~\"ariadne|atlasbot|bstein_home|data_prepper\",branch!=\"\",branch=~\"${branch:regex}\",check=\"supply_chain\",status!~\"ok|passed|success|not_applicable|skipped|na|n/a\"})))) > 0), 1))))) / clamp_min((sum by (suite) (clamp_max(max by (suite, check) ((((sum by (suite, branch, check, status) (platform_quality:check_status:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"tests|coverage|loc|style|docs_naming|gate_glue|sonarqube\",status!=\"\"})) or (sum by (suite, branch, check, status) (platform_quality:check_status:present_1h{suite=~\"${suite:regex}\",suite=~\"ariadne|atlasbot|bstein_home|data_prepper\",branch!=\"\",branch=~\"${branch:regex}\",check=\"supply_chain\",status!=\"\"})))) > 0), 1))), 1))) or (min by (suite) (platform_quality:test_category_health_rate:percent_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",category=~\"api|chaos|compatibility|component|contract|e2e|integration|manual|performance|regression|reliability|security|smoke|system|ui|unit\"})))) or on(suite) ((((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))) - 1))))",
              "refId": "A",
              "legendFormat": "{{suite}}",
              "instant": true
            }
          ],
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "unit": "percent",
              "min": 0,
              "max": 100,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "dark-orange",
                    "value": 90
                  },
                  {
                    "color": "dark-yellow",
                    "value": 93
                  },
                  {
                    "color": "dark-green",
                    "value": 95
                  },
                  {
                    "color": "dark-blue",
                    "value": 100
                  }
                ]
              },
              "decimals": 2,
              "mappings": [
                {
                  "type": "value",
                  "options": {
                    "-1": {
                      "text": "missing"
                    }
                  }
                }
              ]
            },
            "overrides": []
          },
          "options": {
            "displayMode": "basic",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            }
          },
          "transformations": [
            {
              "id": "sortBy",
              "options": {
                "fields": [
                  "Value"
                ],
                "order": "asc"
              }
            }
          ],
          "description": "Current health by suite from required gate checks, capped by category-level test health. Skipped and not-applicable results are healthy; failures and errors lower the value."
        },
        {
          "id": 9,
          "type": "bargauge",
          "title": "CI Run Success by Suite (24h)",
          "datasource": {
            "type": "prometheus",
            "uid": "atlas-vm"
          },
          "gridPos": {
            "h": 7,
            "w": 6,
            "x": 6,
            "y": 4
          },
          "targets": [
            {
              "expr": "sort(((100 * (sum by (suite) (platform_quality:suite_runs:increase_24h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",status=~\"ok|passed|success\"})) / clamp_min((sum by (suite) (platform_quality:suite_runs:increase_24h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\"})), 1)) and on(suite) ((sum by (suite) (platform_quality:suite_runs:increase_24h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\"})) > 0)) or on(suite) ((((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))) - 1)))",
              "refId": "A",
              "legendFormat": "{{suite}}",
              "instant": true
            }
          ],
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "unit": "percent",
              "min": 0,
              "max": 100,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "dark-orange",
                    "value": 90
                  },
                  {
                    "color": "dark-yellow",
                    "value": 93
                  },
                  {
                    "color": "dark-green",
                    "value": 95
                  },
                  {
                    "color": "dark-blue",
                    "value": 100
                  }
                ]
              },
              "decimals": 2,
              "mappings": [
                {
                  "type": "value",
                  "options": {
                    "-1": {
                      "text": "no runs"
                    }
                  }
                }
              ]
            },
            "overrides": []
          },
          "options": {
            "displayMode": "basic",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            }
          },
          "transformations": [
            {
              "id": "sortBy",
              "options": {
                "fields": [
                  "Value"
                ],
                "order": "asc"
              }
            }
          ],
          "description": "24h CI run success rate. This is whether automation finished cleanly, so it can stay low after failed or aborted runs even when tests and latest gate checks are green."
        },
        {
          "id": 17,
          "type": "bargauge",
          "title": "Coverage by Suite (Latest, gate 95)",
          "datasource": {
            "type": "prometheus",
            "uid": "atlas-vm"
          },
          "gridPos": {
            "h": 7,
            "w": 6,
            "x": 12,
            "y": 4
          },
          "targets": [
            {
              "expr": "sort((max by (suite) (platform_quality:suite_coverage_percent:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"})) or on(suite) ((((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))) - 1)))",
              "refId": "A",
              "legendFormat": "{{suite}}",
              "instant": true
            }
          ],
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "unit": "percent",
              "min": 0,
              "max": 100,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "dark-orange",
                    "value": 90
                  },
                  {
                    "color": "dark-yellow",
                    "value": 93
                  },
                  {
                    "color": "dark-green",
                    "value": 95
                  },
                  {
                    "color": "dark-blue",
                    "value": 100
                  }
                ]
              },
              "decimals": 2,
              "mappings": [
                {
                  "type": "value",
                  "options": {
                    "-1": {
                      "text": "missing"
                    }
                  }
                }
              ]
            },
            "overrides": []
          },
          "options": {
            "displayMode": "basic",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            }
          },
          "transformations": [
            {
              "id": "sortBy",
              "options": {
                "fields": [
                  "Value"
                ],
                "order": "asc"
              }
            }
          ],
          "description": "Latest suite coverage; 95%+ is acceptable and 100% is strongest."
        },
        {
          "id": 18,
          "type": "bargauge",
          "title": "Files <=500 LOC by Suite (Latest)",
          "datasource": {
            "type": "prometheus",
            "uid": "atlas-vm"
          },
          "gridPos": {
            "h": 7,
            "w": 6,
            "x": 18,
            "y": 4
          },
          "targets": [
            {
              "expr": "sort(((100 * clamp_min((max by (suite) (platform_quality:suite_source_files_total:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"})) - (max by (suite) (platform_quality:suite_source_lines_over_500_total:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"})), 0) / (max by (suite) (platform_quality:suite_source_files_total:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"}))) and on(suite) ((max by (suite) (platform_quality:suite_source_files_total:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"})) > 0)) or on(suite) (100 * (1 - clamp_max((max by (suite) (platform_quality:suite_source_lines_over_500_total:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"})), 1))) or on(suite) ((((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))) - 1)))",
              "refId": "A",
              "legendFormat": "{{suite}}",
              "instant": true
            }
          ],
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "unit": "percent",
              "min": 0,
              "max": 100,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "dark-orange",
                    "value": 90
                  },
                  {
                    "color": "dark-yellow",
                    "value": 93
                  },
                  {
                    "color": "dark-green",
                    "value": 95
                  },
                  {
                    "color": "dark-blue",
                    "value": 100
                  }
                ]
              },
              "decimals": 0,
              "mappings": [
                {
                  "type": "value",
                  "options": {
                    "-1": {
                      "text": "missing"
                    }
                  }
                }
              ]
            },
            "overrides": []
          },
          "options": {
            "displayMode": "basic",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            }
          },
          "transformations": [
            {
              "id": "sortBy",
              "options": {
                "fields": [
                  "Value"
                ],
                "order": "asc"
              }
            }
          ],
          "description": "Percent of managed LOC-gated files at or under 500 lines. Older suite payloads fall back to 100%/0% until they emit platform_quality_gate_source_files_total."
        },
        {
          "id": 500,
          "type": "row",
          "title": "CI Runs And Test Result History",
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 11
          },
          "collapsed": true,
          "panels": [
            {
              "id": 11,
              "type": "state-timeline",
              "title": "CI Run Success by Suite (7d rolling)",
              "description": "Seven-day rolling CI run success rate per suite. Each suite gets its own lane, so failed or aborted runs lower the lane color without implying raw test failures.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 8,
                "w": 12,
                "x": 0,
                "y": 19
              },
              "targets": [
                {
                  "expr": "(100 * sum by (suite) (increase((max without(instance, job) (platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",status=~\"ok|passed|success\"}))[7d:1h])) / (sum by (suite) (increase((max without(instance, job) (platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"}))[7d:1h])))) and on(suite) ((sum by (suite) (increase((max without(instance, job) (platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"}))[7d:1h]))) > 0)",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 153,
              "type": "state-timeline",
              "title": "Test Category Health History",
              "description": "Health by test category from memoized hourly rollups. Use the Suite filter to focus one project; skipped tests are healthy, while failures and errors lower the lane.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 8,
                "w": 12,
                "x": 12,
                "y": 19
              },
              "targets": [
                {
                  "expr": "avg by (category) (platform_quality:test_category_health_rate:percent_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",category=~\"api|chaos|compatibility|component|contract|e2e|integration|manual|performance|regression|reliability|security|smoke|system|ui|unit\"})",
                  "refId": "A",
                  "legendFormat": "{{category}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d",
              "links": [
                {
                  "title": "Open Jenkins",
                  "url": "${jenkins_base}/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Job",
                  "url": "${jenkins_base}/job/ariadne/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Last Artifacts",
                  "url": "${jenkins_base}/job/ariadne/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Job",
                  "url": "${jenkins_base}/job/metis/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Last Artifacts",
                  "url": "${jenkins_base}/job/metis/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Job",
                  "url": "${jenkins_base}/job/ananke/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Last Artifacts",
                  "url": "${jenkins_base}/job/ananke/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Job",
                  "url": "${jenkins_base}/job/atlasbot/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Last Artifacts",
                  "url": "${jenkins_base}/job/atlasbot/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Job",
                  "url": "${jenkins_base}/job/pegasus/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Last Artifacts",
                  "url": "${jenkins_base}/job/pegasus/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Job",
                  "url": "${jenkins_base}/job/Soteria/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Last Artifacts",
                  "url": "${jenkins_base}/job/Soteria/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Job",
                  "url": "${jenkins_base}/job/titan-iac/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Last Artifacts",
                  "url": "${jenkins_base}/job/titan-iac/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Job",
                  "url": "${jenkins_base}/job/bstein-dev-home/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Last Artifacts",
                  "url": "${jenkins_base}/job/bstein-dev-home/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Job",
                  "url": "${jenkins_base}/job/data-prepper/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Last Artifacts",
                  "url": "${jenkins_base}/job/data-prepper/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Job",
                  "url": "${jenkins_base}/job/lesavka/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Last Artifacts",
                  "url": "${jenkins_base}/job/lesavka/lastCompletedBuild/artifact/",
                  "targetBlank": true
                }
              ]
            },
            {
              "id": 12,
              "type": "timeseries",
              "title": "Daily Run Volume (Selected Scope)",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 8,
                "w": 8,
                "x": 0,
                "y": 27
              },
              "targets": [
                {
                  "refId": "A",
                  "expr": "sum(platform_quality:suite_runs:increase_24h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",status=~\"ok|passed|success\"}) or on() vector(0)",
                  "legendFormat": "Success"
                },
                {
                  "refId": "B",
                  "expr": "sum(platform_quality:suite_runs:increase_24h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",status!~\"ok|passed|success\"}) or on() vector(0)",
                  "legendFormat": "Failure"
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "unit": "none",
                  "min": 0,
                  "custom": {
                    "drawStyle": "bars",
                    "barAlignment": 0,
                    "lineWidth": 0,
                    "fillOpacity": 70,
                    "stacking": {
                      "mode": "normal",
                      "group": "A"
                    }
                  }
                },
                "overrides": []
              },
              "options": {
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "multi"
                }
              },
              "timeFrom": "7d",
              "description": "Twenty-four-hour rolling quality-gate run counts for the selected suite/branch scope. This is volume, not a pass-rate percentage."
            },
            {
              "id": 13,
              "type": "state-timeline",
              "title": "Coverage History by Suite",
              "description": "Latest reported line coverage per suite over time. Coverage is separate from LOC compliance so one signal cannot hide the other.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 8,
                "w": 8,
                "x": 8,
                "y": 27
              },
              "targets": [
                {
                  "expr": "max by (suite) (platform_quality:suite_coverage_percent:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"})",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 14,
              "type": "state-timeline",
              "title": "Files <=500 LOC History by Suite",
              "description": "Percent of LOC-gated source files at or under the 500-line limit. This uses the existing file-count telemetry; longest-file history needs a new publisher metric.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 8,
                "w": 8,
                "x": 16,
                "y": 27
              },
              "targets": [
                {
                  "expr": "(100 * clamp_min((max by (suite) (platform_quality:suite_source_files_total:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"})) - (max by (suite) (platform_quality:suite_source_lines_over_500_total:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"})), 0) / (max by (suite) (platform_quality:suite_source_files_total:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"}))) and on(suite) ((max by (suite) (platform_quality:suite_source_files_total:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"})) > 0) or on(suite) (100 * (1 - clamp_max((max by (suite) (platform_quality:suite_source_lines_over_500_total:latest_1h{suite=~\"${suite:regex}\",branch=~\"${branch:regex}\"})), 1)))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            }
          ],
          "description": "Recent CI run, coverage, LOC, and raw test-result trends for selected suites."
        },
        {
          "id": 501,
          "type": "row",
          "title": "Check Failure Rates By Suite",
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 12
          },
          "collapsed": true,
          "panels": [
            {
              "id": 130,
              "type": "state-timeline",
              "title": "Tests Failure Rate",
              "description": "Latest bad-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are failing in the freshness window; this is not an event-count spike chart.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 0,
                "y": 29
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_failed_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"tests|unit|build\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"tests|unit|build\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-blue",
                        "value": null
                      },
                      {
                        "color": "dark-green",
                        "value": 0.01
                      },
                      {
                        "color": "dark-yellow",
                        "value": 1
                      },
                      {
                        "color": "dark-orange",
                        "value": 3
                      },
                      {
                        "color": "dark-red",
                        "value": 5
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 131,
              "type": "state-timeline",
              "title": "Coverage Failure Rate",
              "description": "Latest bad-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are failing in the freshness window; this is not an event-count spike chart.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 6,
                "y": 29
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_failed_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"coverage\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"coverage\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-blue",
                        "value": null
                      },
                      {
                        "color": "dark-green",
                        "value": 0.01
                      },
                      {
                        "color": "dark-yellow",
                        "value": 1
                      },
                      {
                        "color": "dark-orange",
                        "value": 3
                      },
                      {
                        "color": "dark-red",
                        "value": 5
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 132,
              "type": "state-timeline",
              "title": "LOC Failure Rate",
              "description": "Latest bad-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are failing in the freshness window; this is not an event-count spike chart.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 12,
                "y": 29
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_failed_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"loc|smell\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"loc|smell\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-blue",
                        "value": null
                      },
                      {
                        "color": "dark-green",
                        "value": 0.01
                      },
                      {
                        "color": "dark-yellow",
                        "value": 1
                      },
                      {
                        "color": "dark-orange",
                        "value": 3
                      },
                      {
                        "color": "dark-red",
                        "value": 5
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 133,
              "type": "state-timeline",
              "title": "Style Failure Rate",
              "description": "Latest bad-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are failing in the freshness window; this is not an event-count spike chart.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 18,
                "y": 29
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_failed_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"docs|naming|hygiene|lint|docs_naming|style\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"docs|naming|hygiene|lint|docs_naming|style\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-blue",
                        "value": null
                      },
                      {
                        "color": "dark-green",
                        "value": 0.01
                      },
                      {
                        "color": "dark-yellow",
                        "value": 1
                      },
                      {
                        "color": "dark-orange",
                        "value": 3
                      },
                      {
                        "color": "dark-red",
                        "value": 5
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 134,
              "type": "state-timeline",
              "title": "Gate Glue Failure Rate",
              "description": "Latest bad-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are failing in the freshness window; this is not an event-count spike chart.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 8,
                "x": 0,
                "y": 36
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_failed_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"gate|glue|gate_glue\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"gate|glue|gate_glue\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-blue",
                        "value": null
                      },
                      {
                        "color": "dark-green",
                        "value": 0.01
                      },
                      {
                        "color": "dark-yellow",
                        "value": 1
                      },
                      {
                        "color": "dark-orange",
                        "value": 3
                      },
                      {
                        "color": "dark-red",
                        "value": 5
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 135,
              "type": "state-timeline",
              "title": "SonarQube Failure Rate",
              "description": "Latest bad-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are failing in the freshness window; this is not an event-count spike chart.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 8,
                "x": 8,
                "y": 36
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_failed_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"sonarqube|sonar\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"sonarqube|sonar\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-blue",
                        "value": null
                      },
                      {
                        "color": "dark-green",
                        "value": 0.01
                      },
                      {
                        "color": "dark-yellow",
                        "value": 1
                      },
                      {
                        "color": "dark-orange",
                        "value": 3
                      },
                      {
                        "color": "dark-red",
                        "value": 5
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 136,
              "type": "state-timeline",
              "title": "Supply Chain Failure Rate",
              "description": "Latest bad-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are failing in the freshness window; this is not an event-count spike chart.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 8,
                "x": 16,
                "y": 36
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_failed_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"ironbank|supply_chain|image_compliance|artifact_security\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"ironbank|supply_chain|image_compliance|artifact_security\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-blue",
                        "value": null
                      },
                      {
                        "color": "dark-green",
                        "value": 0.01
                      },
                      {
                        "color": "dark-yellow",
                        "value": 1
                      },
                      {
                        "color": "dark-orange",
                        "value": 3
                      },
                      {
                        "color": "dark-red",
                        "value": 5
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            }
          ],
          "description": "Failure percent by check family; blue is zero failures, warmer colors show blockers."
        },
        {
          "id": 502,
          "type": "row",
          "title": "Check Healthy Rates By Suite",
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 13
          },
          "collapsed": true,
          "panels": [
            {
              "id": 138,
              "type": "state-timeline",
              "title": "Tests Healthy Rate",
              "description": "Latest acceptable-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are healthy in the freshness window; gaps mean there was no check evidence.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 0,
                "y": 43
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_healthy_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"tests|unit|build\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"tests|unit|build\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 139,
              "type": "state-timeline",
              "title": "Coverage Healthy Rate",
              "description": "Latest acceptable-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are healthy in the freshness window; gaps mean there was no check evidence.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 6,
                "y": 43
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_healthy_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"coverage\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"coverage\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 140,
              "type": "state-timeline",
              "title": "LOC Healthy Rate",
              "description": "Latest acceptable-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are healthy in the freshness window; gaps mean there was no check evidence.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 12,
                "y": 43
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_healthy_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"loc|smell\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"loc|smell\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 141,
              "type": "state-timeline",
              "title": "Style Healthy Rate",
              "description": "Latest acceptable-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are healthy in the freshness window; gaps mean there was no check evidence.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 18,
                "y": 43
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_healthy_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"docs|naming|hygiene|lint|docs_naming|style\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"docs|naming|hygiene|lint|docs_naming|style\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 142,
              "type": "state-timeline",
              "title": "Gate Glue Healthy Rate",
              "description": "Latest acceptable-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are healthy in the freshness window; gaps mean there was no check evidence.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 8,
                "x": 0,
                "y": 50
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_healthy_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"gate|glue|gate_glue\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"gate|glue|gate_glue\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 143,
              "type": "state-timeline",
              "title": "SonarQube Healthy Rate",
              "description": "Latest acceptable-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are healthy in the freshness window; gaps mean there was no check evidence.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 8,
                "x": 8,
                "y": 50
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_healthy_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"sonarqube|sonar\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"sonarqube|sonar\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            },
            {
              "id": 144,
              "type": "state-timeline",
              "title": "Supply Chain Healthy Rate",
              "description": "Latest acceptable-state percentage for this check family, evaluated over time. Higher means more selected suites/checks are healthy in the freshness window; gaps mean there was no check evidence.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 8,
                "x": 16,
                "y": 50
              },
              "targets": [
                {
                  "expr": "(((100 * (sum by (suite) (platform_quality:check_healthy_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"ironbank|supply_chain|image_compliance|artifact_security\"})) / clamp_min((sum by (suite) (platform_quality:check_seen_flag:present_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",check=~\"ironbank|supply_chain|image_compliance|artifact_security\"})), 1))) or on(suite) ((0 * ((count by (suite) (platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}) >= bool 0)))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            }
          ],
          "description": "Healthy percent by check family; blue means all selected checks are good."
        },
        {
          "id": 503,
          "type": "row",
          "title": "Test Drilldowns And Problem Tests",
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 14
          },
          "collapsed": true,
          "panels": [
            {
              "id": 145,
              "type": "state-timeline",
              "title": "Problematic Tests Over Time (Top failures)",
              "description": "Current outlier tests by rolling 24h failure count. A test needs at least two recent failures to appear, then falls off once it quiets down.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 8,
                "w": 24,
                "x": 0,
                "y": 74
              },
              "targets": [
                {
                  "expr": "(sum by (suite, test) (sum_over_time(platform_quality:test_case_status:count_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",test!=\"\",test!=\"__no_test_cases__\",status=\"failed\"}[24h:1h]))) and on (suite, test) topk(12, (sum by (suite, test) (sum_over_time(platform_quality:test_case_status:count_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",test!=\"\",test!=\"__no_test_cases__\",status=\"failed\"}[24h:1h] @ end()))) >= 2)",
                  "refId": "A",
                  "legendFormat": "{{suite}} - {{test}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "none",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-blue",
                        "value": null
                      },
                      {
                        "color": "dark-green",
                        "value": 2
                      },
                      {
                        "color": "dark-yellow",
                        "value": 3
                      },
                      {
                        "color": "dark-orange",
                        "value": 5
                      },
                      {
                        "color": "dark-red",
                        "value": 8
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "links": [
                    {
                      "title": "Open latest artifacts",
                      "url": "${jenkins_base}/job/${__field.labels.jenkins_job}/lastCompletedBuild/artifact/",
                      "targetBlank": true
                    },
                    {
                      "title": "Open Jenkins job",
                      "url": "${jenkins_base}/job/${__field.labels.jenkins_job}/",
                      "targetBlank": true
                    }
                  ]
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "24h",
              "links": [
                {
                  "title": "Open Jenkins",
                  "url": "${jenkins_base}/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Job",
                  "url": "${jenkins_base}/job/ariadne/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Last Artifacts",
                  "url": "${jenkins_base}/job/ariadne/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Job",
                  "url": "${jenkins_base}/job/metis/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Last Artifacts",
                  "url": "${jenkins_base}/job/metis/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Job",
                  "url": "${jenkins_base}/job/ananke/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Last Artifacts",
                  "url": "${jenkins_base}/job/ananke/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Job",
                  "url": "${jenkins_base}/job/atlasbot/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Last Artifacts",
                  "url": "${jenkins_base}/job/atlasbot/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Job",
                  "url": "${jenkins_base}/job/pegasus/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Last Artifacts",
                  "url": "${jenkins_base}/job/pegasus/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Job",
                  "url": "${jenkins_base}/job/Soteria/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Last Artifacts",
                  "url": "${jenkins_base}/job/Soteria/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Job",
                  "url": "${jenkins_base}/job/titan-iac/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Last Artifacts",
                  "url": "${jenkins_base}/job/titan-iac/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Job",
                  "url": "${jenkins_base}/job/bstein-dev-home/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Last Artifacts",
                  "url": "${jenkins_base}/job/bstein-dev-home/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Job",
                  "url": "${jenkins_base}/job/data-prepper/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Last Artifacts",
                  "url": "${jenkins_base}/job/data-prepper/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Job",
                  "url": "${jenkins_base}/job/lesavka/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Last Artifacts",
                  "url": "${jenkins_base}/job/lesavka/lastCompletedBuild/artifact/",
                  "targetBlank": true
                }
              ]
            },
            {
              "id": 147,
              "type": "bargauge",
              "title": "Most Problematic Test by Suite (7d)",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 8,
                "w": 8,
                "x": 0,
                "y": 83
              },
              "targets": [
                {
                  "expr": "sort_desc(topk by (suite) (1, (sum by (suite, test) (sum_over_time(platform_quality:test_case_status:count_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",test!=\"\",test!=\"__no_test_cases__\",status=\"failed\"}[7d:1h])))))",
                  "refId": "A",
                  "legendFormat": "{{suite}} \u00b7 {{test}}",
                  "instant": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "none",
                  "min": 0,
                  "max": null,
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-blue",
                        "value": null
                      },
                      {
                        "color": "dark-green",
                        "value": 2
                      },
                      {
                        "color": "dark-yellow",
                        "value": 3
                      },
                      {
                        "color": "dark-orange",
                        "value": 5
                      },
                      {
                        "color": "dark-red",
                        "value": 8
                      }
                    ]
                  },
                  "links": [
                    {
                      "title": "Open latest artifacts",
                      "url": "${jenkins_base}/job/${__field.labels.jenkins_job}/lastCompletedBuild/artifact/",
                      "targetBlank": true
                    },
                    {
                      "title": "Open Jenkins job",
                      "url": "${jenkins_base}/job/${__field.labels.jenkins_job}/",
                      "targetBlank": true
                    }
                  ]
                },
                "overrides": []
              },
              "options": {
                "displayMode": "basic",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                }
              },
              "links": [
                {
                  "title": "Open Jenkins",
                  "url": "${jenkins_base}/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Job",
                  "url": "${jenkins_base}/job/ariadne/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Last Artifacts",
                  "url": "${jenkins_base}/job/ariadne/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Job",
                  "url": "${jenkins_base}/job/metis/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Last Artifacts",
                  "url": "${jenkins_base}/job/metis/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Job",
                  "url": "${jenkins_base}/job/ananke/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Last Artifacts",
                  "url": "${jenkins_base}/job/ananke/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Job",
                  "url": "${jenkins_base}/job/atlasbot/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Last Artifacts",
                  "url": "${jenkins_base}/job/atlasbot/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Job",
                  "url": "${jenkins_base}/job/pegasus/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Last Artifacts",
                  "url": "${jenkins_base}/job/pegasus/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Job",
                  "url": "${jenkins_base}/job/Soteria/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Last Artifacts",
                  "url": "${jenkins_base}/job/Soteria/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Job",
                  "url": "${jenkins_base}/job/titan-iac/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Last Artifacts",
                  "url": "${jenkins_base}/job/titan-iac/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Job",
                  "url": "${jenkins_base}/job/bstein-dev-home/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Last Artifacts",
                  "url": "${jenkins_base}/job/bstein-dev-home/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Job",
                  "url": "${jenkins_base}/job/data-prepper/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Last Artifacts",
                  "url": "${jenkins_base}/job/data-prepper/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Job",
                  "url": "${jenkins_base}/job/lesavka/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Last Artifacts",
                  "url": "${jenkins_base}/job/lesavka/lastCompletedBuild/artifact/",
                  "targetBlank": true
                }
              ],
              "transformations": [
                {
                  "id": "sortBy",
                  "options": {
                    "fields": [
                      "Value"
                    ],
                    "order": "desc"
                  }
                },
                {
                  "id": "limit",
                  "options": {
                    "limit": 9
                  }
                }
              ],
              "description": "Worst test per suite summed across 7d. This catches repeat offenders while keeping dashboard loads bounded; current hourly top list is quiet."
            },
            {
              "id": 146,
              "type": "timeseries",
              "title": "Selected Test Pass/Fail History",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 8,
                "w": 8,
                "x": 8,
                "y": 83
              },
              "targets": [
                {
                  "refId": "A",
                  "expr": "(sum(platform_quality:test_case_status:count_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",test!=\"\",test=~\"${test:regex}\",test!=\"__no_test_cases__\",status=\"passed\"}) or on() vector(0))",
                  "legendFormat": "Passed"
                },
                {
                  "refId": "B",
                  "expr": "(sum(platform_quality:test_case_status:count_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",test!=\"\",test=~\"${test:regex}\",test!=\"__no_test_cases__\",status=\"failed\"}) or on() vector(0))",
                  "legendFormat": "Failed"
                },
                {
                  "refId": "C",
                  "expr": "(sum(platform_quality:test_case_status:count_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",test!=\"\",test=~\"${test:regex}\",test!=\"__no_test_cases__\",status=\"skipped\"}) or on() vector(0))",
                  "legendFormat": "Skipped"
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "unit": "none",
                  "links": [
                    {
                      "title": "Open build artifacts",
                      "url": "${jenkins_base}/job/${__field.labels.jenkins_job}/${__field.labels.build_number}/artifact/",
                      "targetBlank": true
                    },
                    {
                      "title": "Open build",
                      "url": "${jenkins_base}/job/${__field.labels.jenkins_job}/${__field.labels.build_number}/",
                      "targetBlank": true
                    }
                  ],
                  "min": 0,
                  "custom": {
                    "drawStyle": "bars",
                    "barAlignment": 0,
                    "lineWidth": 0,
                    "fillOpacity": 70,
                    "stacking": {
                      "mode": "normal",
                      "group": "A"
                    }
                  }
                },
                "overrides": []
              },
              "options": {
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "multi"
                }
              },
              "links": [
                {
                  "title": "Open Jenkins",
                  "url": "${jenkins_base}/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Job",
                  "url": "${jenkins_base}/job/ariadne/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Last Artifacts",
                  "url": "${jenkins_base}/job/ariadne/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Job",
                  "url": "${jenkins_base}/job/metis/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Last Artifacts",
                  "url": "${jenkins_base}/job/metis/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Job",
                  "url": "${jenkins_base}/job/ananke/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Last Artifacts",
                  "url": "${jenkins_base}/job/ananke/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Job",
                  "url": "${jenkins_base}/job/atlasbot/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Last Artifacts",
                  "url": "${jenkins_base}/job/atlasbot/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Job",
                  "url": "${jenkins_base}/job/pegasus/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Last Artifacts",
                  "url": "${jenkins_base}/job/pegasus/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Job",
                  "url": "${jenkins_base}/job/Soteria/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Last Artifacts",
                  "url": "${jenkins_base}/job/Soteria/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Job",
                  "url": "${jenkins_base}/job/titan-iac/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Last Artifacts",
                  "url": "${jenkins_base}/job/titan-iac/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Job",
                  "url": "${jenkins_base}/job/bstein-dev-home/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Last Artifacts",
                  "url": "${jenkins_base}/job/bstein-dev-home/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Job",
                  "url": "${jenkins_base}/job/data-prepper/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Last Artifacts",
                  "url": "${jenkins_base}/job/data-prepper/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Job",
                  "url": "${jenkins_base}/job/lesavka/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Last Artifacts",
                  "url": "${jenkins_base}/job/lesavka/lastCompletedBuild/artifact/",
                  "targetBlank": true
                }
              ],
              "description": "Stacked hourly outcome volume for the selected suite/branch/test scope. This uses vmalert rollups only, avoiding expensive raw long-range per-test scans.",
              "timeFrom": "24h"
            },
            {
              "id": 152,
              "type": "state-timeline",
              "title": "Selected Test Pass Rate History",
              "description": "Average pass rate per suite for the selected test filter, using memoized hourly test-case pass-rate rollups instead of raw historical scans.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 8,
                "w": 8,
                "x": 16,
                "y": 83
              },
              "targets": [
                {
                  "expr": "avg by (suite) (platform_quality:test_case_pass_rate:percent_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",test!=\"\",test=~\"${test:regex}\",test!=\"__no_test_cases__\"})",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100,
                  "links": [
                    {
                      "title": "Open build artifacts",
                      "url": "${jenkins_base}/job/${__field.labels.jenkins_job}/${__field.labels.build_number}/artifact/",
                      "targetBlank": true
                    },
                    {
                      "title": "Open build",
                      "url": "${jenkins_base}/job/${__field.labels.jenkins_job}/${__field.labels.build_number}/",
                      "targetBlank": true
                    }
                  ]
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "24h",
              "links": [
                {
                  "title": "Open Jenkins",
                  "url": "${jenkins_base}/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Job",
                  "url": "${jenkins_base}/job/ariadne/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Last Artifacts",
                  "url": "${jenkins_base}/job/ariadne/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Job",
                  "url": "${jenkins_base}/job/metis/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Last Artifacts",
                  "url": "${jenkins_base}/job/metis/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Job",
                  "url": "${jenkins_base}/job/ananke/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Last Artifacts",
                  "url": "${jenkins_base}/job/ananke/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Job",
                  "url": "${jenkins_base}/job/atlasbot/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Last Artifacts",
                  "url": "${jenkins_base}/job/atlasbot/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Job",
                  "url": "${jenkins_base}/job/pegasus/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Last Artifacts",
                  "url": "${jenkins_base}/job/pegasus/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Job",
                  "url": "${jenkins_base}/job/Soteria/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Last Artifacts",
                  "url": "${jenkins_base}/job/Soteria/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Job",
                  "url": "${jenkins_base}/job/titan-iac/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Last Artifacts",
                  "url": "${jenkins_base}/job/titan-iac/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Job",
                  "url": "${jenkins_base}/job/bstein-dev-home/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Last Artifacts",
                  "url": "${jenkins_base}/job/bstein-dev-home/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Job",
                  "url": "${jenkins_base}/job/data-prepper/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Last Artifacts",
                  "url": "${jenkins_base}/job/data-prepper/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Job",
                  "url": "${jenkins_base}/job/lesavka/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Last Artifacts",
                  "url": "${jenkins_base}/job/lesavka/lastCompletedBuild/artifact/",
                  "targetBlank": true
                }
              ]
            }
          ],
          "description": "Test-case detail for finding which tests are hurting reliability."
        },
        {
          "id": 504,
          "type": "row",
          "title": "Telemetry Completeness And Branches",
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 15
          },
          "collapsed": true,
          "panels": [
            {
              "id": 27,
              "type": "bargauge",
              "title": "Tests Metrics Present by Suite",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 0,
                "y": 94
              },
              "targets": [
                {
                  "expr": "sort((100 * (((label_replace(vector(1), \"suite\", \"ariadne\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"metis\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"ananke\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"atlasbot\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"pegasus\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"soteria\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"titan_iac\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"bstein_home\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"data_prepper\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"lesavka\", \"__name__\", \".*\")) and on(suite) count by (suite) ({__name__=~\".*_quality_gate_tests_total\",exported_job=\"platform-quality-ci\"})))) or on(suite) (0 * (label_replace(vector(1), \"suite\", \"ariadne\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"metis\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"ananke\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"atlasbot\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"pegasus\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"soteria\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"titan_iac\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"bstein_home\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"data_prepper\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"lesavka\", \"__name__\", \".*\"))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "instant": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "min": 0,
                  "max": 100,
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "decimals": 0
                },
                "overrides": []
              },
              "options": {
                "displayMode": "basic",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                }
              },
              "transformations": [
                {
                  "id": "sortBy",
                  "options": {
                    "fields": [
                      "Value"
                    ],
                    "order": "asc"
                  }
                }
              ],
              "description": "Whether suite-level test counts are present; 100% means the suite is reporting."
            },
            {
              "id": 28,
              "type": "bargauge",
              "title": "Checks Metrics Present by Suite",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 6,
                "y": 94
              },
              "targets": [
                {
                  "expr": "sort((100 * (((label_replace(vector(1), \"suite\", \"ariadne\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"metis\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"ananke\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"atlasbot\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"pegasus\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"soteria\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"titan_iac\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"bstein_home\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"data_prepper\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"lesavka\", \"__name__\", \".*\")) and on(suite) count by (suite) ({__name__=~\".*_quality_gate_checks_total\",exported_job=\"platform-quality-ci\"})))) or on(suite) (0 * (label_replace(vector(1), \"suite\", \"ariadne\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"metis\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"ananke\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"atlasbot\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"pegasus\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"soteria\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"titan_iac\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"bstein_home\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"data_prepper\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"lesavka\", \"__name__\", \".*\"))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "instant": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "min": 0,
                  "max": 100,
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "decimals": 0
                },
                "overrides": []
              },
              "options": {
                "displayMode": "basic",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                }
              },
              "transformations": [
                {
                  "id": "sortBy",
                  "options": {
                    "fields": [
                      "Value"
                    ],
                    "order": "asc"
                  }
                }
              ],
              "description": "Whether gate check metrics are present; 100% means health panels have inputs."
            },
            {
              "id": 29,
              "type": "bargauge",
              "title": "Coverage Metrics Present by Suite",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 12,
                "y": 94
              },
              "targets": [
                {
                  "expr": "sort((100 * (((label_replace(vector(1), \"suite\", \"ariadne\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"metis\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"ananke\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"atlasbot\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"pegasus\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"soteria\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"titan_iac\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"bstein_home\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"data_prepper\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"lesavka\", \"__name__\", \".*\")) and on(suite) count by (suite) (platform_quality_gate_workspace_line_coverage_percent{exported_job=\"platform-quality-ci\"})))) or on(suite) (0 * (label_replace(vector(1), \"suite\", \"ariadne\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"metis\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"ananke\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"atlasbot\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"pegasus\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"soteria\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"titan_iac\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"bstein_home\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"data_prepper\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"lesavka\", \"__name__\", \".*\"))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "instant": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "min": 0,
                  "max": 100,
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "decimals": 0
                },
                "overrides": []
              },
              "options": {
                "displayMode": "basic",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                }
              },
              "transformations": [
                {
                  "id": "sortBy",
                  "options": {
                    "fields": [
                      "Value"
                    ],
                    "order": "asc"
                  }
                }
              ],
              "description": "Whether coverage metrics are present; 100% means coverage panels are reliable."
            },
            {
              "id": 30,
              "type": "bargauge",
              "title": "LOC Compliance Metrics Present by Suite",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 18,
                "y": 94
              },
              "targets": [
                {
                  "expr": "sort((100 * (((label_replace(vector(1), \"suite\", \"ariadne\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"metis\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"ananke\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"atlasbot\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"pegasus\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"soteria\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"titan_iac\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"bstein_home\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"data_prepper\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"lesavka\", \"__name__\", \".*\")) and on(suite) count by (suite) (platform_quality_gate_source_lines_over_500_total{exported_job=\"platform-quality-ci\"}) and on(suite) count by (suite) (platform_quality_gate_source_files_total{exported_job=\"platform-quality-ci\"})))) or on(suite) (0 * (label_replace(vector(1), \"suite\", \"ariadne\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"metis\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"ananke\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"atlasbot\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"pegasus\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"soteria\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"titan_iac\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"bstein_home\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"data_prepper\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"lesavka\", \"__name__\", \".*\"))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "instant": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "min": 0,
                  "max": 100,
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "decimals": 0
                },
                "overrides": []
              },
              "options": {
                "displayMode": "basic",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                }
              },
              "transformations": [
                {
                  "id": "sortBy",
                  "options": {
                    "fields": [
                      "Value"
                    ],
                    "order": "asc"
                  }
                }
              ],
              "description": "Whether LOC metrics are present; 100% means size panels are reliable."
            },
            {
              "id": 148,
              "type": "bargauge",
              "title": "Test-Case Metrics Present by Suite",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 0,
                "y": 101
              },
              "targets": [
                {
                  "expr": "sort((100 * (((label_replace(vector(1), \"suite\", \"ariadne\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"metis\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"ananke\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"atlasbot\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"pegasus\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"soteria\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"titan_iac\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"bstein_home\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"data_prepper\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"lesavka\", \"__name__\", \".*\")) and on(suite) count by (suite) (platform_quality_gate_test_case_result{exported_job=\"platform-quality-ci\"})))) or on(suite) (0 * (label_replace(vector(1), \"suite\", \"ariadne\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"metis\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"ananke\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"atlasbot\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"pegasus\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"soteria\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"titan_iac\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"bstein_home\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"data_prepper\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"lesavka\", \"__name__\", \".*\"))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "instant": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "min": 0,
                  "max": 100,
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "decimals": 0
                },
                "overrides": []
              },
              "options": {
                "displayMode": "basic",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                }
              },
              "transformations": [
                {
                  "id": "sortBy",
                  "options": {
                    "fields": [
                      "Value"
                    ],
                    "order": "asc"
                  }
                }
              ],
              "description": "Whether per-test metrics are present; 100% enables drilldowns."
            },
            {
              "id": 151,
              "type": "bargauge",
              "title": "Real Test Cases Present by Suite",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 6,
                "y": 101
              },
              "targets": [
                {
                  "expr": "sort((100 * (((label_replace(vector(1), \"suite\", \"ariadne\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"metis\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"ananke\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"atlasbot\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"pegasus\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"soteria\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"titan_iac\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"bstein_home\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"data_prepper\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"lesavka\", \"__name__\", \".*\")) and on(suite) count by (suite) (platform_quality_gate_test_case_result{exported_job=\"platform-quality-ci\",test!=\"__no_test_cases__\"})))) or on(suite) (0 * (label_replace(vector(1), \"suite\", \"ariadne\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"metis\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"ananke\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"atlasbot\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"pegasus\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"soteria\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"titan_iac\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"bstein_home\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"data_prepper\", \"__name__\", \".*\") or label_replace(vector(1), \"suite\", \"lesavka\", \"__name__\", \".*\"))))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "instant": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "min": 0,
                  "max": 100,
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "decimals": 0
                },
                "overrides": []
              },
              "options": {
                "displayMode": "basic",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                }
              },
              "transformations": [
                {
                  "id": "sortBy",
                  "options": {
                    "fields": [
                      "Value"
                    ],
                    "order": "asc"
                  }
                }
              ],
              "description": "Whether real test names are present; 100% means not just placeholder telemetry."
            },
            {
              "id": 150,
              "type": "bargauge",
              "title": "Primary Branch Clean by Suite (7d)",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 12,
                "y": 101
              },
              "targets": [
                {
                  "expr": "sort((100 * (((count by (suite) (max_over_time(platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}[7d:1h]))) > bool 0) unless on(suite) ((count by (suite) (max_over_time(platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\",branch!~\"main|master|origin/main|origin/master|unknown\"}[7d:1h]))) > bool 0))) or on(suite) (0 * ((count by (suite) (max_over_time(platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}[7d:1h]))) > bool 0)))",
                  "refId": "A",
                  "legendFormat": "{{suite}}",
                  "instant": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "min": 0,
                  "max": 100,
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "decimals": 0
                },
                "overrides": []
              },
              "options": {
                "displayMode": "basic",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                }
              },
              "links": [
                {
                  "title": "Open Jenkins",
                  "url": "${jenkins_base}/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Job",
                  "url": "${jenkins_base}/job/ariadne/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Last Artifacts",
                  "url": "${jenkins_base}/job/ariadne/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Job",
                  "url": "${jenkins_base}/job/metis/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Last Artifacts",
                  "url": "${jenkins_base}/job/metis/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Job",
                  "url": "${jenkins_base}/job/ananke/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Last Artifacts",
                  "url": "${jenkins_base}/job/ananke/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Job",
                  "url": "${jenkins_base}/job/atlasbot/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Last Artifacts",
                  "url": "${jenkins_base}/job/atlasbot/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Job",
                  "url": "${jenkins_base}/job/pegasus/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Last Artifacts",
                  "url": "${jenkins_base}/job/pegasus/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Job",
                  "url": "${jenkins_base}/job/Soteria/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Last Artifacts",
                  "url": "${jenkins_base}/job/Soteria/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Job",
                  "url": "${jenkins_base}/job/titan-iac/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Last Artifacts",
                  "url": "${jenkins_base}/job/titan-iac/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Job",
                  "url": "${jenkins_base}/job/bstein-dev-home/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Last Artifacts",
                  "url": "${jenkins_base}/job/bstein-dev-home/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Job",
                  "url": "${jenkins_base}/job/data-prepper/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Last Artifacts",
                  "url": "${jenkins_base}/job/data-prepper/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Job",
                  "url": "${jenkins_base}/job/lesavka/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Last Artifacts",
                  "url": "${jenkins_base}/job/lesavka/lastCompletedBuild/artifact/",
                  "targetBlank": true
                }
              ],
              "transformations": [
                {
                  "id": "sortBy",
                  "options": {
                    "fields": [
                      "Value"
                    ],
                    "order": "asc"
                  }
                }
              ],
              "description": "Percent clean of non-primary branch evidence; 100% means only main/master is reporting."
            },
            {
              "id": 149,
              "type": "bargauge",
              "title": "Recent Branch Evidence by Suite (7d)",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 7,
                "w": 6,
                "x": 18,
                "y": 101
              },
              "targets": [
                {
                  "expr": "sort_desc(count by (suite, branch) (max_over_time(platform_quality_gate_build_info{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",exported_job=\"platform-quality-ci\"}[7d:1h])))",
                  "refId": "A",
                  "legendFormat": "{{suite}} \u00b7 {{branch}}",
                  "instant": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "none",
                  "min": 0,
                  "max": null,
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-green",
                        "value": null
                      },
                      {
                        "color": "dark-red",
                        "value": 1
                      }
                    ]
                  },
                  "decimals": 0
                },
                "overrides": []
              },
              "options": {
                "displayMode": "basic",
                "orientation": "horizontal",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                }
              },
              "links": [
                {
                  "title": "Open Jenkins",
                  "url": "${jenkins_base}/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Job",
                  "url": "${jenkins_base}/job/ariadne/",
                  "targetBlank": true
                },
                {
                  "title": "ariadne: Last Artifacts",
                  "url": "${jenkins_base}/job/ariadne/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Job",
                  "url": "${jenkins_base}/job/metis/",
                  "targetBlank": true
                },
                {
                  "title": "metis: Last Artifacts",
                  "url": "${jenkins_base}/job/metis/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Job",
                  "url": "${jenkins_base}/job/ananke/",
                  "targetBlank": true
                },
                {
                  "title": "ananke: Last Artifacts",
                  "url": "${jenkins_base}/job/ananke/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Job",
                  "url": "${jenkins_base}/job/atlasbot/",
                  "targetBlank": true
                },
                {
                  "title": "atlasbot: Last Artifacts",
                  "url": "${jenkins_base}/job/atlasbot/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Job",
                  "url": "${jenkins_base}/job/pegasus/",
                  "targetBlank": true
                },
                {
                  "title": "pegasus: Last Artifacts",
                  "url": "${jenkins_base}/job/pegasus/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Job",
                  "url": "${jenkins_base}/job/Soteria/",
                  "targetBlank": true
                },
                {
                  "title": "soteria: Last Artifacts",
                  "url": "${jenkins_base}/job/Soteria/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Job",
                  "url": "${jenkins_base}/job/titan-iac/",
                  "targetBlank": true
                },
                {
                  "title": "titan_iac: Last Artifacts",
                  "url": "${jenkins_base}/job/titan-iac/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Job",
                  "url": "${jenkins_base}/job/bstein-dev-home/",
                  "targetBlank": true
                },
                {
                  "title": "bstein_home: Last Artifacts",
                  "url": "${jenkins_base}/job/bstein-dev-home/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Job",
                  "url": "${jenkins_base}/job/data-prepper/",
                  "targetBlank": true
                },
                {
                  "title": "data_prepper: Last Artifacts",
                  "url": "${jenkins_base}/job/data-prepper/lastCompletedBuild/artifact/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Job",
                  "url": "${jenkins_base}/job/lesavka/",
                  "targetBlank": true
                },
                {
                  "title": "lesavka: Last Artifacts",
                  "url": "${jenkins_base}/job/lesavka/lastCompletedBuild/artifact/",
                  "targetBlank": true
                }
              ],
              "transformations": [
                {
                  "id": "sortBy",
                  "options": {
                    "fields": [
                      "Value"
                    ],
                    "order": "desc"
                  }
                }
              ],
              "description": "Branches with recent CI evidence; unexpected branches can mean drift or stale work."
            }
          ],
          "description": "Checks that each suite publishes the data this dashboard needs."
        },
        {
          "id": 505,
          "type": "row",
          "title": "SonarQube Project Health",
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 16
          },
          "collapsed": true,
          "panels": [
            {
              "id": 31,
              "type": "stat",
              "title": "SonarQube API Up",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 6,
                "w": 4,
                "x": 0,
                "y": 111
              },
              "targets": [
                {
                  "expr": "(max(sonarqube_up) or on() vector(0))",
                  "refId": "A",
                  "instant": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "mappings": [],
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-green",
                        "value": 1
                      }
                    ]
                  },
                  "unit": "none",
                  "custom": {
                    "displayMode": "auto"
                  }
                },
                "overrides": []
              },
              "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "center",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                },
                "textMode": "value"
              },
              "description": "Whether the SonarQube exporter can reach SonarQube; 1 is good."
            },
            {
              "id": 32,
              "type": "stat",
              "title": "Sonar Projects (Selected)",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 6,
                "w": 4,
                "x": 4,
                "y": 111
              },
              "targets": [
                {
                  "expr": "(count(max by (project_key) (sonarqube_project_quality_gate_pass{project_key=~\"${suite:regex}\"})) or on() vector(0))",
                  "refId": "A",
                  "instant": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "mappings": [],
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-blue",
                        "value": null
                      },
                      {
                        "color": "dark-green",
                        "value": 0.01
                      },
                      {
                        "color": "dark-yellow",
                        "value": 1
                      },
                      {
                        "color": "dark-orange",
                        "value": 3
                      },
                      {
                        "color": "dark-red",
                        "value": 5
                      }
                    ]
                  },
                  "unit": "none",
                  "custom": {
                    "displayMode": "auto"
                  }
                },
                "overrides": []
              },
              "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "center",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                },
                "textMode": "value"
              },
              "description": "Selected SonarQube project count; zero means Sonar is not tracking that suite."
            },
            {
              "id": 33,
              "type": "stat",
              "title": "Sonar Gate Fetch Errors",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 6,
                "w": 4,
                "x": 8,
                "y": 111
              },
              "targets": [
                {
                  "expr": "(max(sonarqube_quality_gate_fetch_errors_total) or on() vector(0))",
                  "refId": "A",
                  "instant": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "mappings": [],
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-blue",
                        "value": null
                      },
                      {
                        "color": "dark-green",
                        "value": 0.01
                      },
                      {
                        "color": "dark-yellow",
                        "value": 1
                      },
                      {
                        "color": "dark-orange",
                        "value": 3
                      },
                      {
                        "color": "dark-red",
                        "value": 5
                      }
                    ]
                  },
                  "unit": "none",
                  "custom": {
                    "displayMode": "auto"
                  }
                },
                "overrides": []
              },
              "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "center",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                },
                "textMode": "value"
              },
              "description": "Sonar exporter fetch errors; zero is good because stale Sonar data misleads."
            },
            {
              "id": 34,
              "type": "piechart",
              "title": "Sonar Gate Status Mix (Selected)",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 6,
                "w": 4,
                "x": 12,
                "y": 111
              },
              "targets": [
                {
                  "expr": "count by (status) (max by (project_key, status) (sonarqube_project_quality_gate_pass{project_key=~\"${suite:regex}\"}))",
                  "refId": "A",
                  "legendFormat": "{{status}}"
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "unit": "percent",
                  "color": {
                    "mode": "palette-classic"
                  }
                },
                "overrides": []
              },
              "options": {
                "legend": {
                  "displayMode": "list",
                  "placement": "right"
                },
                "pieType": "pie",
                "displayLabels": [],
                "tooltip": {
                  "mode": "single"
                },
                "colorScheme": "interpolateSpectral",
                "colorBy": "value",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                }
              },
              "description": "Mix of Sonar gate states; OK is good and non-OK needs cleanup."
            },
            {
              "id": 35,
              "type": "state-timeline",
              "title": "Sonar Gate Health by Project",
              "description": "SonarQube gate status over time by project. OK projects render as full healthy lanes; non-OK projects drop to red without disappearing.",
              "datasource": {
                "type": "prometheus",
                "uid": "atlas-vm"
              },
              "gridPos": {
                "h": 6,
                "w": 8,
                "x": 16,
                "y": 111
              },
              "targets": [
                {
                  "expr": "platform_quality:sonar_gate_health_percent:latest_1h{project_key=~\"${suite:regex}\"}",
                  "refId": "A",
                  "legendFormat": "{{project_key}}",
                  "format": "time_series",
                  "instant": false,
                  "range": true
                }
              ],
              "fieldConfig": {
                "defaults": {
                  "color": {
                    "mode": "thresholds"
                  },
                  "unit": "percent",
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "color": "dark-red",
                        "value": null
                      },
                      {
                        "color": "dark-orange",
                        "value": 90
                      },
                      {
                        "color": "dark-yellow",
                        "value": 93
                      },
                      {
                        "color": "dark-green",
                        "value": 95
                      },
                      {
                        "color": "dark-blue",
                        "value": 100
                      }
                    ]
                  },
                  "custom": {
                    "fillOpacity": 70,
                    "lineWidth": 0,
                    "spanNulls": true
                  },
                  "min": 0,
                  "max": 100
                },
                "overrides": []
              },
              "options": {
                "mergeValues": true,
                "showValue": "never",
                "legend": {
                  "displayMode": "list",
                  "placement": "bottom"
                },
                "tooltip": {
                  "mode": "single",
                  "sort": "none"
                }
              },
              "timeFrom": "7d"
            }
          ],
          "description": "SonarQube availability, projects, fetch errors, and gate status."
        }
      ],
      "time": {
        "from": "now-24h",
        "to": "now"
      },
      "annotations": {
        "list": []
      },
      "schemaVersion": 39,
      "style": "dark",
      "tags": [
        "atlas",
        "testing",
        "quality-gate",
        "ci"
      ],
      "templating": {
        "list": [
          {
            "name": "suite",
            "label": "Suite",
            "type": "custom",
            "query": "ariadne : ariadne,metis : metis,ananke : ananke,atlasbot : atlasbot,pegasus : pegasus,soteria : soteria,titan_iac : titan_iac,bstein_home : bstein_home,data_prepper : data_prepper,lesavka : lesavka",
            "current": {
              "text": "All",
              "value": "$__all",
              "selected": true
            },
            "options": [
              {
                "text": "ariadne",
                "value": "ariadne",
                "selected": false
              },
              {
                "text": "metis",
                "value": "metis",
                "selected": false
              },
              {
                "text": "ananke",
                "value": "ananke",
                "selected": false
              },
              {
                "text": "atlasbot",
                "value": "atlasbot",
                "selected": false
              },
              {
                "text": "pegasus",
                "value": "pegasus",
                "selected": false
              },
              {
                "text": "soteria",
                "value": "soteria",
                "selected": false
              },
              {
                "text": "titan_iac",
                "value": "titan_iac",
                "selected": false
              },
              {
                "text": "bstein_home",
                "value": "bstein_home",
                "selected": false
              },
              {
                "text": "data_prepper",
                "value": "data_prepper",
                "selected": false
              },
              {
                "text": "lesavka",
                "value": "lesavka",
                "selected": false
              }
            ],
            "hide": 0,
            "multi": false,
            "includeAll": true,
            "allValue": "ariadne|metis|ananke|atlasbot|pegasus|soteria|titan_iac|bstein_home|data_prepper|lesavka",
            "refresh": 1,
            "sort": 1,
            "skipUrlSync": false
          },
          {
            "name": "branch",
            "label": "Branch",
            "type": "custom",
            "query": "main : main,master : master,origin/main : origin/main,origin/master : origin/master,unknown : unknown",
            "current": {
              "text": "All",
              "value": "$__all",
              "selected": true
            },
            "options": [
              {
                "text": "main",
                "value": "main",
                "selected": false
              },
              {
                "text": "master",
                "value": "master",
                "selected": false
              },
              {
                "text": "origin/main",
                "value": "origin/main",
                "selected": false
              },
              {
                "text": "origin/master",
                "value": "origin/master",
                "selected": false
              },
              {
                "text": "unknown",
                "value": "unknown",
                "selected": false
              }
            ],
            "hide": 0,
            "multi": false,
            "includeAll": true,
            "allValue": ".*",
            "refresh": 0,
            "sort": 0,
            "skipUrlSync": false
          },
          {
            "name": "test",
            "label": "Test Case",
            "type": "query",
            "query": "query_result(topk(75, count by (test) (max_over_time(platform_quality:test_case_health_rate:percent_1h{suite=~\"${suite:regex}\",branch!=\"\",branch=~\"${branch:regex}\",test!=\"\",test!=\"__no_test_cases__\",category!~\"fixtures|golden|helpers\"}[24h:1h]))))",
            "regex": "/test=\"([^\"]+)\"/",
            "current": {
              "text": "All",
              "value": "$__all",
              "selected": true
            },
            "options": [],
            "hide": 0,
            "multi": false,
            "includeAll": true,
            "allValue": ".*",
            "refresh": 2,
            "sort": 1,
            "skipUrlSync": false
          },
          {
            "name": "jenkins_base",
            "label": "Jenkins Base URL",
            "type": "textbox",
            "query": "https://ci.bstein.dev",
            "current": {
              "text": "https://ci.bstein.dev",
              "value": "https://ci.bstein.dev",
              "selected": true
            },
            "hide": 0,
            "skipUrlSync": false
          }
        ]
      }
    }
