"expr":"(sum(increase(platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",status!~\"ok|passed|success\"}[24h])) or on() vector(0))",
"expr":"(avg(((max by (suite) ({__name__=~\".*_quality_gate_coverage_percent\",suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"})) or on(suite) (max by (suite) (platform_quality_gate_workspace_line_coverage_percent{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"})))) or on() vector(0))",
"expr":"(sum(((max by (suite) (platform_quality_gate_source_lines_over_500_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"})) > bool 0)) or on() vector(0))",
"expr":"(sum(count by (suite) ({__name__=~\".*_quality_gate_checks_total\",suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",check=~\"tests|unit|build\",result!~\"ok|passed|success\"})) or on() vector(0))",
"expr":"(sum(count by (suite) ({__name__=~\".*_quality_gate_checks_total\",suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",check=~\"coverage\",result!~\"ok|passed|success\"})) or on() vector(0))",
"expr":"(sum(count by (suite) ({__name__=~\".*_quality_gate_checks_total\",suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",check=~\"loc|smell\",result!~\"ok|passed|success\"})) or on() vector(0))",
"expr":"(sum(count by (suite) ({__name__=~\".*_quality_gate_checks_total\",suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",check=~\"docs|naming|hygiene|lint|docs_naming\",result!~\"ok|passed|success\"})) or on() vector(0))",
"refId":"A",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"color":{
"mode":"thresholds"
},
"mappings":[],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"yellow",
"value":1
},
{
"color":"orange",
"value":3
},
{
"color":"red",
"value":5
}
]
},
"unit":"none",
"custom":{
"displayMode":"auto"
}
},
"overrides":[]
},
"options":{
"colorMode":"value",
"graphMode":"area",
"justifyMode":"center",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
},
"textMode":"value"
}
},
{
"id":23,
"type":"stat",
"title":"Failing Gate/Glue",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":4,
"w":3,
"x":12,
"y":5
},
"targets":[
{
"expr":"(sum(count by (suite) ({__name__=~\".*_quality_gate_checks_total\",suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",check=~\"gate|glue|gate_glue\",result!~\"ok|passed|success\"})) or on() vector(0))",
"refId":"A",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"color":{
"mode":"thresholds"
},
"mappings":[],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"yellow",
"value":1
},
{
"color":"orange",
"value":3
},
{
"color":"red",
"value":5
}
]
},
"unit":"none",
"custom":{
"displayMode":"auto"
}
},
"overrides":[]
},
"options":{
"colorMode":"value",
"graphMode":"area",
"justifyMode":"center",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
},
"textMode":"value"
}
},
{
"id":24,
"type":"stat",
"title":"Failing SonarQube",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":4,
"w":3,
"x":15,
"y":5
},
"targets":[
{
"expr":"(sum(count by (suite) ({__name__=~\".*_quality_gate_checks_total\",suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",check=~\"sonarqube|sonar\",result!~\"ok|passed|success\"})) or on() vector(0))",
"refId":"A",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"color":{
"mode":"thresholds"
},
"mappings":[],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"yellow",
"value":1
},
{
"color":"orange",
"value":3
},
{
"color":"red",
"value":5
}
]
},
"unit":"none",
"custom":{
"displayMode":"auto"
}
},
"overrides":[]
},
"options":{
"colorMode":"value",
"graphMode":"area",
"justifyMode":"center",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
},
"textMode":"value"
}
},
{
"id":25,
"type":"stat",
"title":"Failing Supply Chain",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":4,
"w":3,
"x":18,
"y":5
},
"targets":[
{
"expr":"(sum(count by (suite) ({__name__=~\".*_quality_gate_checks_total\",suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",check=~\"ironbank|supply_chain|image_compliance|artifact_security\",result!~\"ok|passed|success\"})) or on() vector(0))",
"refId":"A",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"color":{
"mode":"thresholds"
},
"mappings":[],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"yellow",
"value":1
},
{
"color":"orange",
"value":3
},
{
"color":"red",
"value":5
}
]
},
"unit":"none",
"custom":{
"displayMode":"auto"
}
},
"overrides":[]
},
"options":{
"colorMode":"value",
"graphMode":"area",
"justifyMode":"center",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
},
"textMode":"value"
}
},
{
"id":26,
"type":"stat",
"title":"Total Failing Checks",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":4,
"w":3,
"x":21,
"y":5
},
"targets":[
{
"expr":"(sum({__name__=~\".*_quality_gate_checks_total\",suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",result!~\"ok|passed|success\"}) or on() vector(0))",
"refId":"A",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"color":{
"mode":"thresholds"
},
"mappings":[],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"yellow",
"value":1
},
{
"color":"orange",
"value":3
},
{
"color":"red",
"value":5
}
]
},
"unit":"none",
"custom":{
"displayMode":"auto"
}
},
"overrides":[]
},
"options":{
"colorMode":"value",
"graphMode":"area",
"justifyMode":"center",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
},
"textMode":"value"
}
},
{
"id":8,
"type":"bargauge",
"title":"Failures by Suite (24h)",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":8,
"x":0,
"y":9
},
"targets":[
{
"expr":"sort_desc(sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",status!~\"ok|passed|success\"}[24h])))",
"refId":"A",
"legendFormat":"{{suite}}",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"unit":"none",
"min":0,
"max":null,
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"yellow",
"value":1
},
{
"color":"orange",
"value":3
},
{
"color":"red",
"value":5
}
]
}
},
"overrides":[]
},
"options":{
"displayMode":"gradient",
"orientation":"horizontal",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
}
},
"transformations":[
{
"id":"sortBy",
"options":{
"fields":[
"Value"
],
"order":"desc"
}
}
]
},
{
"id":9,
"type":"bargauge",
"title":"Success Rate by Suite (24h)",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":8,
"x":8,
"y":9
},
"targets":[
{
"expr":"sort_desc(100 * (sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",status=~\"ok|passed|success\"}[24h]))) / clamp_min((sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"}[24h]))), 1))",
"refId":"A",
"legendFormat":"{{suite}}",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"unit":"percent",
"min":0,
"max":100,
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"red",
"value":null
},
{
"color":"orange",
"value":80
},
{
"color":"yellow",
"value":95
},
{
"color":"green",
"value":99
}
]
},
"decimals":2
},
"overrides":[]
},
"options":{
"displayMode":"gradient",
"orientation":"horizontal",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
}
},
"transformations":[
{
"id":"sortBy",
"options":{
"fields":[
"Value"
],
"order":"asc"
}
}
]
},
{
"id":10,
"type":"bargauge",
"title":"Coverage Gap to 95% by Suite",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":8,
"x":16,
"y":9
},
"targets":[
{
"expr":"sort_desc(clamp_min(95 - ((max by (suite) ({__name__=~\".*_quality_gate_coverage_percent\",suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"})) or on(suite) (max by (suite) (platform_quality_gate_workspace_line_coverage_percent{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"}))), 0))",
"refId":"A",
"legendFormat":"{{suite}}",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"unit":"percent",
"min":0,
"max":100,
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"yellow",
"value":1
},
{
"color":"orange",
"value":5
},
{
"color":"red",
"value":10
}
]
},
"decimals":2
},
"overrides":[]
},
"options":{
"displayMode":"gradient",
"orientation":"horizontal",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
}
},
"transformations":[
{
"id":"sortBy",
"options":{
"fields":[
"Value"
],
"order":"desc"
}
}
],
"description":"Gap from the 95% target. 0 means the suite is at or above target."
},
{
"id":11,
"type":"timeseries",
"title":"Success History by Suite",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":24,
"x":0,
"y":17
},
"targets":[
{
"expr":"(100 * (sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",status=~\"ok|passed|success\"}[$__interval])) / clamp_min((sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"}[$__interval]))), 1))) or on(suite) (0 * sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"}[$__range])))",
"refId":"A",
"legendFormat":"{{suite}}"
}
],
"fieldConfig":{
"defaults":{
"unit":"percent",
"min":0,
"max":100,
"custom":{
"drawStyle":"line",
"lineInterpolation":"linear",
"lineWidth":2,
"fillOpacity":8,
"showPoints":"always",
"pointSize":3,
"spanNulls":true
}
},
"overrides":[]
},
"options":{
"legend":{
"displayMode":"list",
"placement":"bottom"
},
"tooltip":{
"mode":"multi"
}
}
},
{
"id":12,
"type":"timeseries",
"title":"Run Outcomes (Selected Scope)",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":8,
"x":0,
"y":25
},
"targets":[
{
"refId":"A",
"expr":"sum(increase(platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",status=~\"ok|passed|success\"}[$__interval])) or on() vector(0)",
"legendFormat":"Success"
},
{
"refId":"B",
"expr":"sum(increase(platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\",status!~\"ok|passed|success\"}[$__interval])) or on() vector(0)",
"legendFormat":"Failure"
},
{
"refId":"C",
"expr":"sum(increase(platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"}[$__interval])) or on() vector(0)",
"legendFormat":"Total"
}
],
"fieldConfig":{
"defaults":{
"unit":"none"
},
"overrides":[]
},
"options":{
"legend":{
"displayMode":"list",
"placement":"bottom",
"calcs":[
"lastNotNull",
"sum"
]
},
"tooltip":{
"mode":"multi"
}
}
},
{
"id":13,
"type":"timeseries",
"title":"Coverage & LOC History (Selected Scope)",
"expr":"sort_desc(sum by (suite, result) ({__name__=~\".*_quality_gate_tests_total\",suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"}))",
"refId":"A",
"legendFormat":"{{suite}} \u00b7 {{result}}",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"unit":"none",
"min":0,
"max":null,
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"yellow",
"value":50
},
{
"color":"orange",
"value":70
},
{
"color":"red",
"value":85
}
]
}
},
"overrides":[]
},
"options":{
"displayMode":"gradient",
"orientation":"horizontal",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
}
},
"transformations":[
{
"id":"sortBy",
"options":{
"fields":[
"Value"
],
"order":"desc"
}
},
{
"id":"limit",
"options":{
"limit":24
}
}
]
},
{
"id":17,
"type":"bargauge",
"title":"Coverage by Suite (Latest, gate 95)",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":12,
"x":0,
"y":45
},
"targets":[
{
"expr":"sort(((max by (suite) ({__name__=~\".*_quality_gate_coverage_percent\",suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"})) or on(suite) (max by (suite) (platform_quality_gate_workspace_line_coverage_percent{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"}))) or on(suite) (0 * (sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"}[30d]))) - 1))",
"refId":"A",
"legendFormat":"{{suite}}",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"unit":"percent",
"min":0,
"max":100,
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"red",
"value":null
},
{
"color":"orange",
"value":80
},
{
"color":"yellow",
"value":95
},
{
"color":"green",
"value":99
}
]
},
"decimals":2,
"mappings":[
{
"type":"value",
"options":{
"-1":{
"text":"missing"
}
}
}
]
},
"overrides":[]
},
"options":{
"displayMode":"gradient",
"orientation":"horizontal",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
}
},
"transformations":[
{
"id":"sortBy",
"options":{
"fields":[
"Value"
],
"order":"asc"
}
}
]
},
{
"id":18,
"type":"bargauge",
"title":"Files >500 LOC by Suite (Latest)",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":12,
"x":12,
"y":45
},
"targets":[
{
"expr":"sort_desc((max by (suite) (platform_quality_gate_source_lines_over_500_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"})) or on(suite) (0 * (sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"${suite:regex}\",exported_job=\"platform-quality-ci\"}[30d]))) - 1))",
"refId":"A",
"legendFormat":"{{suite}}",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"unit":"none",
"min":0,
"max":null,
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"red",
"value":null
},
{
"color":"green",
"value":0
},
{
"color":"yellow",
"value":1
},
{
"color":"orange",
"value":3
},
{
"color":"red",
"value":5
}
]
},
"mappings":[
{
"type":"value",
"options":{
"-1":{
"text":"missing"
}
}
}
]
},
"overrides":[]
},
"options":{
"displayMode":"gradient",
"orientation":"horizontal",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
}
},
"transformations":[
{
"id":"sortBy",
"options":{
"fields":[
"Value"
],
"order":"desc"
}
}
]
},
{
"id":27,
"type":"bargauge",
"title":"Missing Tests Metrics by Suite",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":7,
"w":6,
"x":0,
"y":53
},
"targets":[
{
"expr":"sort_desc(((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__\", \".*\")) unless on(suite) count by (suite) ({__name__=~\".*_quality_gate_tests_total\",exported_job=\"platform-quality-ci\"})))",
"refId":"A",
"legendFormat":"{{suite}}",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"unit":"none",
"min":0,
"max":null,
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"red",
"value":1
}
]
},
"decimals":0
},
"overrides":[]
},
"options":{
"displayMode":"gradient",
"orientation":"horizontal",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
}
},
"transformations":[
{
"id":"sortBy",
"options":{
"fields":[
"Value"
],
"order":"desc"
}
}
]
},
{
"id":28,
"type":"bargauge",
"title":"Missing Checks Metrics by Suite",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":7,
"w":6,
"x":6,
"y":53
},
"targets":[
{
"expr":"sort_desc(((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__\", \".*\")) unless on(suite) count by (suite) ({__name__=~\".*_quality_gate_checks_total\",exported_job=\"platform-quality-ci\"})))",
"refId":"A",
"legendFormat":"{{suite}}",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"unit":"none",
"min":0,
"max":null,
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"red",
"value":1
}
]
},
"decimals":0
},
"overrides":[]
},
"options":{
"displayMode":"gradient",
"orientation":"horizontal",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
}
},
"transformations":[
{
"id":"sortBy",
"options":{
"fields":[
"Value"
],
"order":"desc"
}
}
]
},
{
"id":29,
"type":"bargauge",
"title":"Missing Coverage Metrics by Suite",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":7,
"w":6,
"x":12,
"y":53
},
"targets":[
{
"expr":"sort_desc(((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__\", \".*\")) unless on(suite) count by (suite) (platform_quality_gate_workspace_line_coverage_percent{exported_job=\"platform-quality-ci\"})))",