feat: sum aggregate rows across backends on event-counts and /reports #8
Reference in New Issue
Block a user
Delete Branch "benvin/aggregate-sums"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Puppetboard's node-status numbers and daily-reports chart are wrong: each PuppetDB
counts only its own slice, and pdbmux passed both partial rows through instead of
adding them. PR #5 left aggregates un-summed on purpose; this closes that gap.
How
/event-countsper subject and/aggregate-event-countsper summary object across backends.extract/count()/group_byrows on/reports, grouping on the query's plain extract fields plus itsgroup_byclause; a query with nofunctioncolumn stays on the union path.include_totalon a summed endpoint reports the merged row count, not the sum of the backends'X-Records.b7dc2a53a2tob1ecbf31ac