-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Added support for gosensors plugin #519
Conversation
Awesome, thanks for adding this, is there any possibility of a unit test? I know this is a fairly special case, so it's OK if the answer is "no" |
please also add this to the README.md and CHANGELOG.md files |
please add |
I've edited the README and CHANGELOG. I also changed the build to only Linux. I'm not sure how I would add a unit test, but I'll certainly look into it. I'm not sure if it may be worth adding that the sensors command has to be run by root from the cli first. Also, do you have a preference on how the field names should be displayed? |
Hi, $ sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +37.0°C (high = +100.0°C, crit = +100.0°C)
Core 0: +34.0°C (high = +100.0°C, crit = +100.0°C)
Core 1: +34.0°C (high = +100.0°C, crit = +100.0°C) $ tail -n 3 telegraf.d/inputs_system.conf
# Read metrics about sensors
[[inputs.sensors]]
sensors = [ "coretemp-isa-0000" ] $ telegraf -test -config telegraf.conf -config-directory telegraf.d -filter sensors
2016/02/20 15:20:03 Undefined but requested input: sensors Thanks for your help. |
@lGuillaume124 Try changing or, if you would like to just log all sensors then you don't need Hope that helps. |
sensors is currently only available if you're building from source, I'll update the readme to indicate that |
@sparrc why is this? Is there a guide somewhere on how to enable this when you are building from source? |
this plugin has extensive libsensors dependencies, and I haven't found a way to compile this plugin into telegraf as an optional dependency. You could also just use the |
So does that mean you just need to make sure you install lm_sensors etc before compiling? |
you need to do something like |
thanks :) |
This change addresses #168
The implementation is very basic and intended to be worked upon. I am open to feedback as to the best approach for field names and tags. For now this is a working example.