qos: Do not export zero metrics counters #1690

Merged
dstepanov-yadro merged 1 commit from dstepanov-yadro/frostfs-node:fix/qos_unknown_metric into master 2025-03-20 12:28:38 +00:00

No need to export zero counters

No need to export zero counters
dstepanov-yadro added 1 commit 2025-03-20 11:42:20 +00:00
[#9999] qos: Do not export zero metrics counters
All checks were successful
DCO action / DCO (pull_request) Successful in 33s
Vulncheck / Vulncheck (pull_request) Successful in 1m3s
Build / Build Components (pull_request) Successful in 2m3s
Pre-commit hooks / Pre-commit (pull_request) Successful in 2m8s
Tests and linters / Run gofumpt (pull_request) Successful in 4m52s
Tests and linters / Lint (pull_request) Successful in 5m28s
Tests and linters / Tests with -race (pull_request) Successful in 5m38s
Tests and linters / Staticcheck (pull_request) Successful in 5m35s
Tests and linters / Tests (pull_request) Successful in 5m52s
Tests and linters / gopls check (pull_request) Successful in 6m4s
fd8670ddba
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
requested reviews from storage-core-committers, storage-core-developers 2025-03-20 11:42:21 +00:00
dstepanov-yadro force-pushed fix/qos_unknown_metric from fd8670ddba to af5b3575d0 2025-03-20 11:43:08 +00:00 Compare
acid-ant approved these changes 2025-03-20 11:44:47 +00:00
fyrchik approved these changes 2025-03-20 11:57:08 +00:00
@ -224,0 +228,4 @@
inProgress = s.inProgress.Load()
completed = s.completed.Load()
resExh = s.resourceExhausted.Load()
if pending == 0 && inProgress == 0 && completed == 0 && resExh == 0 {
Owner

These counters only increase, so we don't need to consider case of removing metric on 1 -> 0 transition, right?

These counters only increase, so we don't need to consider case of removing metric on `1 -> 0` transition, right?
Author
Member

right

right
dstepanov-yadro merged commit af5b3575d0 into master 2025-03-20 12:28:38 +00:00
dstepanov-yadro deleted branch fix/qos_unknown_metric 2025-03-20 12:28:41 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1690
No description provided.