Repository navigation
monitoring: compare NVMe-oF gateway CPU in percent - #72211
Conversation
Reactor busy seconds accumulate elapsed time. Scale the average rate to percent before comparing it with the configured threshold of 80. Add a full-rule regression to the tox and CTest alert checks. Fixes: https://tracker.ceph.com/issues/81134 Signed-off-by: Mikhail Basov <[email protected]>
|
Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR |
|
Hi @banlor , the newly added |
make check runs promtool 2.31 from Ubuntu 22.04, which rejects the fuzzy_compare field added in Prometheus 3.5. Round the percentages in the expression check instead, so the expected values stay exact with both older and current promtool. Signed-off-by: Mikhail Basov <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks @aaSharma14. The CI promtool (2.31) does not support |
|
@aaSharma14, the promtool test fix from 29 October is in; could someone approve the CI run when you have a moment? |
|
jenkins test api |
The NVMe-oF gateway reactor counter accumulates busy seconds. Its per-second rate is a fraction, but
NVMeoFHighGatewayCPUcompares that fraction with the configured threshold of 80. In the full-rule replay, a gateway at 90% stayed silent after 15 minutes.Scale the averaged rate by 100 in both the Ceph mixin source and shipped rules. The configured threshold stays 80, and the 10-minute
for, labels, and annotations are unchanged. The regression exercises two gateways, multiple reactor threads, the pending period, and the exact 80% boundary.promtool test rules tests_alerts/test_nvmeof_cpu.ymlandpromtool check rules prometheus_alerts.ymlpass. The existing all-alert fixture has the same unrelated failures on base and this branch under promtool 3.15.0; the isolated regression passes and is registered with both tox and CTest. The new CTest registration was exercised in isolation, not through a full Ceph build. Jsonnet generation produces the same changed NVMe-oF expression, while the repository's checked-in YAML already differs from generated output in unrelated rules.AI tools assisted with the patch, tests and review. Found while studying alert rules across projects; the study reports results only in aggregate. This is a source-backed synthetic replay of ceph-nvmeof 1.7.23, not a claim about a live gateway.
Tracker: https://tracker.ceph.com/issues/81134
Checklist