Serve PuppetDB meta and metrics endpoints, sum node and resource counts #11

Merged
benvin merged 1 commits from benvin/meta-metrics-and-counts into main 2026-09-05 20:56:06 +10:00
Member

Why

Puppetboard 7.0.1 cannot run against pdbmux: it exits at import when /pdb/meta/v1/version 404s, and its landing page, metrics and radiator views 404 on the Jolokia surface.

How

  • Serve /pdb/meta/v1/version, reporting the lowest version any backend runs, and /pdb/meta/v1/server-time from the first reachable backend.
  • Merge the Jolokia surface (/metrics/v2/read, /metrics/v2/list, /metrics/v1/mbeans): objects union, numeric attributes sum by default, and Min/Max/Uptime/StartTime plus the distribution stats take a bound or a mean.
  • Route /nodes extract-count queries to the summing path ahead of the certname merge, and give /resources aggregates the same path.
  • Document the endpoints and merge semantics in the README.
  • Cover version disagreement, metric rules, escaped MBean names, count summing and the non-aggregate /nodes merge with httptest backends.
## Why Puppetboard 7.0.1 cannot run against pdbmux: it exits at import when `/pdb/meta/v1/version` 404s, and its landing page, metrics and radiator views 404 on the Jolokia surface. ## How - Serve `/pdb/meta/v1/version`, reporting the lowest version any backend runs, and `/pdb/meta/v1/server-time` from the first reachable backend. - Merge the Jolokia surface (`/metrics/v2/read`, `/metrics/v2/list`, `/metrics/v1/mbeans`): objects union, numeric attributes sum by default, and `Min`/`Max`/`Uptime`/`StartTime` plus the distribution stats take a bound or a mean. - Route `/nodes` extract-count queries to the summing path ahead of the certname merge, and give `/resources` aggregates the same path. - Document the endpoints and merge semantics in the README. - Cover version disagreement, metric rules, escaped MBean names, count summing and the non-aggregate `/nodes` merge with httptest backends.
unkin-agent added 1 commit 2026-09-05 20:41:51 +10:00
Serve PuppetDB meta and metrics endpoints, sum node and resource counts
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
b6d59af7ef
## Why
Puppetboard 7.0.1 cannot run against pdbmux: it exits at import when
/pdb/meta/v1/version 404s, and its landing page, metrics and radiator views
404 on the Jolokia surface.

## How
- Serve /pdb/meta/v1/version, reporting the lowest version any backend runs,
  and /pdb/meta/v1/server-time from the first reachable backend.
- Merge the Jolokia surface (/metrics/v2/read, /metrics/v2/list,
  /metrics/v1/mbeans): objects union, numeric attributes sum by default, and
  Min/Max/Uptime/StartTime plus the distribution stats take a bound or a mean.
- Route /nodes extract-count queries to the summing path ahead of the certname
  merge, and give /resources aggregates the same path.
- Document the endpoints and merge semantics in the README.
- Cover version disagreement, metric rules, escaped MBean names, count summing
  and the non-aggregate /nodes merge with httptest backends.
benvin merged commit 394f7df3a7 into main 2026-09-05 20:56:06 +10:00
benvin deleted branch benvin/meta-metrics-and-counts 2026-09-05 20:56:06 +10:00
Sign in to join this conversation.