@intentius/behold 0.29.19 → 0.29.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +15 -0
- package/dist/cli.js +615 -417
- package/package.json +1 -1
- package/web/kiosk-metrics.js +281 -0
- package/web/kiosk-metrics.test.js +94 -0
- package/web/kiosk.html +3 -0
package/AGENTS.md
CHANGED
|
@@ -59,6 +59,21 @@ a scheduled read: it holds a slot in the read budget, has the read deadline,
|
|
|
59
59
|
and stops when the request does. `serve --hud <url>` (or `BEHOLD_HUD_URL`)
|
|
60
60
|
links a proposed decision to its review in hud.
|
|
61
61
|
|
|
62
|
+
## A pipeline's numbers, from Prometheus (behold#571)
|
|
63
|
+
|
|
64
|
+
`behold serve --prometheus <url>` (or `BEHOLD_PROMETHEUS_URL`) adds `GET
|
|
65
|
+
/api/metrics?project=<owner>/<name>[&commit=<sha>]` (src/prometheus-metrics.ts).
|
|
66
|
+
behold asks a FIXED set of named queries over terragucci's gauges (each a
|
|
67
|
+
constant string, nothing from the request in it), shares one read for 30 s,
|
|
68
|
+
and picks the repo's series out of the answers: one commit's tf-apply waves
|
|
69
|
+
(each root's plan and apply seconds, the time an approval held the wave at
|
|
70
|
+
its gate, the changes it applied, when it started waiting) and the DORA four,
|
|
71
|
+
from terragucci estate's gauges or its `dora.json` beside the reports. It
|
|
72
|
+
answers numbers, never a proxy, and a public serve keeps it (GET). Without
|
|
73
|
+
an address it answers 404. The kiosk's "Pipeline metrics" pane
|
|
74
|
+
(web/kiosk-metrics.js) shows only what it returns, and no pane when it
|
|
75
|
+
returns nothing for the repo.
|
|
76
|
+
|
|
62
77
|
## A terragucci estate, from its reports (#490)
|
|
63
78
|
|
|
64
79
|
`behold serve <repo> --terragucci <dir|s3://bucket/prefix|https://…>`
|