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

Collect SMART data with metricbeat #8614

Open
jsoriano opened this issue Oct 14, 2018 · 18 comments
Open

Collect SMART data with metricbeat #8614

jsoriano opened this issue Oct 14, 2018 · 18 comments
Assignees
Labels
enhancement Metricbeat Metricbeat module Team:Integrations Label for the Integrations team

Comments

@jsoriano
Copy link
Member

jsoriano commented Oct 14, 2018

Data provided by SMART is useful to detect failures on disks or to prevent incidences caused by disk degradation. It'd be nice to add a system metricset that collects this information.

SMART data is usually collected using smartmontools, we may need to find a golang-based alternative for that.

@sayden
Copy link
Contributor

sayden commented Oct 15, 2018

I found this library that could potentially help with the implementation https://github.com/dswarbrick/smart

@jsoriano
Copy link
Member Author

Other option could be to parse smartd logs with filebeat.

@recrsn
Copy link
Contributor

recrsn commented Oct 18, 2018

I would like to work on this

@jsoriano
Copy link
Member Author

@agathver great! I don't think anyone is working on this yet, so you are welcome to start with this 🙂

What is the approach you want to try?

Thanks!

@recrsn
Copy link
Contributor

recrsn commented Oct 18, 2018

@jsoriano I feel the smartmontools approach is more robust and mature. The Go library will be easier but has a warning of being experimental.

We already have other modules which require additional software, so this should not be an issue IMO.

@jsoriano
Copy link
Member Author

How would you use smartmontools? I think we don't have other modules executing commands at the moment and I'd say we don't want to make an exception here. If we can use it as library, query a daemon, or parse their logs I think we'd be fine.

@jsoriano
Copy link
Member Author

I agree in any case that using smartmontools if possible would be preferable to other options.

@recrsn
Copy link
Contributor

recrsn commented Oct 18, 2018

My initial idea was to parse the output of smartctl. The other alternative is to parse logs by smartd which goes into syslog.

@ruflin ruflin added the Team:Integrations Label for the Integrations team label Nov 21, 2018
@cskowronnek
Copy link

Any news here? Is there a way to pull SMART data from Windows devices?

@fearful-symmetry
Copy link
Contributor

This sounds fun to pick up. I need to look into how smartctl works, but if it's just doing ioctl calls to some disk device it probably won't be that hard to re-implement.

@recrsn
Copy link
Contributor

recrsn commented Nov 12, 2019

@fearful-symmetry You can take a look at WMI as well, it provides SMART data as well

@botelastic
Copy link

botelastic bot commented Oct 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the Stalled label Oct 12, 2020
@botelastic botelastic bot closed this as completed Nov 11, 2020
@guillaumedsde
Copy link

kind bump :) I'd be quite interested in this feature

@suprematis
Copy link

Bump here too!!

@fearful-symmetry
Copy link
Contributor

Gonna keep this open and see if we can at least keep it on our radar.

@botelastic botelastic bot removed the Stalled label Jan 4, 2021
@fearful-symmetry fearful-symmetry self-assigned this Jan 4, 2021
@PrplHaz4
Copy link

PrplHaz4 commented May 4, 2021

this sounds like it could be related to #20562

@HugoKuo
Copy link

HugoKuo commented Jun 23, 2022

bump! This will be very useful for AI modeling to detect potential failure disk.

@LMey
Copy link

LMey commented Jul 28, 2022

Is there any chance that the WMI functionality from Logstash could be moved into metricbeats?

Reasons:
As I understand logstash is a central function. So using this requires remote calls and security configuration
metric beat is where metrics are collate and set through to elastic. So why go somewhere else for your metrics.

It is also requested here: #29072

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Metricbeat Metricbeat module Team:Integrations Label for the Integrations team
Projects
None yet
Development

No branches or pull requests