"expr":"100 * ((sum(increase(platform_quality_gate_runs_total{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan-iac|bstein-home|arcanagon|data-prepper\",status=~\"ok|passed|success\"}[30d])) or on() vector(0))) / clamp_min(((sum(increase(platform_quality_gate_runs_total{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan-iac|bstein-home|arcanagon|data-prepper\"}[30d])) or on() vector(0))), 1)",
"refId":"A",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"color":{
"mode":"thresholds"
},
"mappings":[],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"red",
"value":null
},
{
"color":"orange",
"value":80
},
{
"color":"yellow",
"value":95
},
{
"color":"green",
"value":99
}
]
},
"unit":"percent",
"custom":{
"displayMode":"auto"
},
"decimals":2
},
"overrides":[]
},
"options":{
"colorMode":"value",
"graphMode":"area",
"justifyMode":"center",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
},
"textMode":"value"
},
"description":"Overall success rate across tracked suites over the last 30 days."
},
{
"id":2,
"type":"stat",
"title":"Platform Test Failures (24h)",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":4,
"w":6,
"x":6,
"y":0
},
"targets":[
{
"expr":"(sum(increase(platform_quality_gate_runs_total{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan-iac|bstein-home|arcanagon|data-prepper\",status!~\"ok|passed|success\"}[24h])) 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"
},
"description":"Total failed runs in the last 24 hours."
},
{
"id":3,
"type":"table",
"title":"Platform Test Activity (30d)",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":12,
"x":12,
"y":0
},
"targets":[
{
"expr":"sum by (suite, status) (increase(platform_quality_gate_runs_total{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan-iac|bstein-home|arcanagon|data-prepper\"}[30d]))",
"refId":"A",
"instant":true
}
],
"fieldConfig":{
"defaults":{
"unit":"none",
"custom":{
"filterable":true
}
},
"overrides":[]
},
"options":{
"showHeader":true,
"columnFilters":false
},
"transformations":[
{
"id":"labelsToFields",
"options":{}
},
{
"id":"sortBy",
"options":{
"fields":[
"Value"
],
"order":"desc"
}
}
],
"description":"Suite/status event counts over 30 days."
},
{
"id":4,
"type":"bargauge",
"title":"Platform Test Failures by Suite (24h)",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":12,
"x":0,
"y":8
},
"targets":[
{
"expr":"sort_desc(sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan-iac|bstein-home|arcanagon|data-prepper\",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":5,
"type":"bargauge",
"title":"Platform Test Success Rate by Suite (24h, lowest first)",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":12,
"x":12,
"y":8
},
"targets":[
{
"expr":"sort_desc((100 * (sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan-iac|bstein-home|arcanagon|data-prepper\",status=~\"ok|passed|success\"}[24h]))) / clamp_min((sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan-iac|bstein-home|arcanagon|data-prepper\"}[24h]))), 1)) and on(suite) ((sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan-iac|bstein-home|arcanagon|data-prepper\"}[24h]))) > 0))",
"title":"Quality Gate Coverage by Suite (%, gate 95)",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":12,
"x":0,
"y":24
},
"targets":[
{
"expr":"sort(((max by (suite) ({__name__=~\".*_quality_gate_coverage_percent\"})) or on(suite) (max by (suite) (platform_quality_gate_workspace_line_coverage_percent))) or on(suite) (0 * (sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan-iac|bstein-home|arcanagon|data-prepper\"}[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"
}
}
],
"description":"Latest reported per-suite line coverage. The quality gate target is 95%. A value of -1 means that suite has runs but no coverage metric published yet."
},
{
"id":8,
"type":"bargauge",
"title":"Coverage Gap to 95% by Suite",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":12,
"x":12,
"y":24
},
"targets":[
{
"expr":"sort_desc(clamp_min(95 - ((max by (suite) ({__name__=~\".*_quality_gate_coverage_percent\"})) or on(suite) (max by (suite) (platform_quality_gate_workspace_line_coverage_percent))), 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":"How far each suite is below the 95% target (0 means at or above target)."
},
{
"id":9,
"type":"bargauge",
"title":"Code Smell Infractions by Suite (files >500 LOC)",
"datasource":{
"type":"prometheus",
"uid":"atlas-vm"
},
"gridPos":{
"h":8,
"w":24,
"x":0,
"y":32
},
"targets":[
{
"expr":"sort_desc((max by (suite) (platform_quality_gate_source_lines_over_500_total)) or on(suite) (0 * (sum by (suite) (increase(platform_quality_gate_runs_total{suite=~\"ariadne|metis|ananke|atlasbot|lesavka|pegasus|soteria|titan-iac|bstein-home|arcanagon|data-prepper\"}[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"
}
}
],
"description":"Per-suite count of files violating the 500-line hygiene/code-smell threshold. A value of -1 means that suite has runs but no smell-infraction metric published yet."