metricbeat/module/rabbitmq/queue: Fix data type for consumers.utilisation.pct - #38436
Merged
andrewkroh merged 4 commits intoMar 20, 2024
Merged
Conversation
…ation.pct Fix mapping type for `rabbitmq.queue.consumers.utilisation.pct` to be `scaled_float` instead of `long` because the values range on `[0, 1.0]`. Previously, truncation converted the value to an integer so it either reported zero or one. There was a bug in the unit tests that did not catch this until we updated to testify 1.9.0 (stretchr/testify#1531).
Contributor
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
andrewkroh
added a commit
to andrewkroh/beats
that referenced
this pull request
Mar 19, 2024
Contributor
consumers.utilisation.pct
shmsr
approved these changes
Mar 19, 2024
shmsr
left a comment
Member
There was a problem hiding this comment.
Left one comment. Otherwise, it looks good.
consumers.utilisation.pctconsumers.utilisation.pct
andrewkroh
force-pushed
the
bugfix/mb/rabbitmq-utilisation-pct
branch
from
March 20, 2024 01:54
8c82f16 to
8df4146
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Contributor
💚 Build Succeeded
History
cc @andrewkroh |
Contributor
💚 Build Succeeded
History
cc @andrewkroh |
Contributor
💚 Build Succeeded
History
cc @andrewkroh |
Contributor
💚 Build Succeeded
History
cc @andrewkroh |
Contributor
💚 Build Succeeded
History
cc @andrewkroh |
Contributor
💚 Build Succeeded
History
cc @andrewkroh |
Contributor
💚 Build Succeeded
History
cc @andrewkroh |
Contributor
💚 Build Succeeded
History
cc @andrewkroh |
cmacknz
approved these changes
Mar 20, 2024
Member
|
@Mergifyio backport 7.17 |
Contributor
✅ Backports have been createdDetails
|
mergify Bot
pushed a commit
that referenced
this pull request
Nov 13, 2025
…ation.pct` (#38436) Fix mapping type for `rabbitmq.queue.consumers.utilisation.pct` to be `scaled_float` instead of `long` because the values range on `[0, 1.0]`. Previously, truncation converted the value to an integer so it either reported zero or one. There was a bug in the unit tests that did not catch this until we updated to testify 1.9.0 (stretchr/testify#1531). This PR removes the temporary testify v1.8.4 pin. (cherry picked from commit 5715699) # Conflicts: # NOTICE.txt # go.mod # metricbeat/module/rabbitmq/fields.go
mergify Bot
pushed a commit
that referenced
this pull request
Nov 13, 2025
…ation.pct` (#38436) Fix mapping type for `rabbitmq.queue.consumers.utilisation.pct` to be `scaled_float` instead of `long` because the values range on `[0, 1.0]`. Previously, truncation converted the value to an integer so it either reported zero or one. There was a bug in the unit tests that did not catch this until we updated to testify 1.9.0 (stretchr/testify#1531). This PR removes the temporary testify v1.8.4 pin. (cherry picked from commit 5715699) # Conflicts: # NOTICE.txt # go.mod # metricbeat/module/rabbitmq/fields.go
1 of 6 tasks
rdner
added a commit
that referenced
this pull request
Nov 13, 2025
…pe for `consumers.utilisation.pct` (#47629) * metricbeat/module/rabbitmq/queue: Fix data type for `consumers.utilisation.pct` (#38436) Fix mapping type for `rabbitmq.queue.consumers.utilisation.pct` to be `scaled_float` instead of `long` because the values range on `[0, 1.0]`. Previously, truncation converted the value to an integer so it either reported zero or one. There was a bug in the unit tests that did not catch this until we updated to testify 1.9.0 (stretchr/testify#1531). This PR removes the temporary testify v1.8.4 pin. (cherry picked from commit 5715699) # Conflicts: # NOTICE.txt # go.mod # metricbeat/module/rabbitmq/fields.go * Fix changelog * Resolve conflicts --------- Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co> Co-authored-by: Denis <denis.rechkunov@elastic.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Fix mapping type for
rabbitmq.queue.consumers.utilisation.pctto bescaled_floatinstead oflongbecause the values range on[0.0, 1.0]. Previously, truncation converted the value to an integer so it either reported zero or one.There was a bug in the unit tests that did not catch this until we updated to testify 1.9.0 (stretchr/testify#1531). This PR removes the temporary testify v1.8.4 pin.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Related issues
Logs