fix(examples): replace duplicate success gauge with CI pass rate
Row 1 stat and row 2 gauge both showed pilot_success_rate. The gauge now tracks PR delivery instead: merged / (merged + failed), the closest proxy Pilot exports (no CI-specific pass/fail counter; failed also counts approval rejections and merge escalations). Also drop the stale 'reads 0' caveat on the prs-merged card — upstream PR instrumentation is live since GH-4093 (54 merged on the live board).
This commit is contained in:
1 parent
d2e6698cb9
commit
5b50bd236f
1 file changed
+9
-6
+9
-6
@@ -46,14 +46,13 @@ widgets:
|
||||
sparkline: true
|
||||
grid: { x: 18, y: 0, w: 6, h: 4 }
|
||||
queries:
|
||||
# Lifetime total since pilot#4029 (counters hydrate from the store on boot).
|
||||
# Currently reads 0: Pilot's PR-metric instrumentation never increments
|
||||
# (reported on the same issue) — the card is correct once that's fixed.
|
||||
# Lifetime total since pilot#4029 (counters hydrate from the store on boot;
|
||||
# PR instrumentation fixed upstream via GH-4093).
|
||||
- expr: sum(pilot_prs_merged_total)
|
||||
|
||||
# Row 2 — success gauge + token breakdown bars.
|
||||
# Row 2 — CI pass gauge + token breakdown bars.
|
||||
- type: gauge
|
||||
title: success rate
|
||||
title: ci pass rate
|
||||
unit: percentunit
|
||||
min: 0
|
||||
max: 1
|
||||
@@ -65,7 +64,11 @@ widgets:
|
||||
- value: 0.95
|
||||
color: green
|
||||
queries:
|
||||
- expr: pilot_success_rate
|
||||
# Pilot exports no CI-specific pass/fail counter; PR outcomes are the closest
|
||||
# proxy (pilot_prs_failed_total also counts approval rejections / merge
|
||||
# escalations, not only CI failures).
|
||||
# `> 0` guards the zero-denominator case: renders "no data", not +Inf.
|
||||
- expr: sum(pilot_prs_merged_total) / ((sum(pilot_prs_merged_total) + sum(pilot_prs_failed_total)) > 0)
|
||||
|
||||
- type: bargauge
|
||||
title: tokens by direction
|
||||
|
||||
Reference in new issue
Block a user