-
Notifications
You must be signed in to change notification settings - Fork 196
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
Add NVME support to smartmon.py #113
Add NVME support to smartmon.py #113
Conversation
ddfd6f3
to
fcd52f3
Compare
Signed-off-by: Christoph Wiechert <[email protected]>
Signed-off-by: Christoph Wiechert <[email protected]>
fcd52f3
to
182b74c
Compare
Co-authored-by: Linus Heckemann <[email protected]> Signed-off-by: Christoph Wiechert <[email protected]>
'--attributes', *device.smartctl_select() | ||
) | ||
|
||
# replace multiple occurrences of whitespaces with a singel whitespace |
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.
Typo in comment
The smartmon.py script has recently undergone non-trivial refactoring to use the official Prometheus client_python library, and this PR would need to be updated accordingly. I still feel that the best place to implement NVMe metrics collection is in the nvme_metrics collector. Yes, If we implement NVMe metrics in two completely different collectors, this is going to be confusing for users. I expect that many setups will run both collectors anyway, which would essentially result in duplicated metrics if the The only way I would condone adding NVMe metrics to the @SuperQ WDYT? |
We can provide more than one way to do things in this repo.
This is probably a good idea. |
This is an updated version of prometheus-community#113. By default NVMe devices will be ignored but gathering of metrics for NVMEe devices can be enabled with the command-line option `--include-nvme`. Signed-off-by: Christian Pointner <[email protected]>
This is an updated version of prometheus-community#113. By default NVMe devices will be ignored but gathering of metrics for NVMEe devices can be enabled with the command-line option `--include-nvme`. Signed-off-by: Christian Pointner <[email protected]>
Closing due to inactivity and unresolved merge conflicts. |
TBDC: NVME-Metrics are more like
nvme_metrics.sh
like thansmartmon.py
.closes #110