-
Notifications
You must be signed in to change notification settings - Fork 78
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
Skip vendor-specific statistics that lead to duplicate metric labels #28
Conversation
Thanks. This fixed issues on Samsung Exos X16 for me. And I think it is a good fix. There is no point of collecting the metrics for these statistics, which just would consume space, and never be used. Lets merge it please. It can be always improved in the future to make sense of these metrics other way. |
Nice. We just ordered some Samsung Exos X16's. So good to know that this is a problem / there is a fix for it. Thanks! |
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.
doesn't look right to me.
"avoid duplicates" doesn't mean "ignore all of them"
#32 - alternative solution |
Just for the record, it's Seagate, not Samsung.
Do you have some use case for the Vendor Specific Statistics? As @baryluk said, it does not make sense to collect metrics that we can't make sense of. |
No, I personally don't have any use cases for those values. |
For wasting storage, memory, CPU cycles and energy.... So, they should be removed. Good metrics, should be actually useful and designed to be so. I would say all of the smart statistics (not attributes and other stuff) should be behind the command line flag, and be disable by default. |
Nowadays hardware is cheap, so it is not an argument to save few megabytes.
One thing to check something from the command line, another thing to have historical data and check it only if/when needed. |
Can we get a resolution on this? It is better to drop these statistics, than to try to collect them and fail. smartctl_exporter currently is unusable on some of the drives because of this issue. |
@vagifzeynalov Would you consider adding an "ignore duplicates" runtime flag? You could leave it to default to the current behavior, while allowing affected users who don't mind losing vendor-specific data to easily drop it without recompiling their own exporter |
@SuperQ any chance we can see some effort on getting this merged? |
@lahwaacz can you rebase this PR? This should trigger CI |
@k0ste rebased |
This needs a DCO sign-off. You can use |
fixes #3 Signed-off-by: Jakub Klinkovský <j.l.k@gmx.com>
Signed-off-by: Ben Kochie <superq@gmail.com> Signed-off-by: Ben Kochie <superq@gmail.com>
fixes #3