-
Notifications
You must be signed in to change notification settings - Fork 3.8k
prometheus-node-exporter-lua remove zero values #24016
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
prometheus-node-exporter-lua remove zero values #24016
Conversation
6afa841 to
237bf36
Compare
237bf36 to
bb6ae04
Compare
|
@champtar may I kindly ask if you could have a look at this? I would be happy to change the pull request given you have concerns. |
|
@champtar has this any chance to be merged? Like to have this option too. |
|
@1715173329 do you think we may get this merged? I would be happy to rework the pr as offered here if so desired. |
|
I'm neither the maintainer of this package nor familiar with it, sorry for that. @champtar kindly ping |
640d1e4 to
9237ffb
Compare
|
Sure. I am aware that your are not the maintainer and that you will not do the review or merge. Still thank you for your fast response. I have split the changes into two commits and implemented the "only counter" logic. |
|
any chance on progressing on this? |
|
@1715173329 sorry for bothering you again. might there by any chance of progressing without waiting for @champtar to respond? |
|
Please rebase this PR to resolve conflicts, otherwise LGTM. |
|
Thanks a lot. since there have been some changes in place I touched I would like to rebase and let it run on my devices for a bit to make sure I did not mess up anything. I will get back to you. |
9237ffb to
02ebc9d
Compare
|
@1715173329 I have been running my fixed version now for a few weeks and it is looking good in my opinion. for clarity. the CPU reduction is less significant these days since we are using buffered writes in lua by now. still it seams quite reasonable to avoid generating data which is not needed. |
depending on the configuration there may be multiple interfaces creating multiple time series always reporting 0 value. omiting them from the export saves resources. most notably cpu. this is limited to counter types Signed-off-by: Markus Hube <[email protected]>
02ebc9d to
36dfbf2
Compare
|
Merged, thank you! |
|
Sorry for never responding on this one, I was not super convinced as this is not something present in the go version, but it's disabled by default so that's fine |
|
thank you @champtar for your acknowledgement, thank you @1715173329 for the merge. I am happy to have this feature opt in and happy to see it upstream :) |
depending on the configuration there may be multiple interfaces creating multiple time series always
reporting 0 value. omiting them from the export saves resources. most notably cpu.
Signed-off-by: Markus Hube [email protected]