-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Megacli collector should move to textfile collector #101
Comments
👍 instead of scripts, we could simply extract the current shelling parsing into their own CLI tool that will just do the thing once & write to a file or stdout. That way we can build on past work. |
In general I'm thinking we should have a good few of these as pure shell, in order to serve as examples. Go tends to be much longer code-wise, which may scare users off. |
Last login has been removed. |
Related to this issue, the current implementation of the MegaCli collector requires node_exporter to run as root or use setuid or setcap on the MegaCLI binary. It's also not possible to specify To me, these are good reasons for this functionality to be moved out of the node_exporter. |
I have a script that parses the JSON output from StorCLI (which I believe supersedes MegaCLI 1) and exposes Prometheus metrics on stdout ready for redirection into a file for the textfile collector. Where should I put it? Should we have a directory in the node_exporter repo for example text collector scripts? |
A directory in this repo sounds good. |
Raised #320 |
megacli is now marked as deprecated. We never deprecated features before, so it's up for discussion what happens next. We should definitely keep megacli in the 0.14 release but could remove it in 0.15. The question is more how much 0.14.x release we will have. But I'd say it should be gone in 0.15. |
I think it is a bad user experience when you just deprecate something without telling users where they should move to. So I would recommend to update https://github.com/prometheus/node_exporter/blob/master/README.md and add a "Replacement" column for example telling users to move to StorCLI text collect in this case. An additional note in megacli collector's source code would be helpful as well. |
@Whissi Good idea! Want to submit a PR for that? |
@Whissi That's a good suggestion, we can add that to the readme. |
For anyone looking for legacy megacli textfile exporter: |
@SuperQ , It was the first thing i've tried after megacli support was dropped. I am running older hardware and megacli gives me more metrics like:
I do also think about reporting exporting metrics from patrol read, consistency check and rebuild progress. |
Good to know. We're happy to take improvements to our existing collector, or if you would like to contribute your collector to the textfile repo here. |
…openshift-4.11-golang-github-prometheus-node_exporter Updating golang-github-prometheus-node_exporter images to be consistent with ART
We don't want to shell out (particularly to things that require root), so these should move to the textfile collector. We should provide scripts or binaries that can be run from cron
The text was updated successfully, but these errors were encountered: