-
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
collect virtual machine temperature #4400
Comments
We have the sensors input for Linux, but I'm assuming you are interested in this on Windows via gopsutil? I think this would be good to add, do you want to prepare a PR? |
Thanks for your reply. I read I already read gopsutil code, linux it read machine file to get temperature, and yesterday i send a PR to gopsutil, use WMI to collect Windows temperature. Is it helpful for Telegraf? Whether Telegraf use gopsutil to get temperature? If not, you can tell me which plugin can add this feature, i will happly to send a PR to implement it. |
It should be acceptable to add a |
Add a new If right, which metrics name should be included in this plugin. Do you have any idea? |
Yes
Since the current interface from gopsutil is: type TemperatureStat struct {
SensorKey string `json:"sensorKey"`
Temperature float64 `json:"sensorTemperature"`
} Something like this should be appropriate:
|
Now my PR not merge, if it merged, i want to begin this work. |
Yeah, can you add a link to the PR? I think we will remove the system package soon with this PR so you should probably make your plugin a top level plugin: |
Sorry, i am a beginner for this. I'm not understand what is mean, can you tell me what should i do or explain it detail? Thanks very much. :) I add new |
Just paste a URL to the PR you are waiting for in a comment, this way we can keep an eye on it.
👍 |
OK. Thanks. |
@danielnelson i send PR #4411 , i hope you can review it if you have time. Thanks. |
Closed by #4411 |
Feature Request
Opening a feature request kicks off a discussion.
Proposal:
system
inputs plugin add temperature metric.Current behavior:
I want to use telegraf collect vm temperature, but i not found inputs plugin to do it.
Desired behavior:
Telegraf have inputs plugin to do it.
Use case: [Why is this important (helps with prioritizing requests)]
If telegraf inputs plugin can collect temperature, please tell me. Thanks. :)
The text was updated successfully, but these errors were encountered: