Repository navigation
Description
Part of #7
Story
As a operator, I want to see service health and unavailable dependencies.
Business value
The plan (#6) sets this release exit for phase 1: "documented service with durable data and identity; every live read on two automatically imported clusters; baseline telemetry."
Context
The comment of 2026-11-06 on this issue says: "Partly delivered by #40, not proven. On main: metrics and telemetry code (core/observability.py, core/kpi.py) and the review fixes in #54." It also says that most KPIs and the Perses dashboards are not built. Prometheus scraping is not proven on a cluster.
Acceptance criteria
- Core metrics/logs, per-component ServiceMonitors, alerts and first four Perses dashboards are deployable, shown by
cmapi/tests/service/test_plain_manifests.py::test_crc_monitoring_selects_the_services_and_the_policy_lets_it_infor the monitors, and a new test incmapi/tests/service/for the dashboards, not written yet - Admin KPI authorization is enforced; unavailable measurements display unavailable instead of zero; system-resource and dependency failure signals are demonstrated, shown by
cmapi/tests/service/test_review_f_obs.py::test_healthz_says_degraded_when_the_database_is_downfor a dependency failure, and a new test incmapi/tests/service/for the KPI authorization, not written yet
Tasks
- Build the remaining KPIs and the four Perses dashboards (Wave 8).
- Prove Prometheus scraping on CRC (Wave 1: deploy cmapi on CRC with oc apply, image in the internal registry by digest #94, proof 7).
- Run the load test (Load test: prove the KPI components work and the design's budgets hold at 5,000 namespaces #92).
Out of scope
- The source states none for this story.
Evidence
- PR cmapi service, image and charts: the foundation for the first deploy on CRC #40, merged at
1f30ab1on 2026-11-05.build-tracker.mdlinks it to this story ("Stories and epics").
Definition of done
- Mockup approved, or the work has no screen and no API shape
- Draft pull request open
- Build: tests fail before the change and pass after it
- Documented where a reader looks for it
- Review ruled
- Merged with its proof
- Released on the default branch
- The owner approves, after a comment cites the proof for each criterion and its cluster
Class
INV. The story adds a new capability to the product.
Source
Status: Draft backlog. No sprint commitment.
Owner in Paperclip: Ahsoka. Ahsoka mentors Luke and assigns bounded engineering work after technical review.
Source: OBI-25.
Epic: #7. Plan, release windows, and review gates: #6.
Planned story; phase 1, provisional 5 points (Ahsoka/Yoda to validate).
- Attach automated or reproducible evidence for each criterion; cover denial/failure paths.
- Read the plan; Yoda owns design choices. Keep this in backlog until prerequisite phase evidence is accepted. Ahsoka may split and delegate to Luke with mentorship.
Language acceptance criterion
Before sprint entry, the owner must define technical terms and attach language review evidence for this text revision.
Use simple-english 2.1.1, Strict mode. Index #6 records the vocabulary source and review limits.
The source criteria remain unchanged. Language review remains open.
Activity
ephico2real2 commentedon Nov 6, 2026
Partly delivered by #40, not proven. On
main: metrics and telemetry code (core/observability.py,core/kpi.py) and the review fixes in #54. The ServiceMonitor exists only in the Helm chart that PR #89's plain YAML begins to replace. Not built: most KPIs, Perses dashboards. Prometheus scraping is not proven on any cluster. This story stays open until each acceptance criterion has evidence.ephico2real2 commentedon Nov 13, 2026
Work tag: In-Progress. A part of this story is merged: PR #40, merge commit
1f30ab1, on 2026-11-05 (build-tracker.md, "Stories and epics"). The story is not complete, and no cluster proves it. Read fromghandgitat 2026-11-13T09:18Z.ephico2real2 commentedon Nov 13, 2026
Proof so far for this story, from the KPI review of 2026-11-13 (pull request #177). Nothing is measured on a cluster, so the story stays open and the owner decides its close.
cmapi/tests/service/test_kpis.py, 5 tests: 401 with no token and 403 withoutreports:read; each KPI value is null with no request, never 0; each cgroup figure is null without the kernel's files and a number with them. macOS, PostgreSQL 16, no cluster.docs/17-kpis.md, 21 KPIs (6 live in the API, 3 built, 12 designed), with the owner's removal of Rebuild recovery.Records: the KPI review (PR #177, docs/17), six issues under #16, and…