the push queue says how hard it tried, not only what it still owes
The ticket named openwaf_alert_push_attempts_total and the queue published delivered instead. The two answer different questions: pending and given-up say what the queue holds now, attempts says what it cost to get there — attempts per delivery is what separates an endpoint that refuses everything from one that refuses occasionally, and it is the number that makes the give-up bound checkable from outside. PushQueueCounts carries the sum, /metrics publishes it, /admin-api/state answers alertPushAttempts, and the smoke and compose gauge assertions now name all four. Re-run of every gate on this commit: build 0/0, unit 277/277, integration 251/251 in 34s, smoke 68/0, image 261 MB, compose-smoke 232/0 with 0 containers left behind, console 90/0. Refs OPEN-60.
This commit is contained in:
@@ -1406,8 +1406,9 @@ check 'the verdict counter counts the rule refusal this stack just made' 'yes' \
|
||||
"$([ "$(msample 'openwaf_requests_total{verdict="block_rule"} ')" -gt 0 ] 2>/dev/null && echo yes || echo no)"
|
||||
check 'the schema gauge says nothing the build needs is missing' '0' \
|
||||
"$(msample 'openwaf_schema_missing_tables ')"
|
||||
check 'the push queue is published as gauges on the shipped image' '0 0 0' \
|
||||
"$(msample 'openwaf_alert_push_pending ') $(msample 'openwaf_alert_push_delivered_total ') $(msample 'openwaf_alert_push_given_up_total ')"
|
||||
check 'the push queue is published as gauges on the shipped image' '0 0 0 0' \
|
||||
"$(msample 'openwaf_alert_push_pending ') $(msample 'openwaf_alert_push_delivered_total ') \
|
||||
$(msample 'openwaf_alert_push_given_up_total ') $(msample 'openwaf_alert_push_attempts_total ')"
|
||||
check 'the write counters are published even on a healthy stack' '0' \
|
||||
"$(msample 'openwaf_write_failures_total{pillar="bans"} ')"
|
||||
check 'the body names no address from the scene above' 'yes' \
|
||||
|
||||
+3
-2
@@ -149,8 +149,9 @@ check 'the live blocks gauge counts the engine ban' 1 \
|
||||
# way. No endpoint is configured in this scene, so the honest answer is three
|
||||
# zeros — and a gauge that is missing is a different failure from a gauge that
|
||||
# says 0, which is why msample's empty answer fails the check.
|
||||
check 'the push queue is published as gauges as well' '0 0 0' \
|
||||
"$(msample 'openwaf_alert_push_pending ') $(msample 'openwaf_alert_push_delivered_total ') $(msample 'openwaf_alert_push_given_up_total ')"
|
||||
check 'the push queue is published as gauges as well' '0 0 0 0' \
|
||||
"$(msample 'openwaf_alert_push_pending ') $(msample 'openwaf_alert_push_delivered_total ') \
|
||||
$(msample 'openwaf_alert_push_given_up_total ') $(msample 'openwaf_alert_push_attempts_total ')"
|
||||
# The aggregate-only invariant, asserted over the whole body with the markers
|
||||
# from the scene above actually in the database behind it.
|
||||
check 'the body names no address, no path and no operator note' yes \
|
||||
|
||||
Reference in New Issue
Block a user