Skip to content
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

[FEAT] Add OpenMetrics / Prometheus metrics endpoint #74

Open
kinghrothgar opened this issue Oct 3, 2020 · 8 comments
Open

[FEAT] Add OpenMetrics / Prometheus metrics endpoint #74

kinghrothgar opened this issue Oct 3, 2020 · 8 comments
Labels
enhancement New feature or request help wanted Extra attention is needed waiting for response

Comments

@kinghrothgar
Copy link

It would be very nice to be able to pull data from scrutiny into Prometheus. This would allow me to leverage my standardized alert system.

https://prometheus.io/docs/instrumenting/writing_exporters/

It should feasibly be a /metrics route that translates the results of a DB query into the simple OpenMetrics format. If there is interest in merging this feature, I can look into getting together a PR.

@AnalogJ AnalogJ added enhancement New feature or request waiting for response labels Oct 4, 2020
@AnalogJ
Copy link
Owner

AnalogJ commented Oct 4, 2020

Hey, so the idea would be to allow Prometheus to query smart data from Scrutiny?
Doesn't Prometheus have a SMART data collector already?

@kinghrothgar
Copy link
Author

kinghrothgar commented Oct 12, 2020

There seems to a not particularly maintained exporter here (last interaction of the maintainer was over a year ago): https://github.com/Sheridan/smartctl_exporter

The only other option I have found is to do something like this with a node_exporter script, but this example script leaves much interpretation to be desired (as noted in the top comment): https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/blob/master/smartmon.sh

@dvonessen
Copy link

Hey! Is there any work on this feature? Or is this abandoned?

@Tin-Joy59
Copy link

Hey, I've been looking for the same thing! I've been using Scrutiny for a very long time and would like to bank on its reliability to push stats in Prometheus and Grafana.

@AnalogJ
Copy link
Owner

AnalogJ commented Apr 28, 2022

I'm open to contributions to support this kind of functionality, however I dont use Prometheus so I will be unable to develop this myself unfortunately

@AnalogJ AnalogJ added the help wanted Extra attention is needed label Apr 28, 2022
@stavros-k
Copy link

stavros-k commented Jul 1, 2022

Bringing this feature will benefit Windows users as well, as there are no exporters for that on Windows (that I know of).
Meaning that scrutiny will be the only(?) maintained exporter for SMART data in that platform

@proffalken
Copy link

Whilst I don't have the skills to develop this, I'm more than happy to test it if it gets developed.

@christianhorn
Copy link

I think this could be realized in running PCP's pmcd, pmda-smart (to read smart data) and pmproxy which can offer the data in Openmetrics format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed waiting for response
Projects
None yet
Development

No branches or pull requests

7 participants