From 89368d85da0eff85a6d55c396f40e26697dec18e Mon Sep 17 00:00:00 2001 From: Aleks Petrov Date: Sat, 11 Jul 2026 15:23:27 +0200 Subject: [PATCH] =?UTF-8?q?feat(examples):=20'this=20run=20/=20right=20now?= =?UTF-8?q?'=20row=20=E2=80=94=20process=20view=20under=20the=20business?= =?UTF-8?q?=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit execs-this-run (session-scoped by nature; sparkline sawtooth marks daemon restarts), queue depth, active PRs, api error rate. Answers 'what is the daemon doing' without re-polluting the lifetime rows. --- examples/pilot.yaml | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/examples/pilot.yaml b/examples/pilot.yaml index 041c513..e9365b1 100644 --- a/examples/pilot.yaml +++ b/examples/pilot.yaml @@ -127,3 +127,56 @@ widgets: legend: to merge - expr: sum(increase(pilot_execution_duration_seconds_sum[1h])) / (sum(increase(pilot_execution_duration_seconds_count[1h])) > 0) legend: exec + + # Row 5 — this run / right now: the process-scoped view. Rows 1-4 are the + # business (lifetime + recent windows); this row is the daemon. + - type: stat + title: execs (this run) + unit: short + decimals: 0 + sparkline: true + grid: { x: 0, y: 26, w: 6, h: 4 } + queries: + # Deliberately session-scoped: this histogram count is the one counter + # NOT store-hydrated, so it resets on every daemon restart — the + # sparkline sawtooth marks each restart. If pilot#4134 ships hydration + # for it, this card silently becomes lifetime and needs a new source. + - expr: sum(pilot_execution_duration_seconds_count) + + - type: stat + title: queue + unit: short + decimals: 0 + sparkline: true + grid: { x: 6, y: 26, w: 6, h: 4 } + thresholds: + - color: green + - value: 5 + color: yellow + - value: 20 + color: red + queries: + - expr: pilot_queue_depth + + - type: stat + title: active prs + unit: short + decimals: 0 + sparkline: true + grid: { x: 12, y: 26, w: 6, h: 4 } + queries: + - expr: sum(pilot_active_prs) + + - type: stat + title: api errors + unit: percentunit + sparkline: true + grid: { x: 18, y: 26, w: 6, h: 4 } + thresholds: + - color: green + - value: 0.05 + color: yellow + - value: 0.2 + color: red + queries: + - expr: pilot_api_error_rate