-
Notifications
You must be signed in to change notification settings - Fork 2.5k
udp_queues_linux.go: Expose UDP drops via gauge analogous to queue sizes #2993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cleeland
wants to merge
7
commits into
prometheus:master
Choose a base branch
from
cleeland:expose-udp-drops
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
392f9ac
udp_queues_linux.go: Expose UDP drops via gauge analogous to queue si…
cleeland 619f013
Fix failing e2e test.
cleeland 5a060c2
Fix failing docker test.
cleeland 1a67c62
UDP drops should be a counter, not a gauge.
cleeland 146d5e8
Update e2e test expectations.
cleeland 62b30d6
Fix yamllint error due to trailing whitespace.
cleeland 13f019f
Break udp_queues into udp_{queues,drops_total}
cleeland File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess it makes sense to rename this but:
@SuperQ wdyt? maybe we should give registerCollector a list of aliases and have it print a deprecation warning if any of them are used?
Or to just get this merged, maybe just not rename it for now..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I figured this wasn't an ideal solution, but I recognize that I'm too ignorant to know what sorts of API-ish guarantees are in place. I opted for "make sure that the metric names stay the same", although since I changed the namespace from "udp_queues" to "udp" it's possible I didn't even achieve that.
FWIW, I chose this after looking at some of the other metrics, and settled on something similar to the pattern used by
cpu
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi guys, I contributed this PR based on your work @cleeland .
As @discordianfish said, the existing exporter name
udp_queues
might be already used by people disabling that collector.So it's worth to not change it otherwise it would be a breaking change and would need to wait a major release from node exporter.
If it's fine for you, let's work in my PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolas-laduguie thanks! I left my thoughts over on the new PR. Thanks for continuing to help shepherd this.