-
Notifications
You must be signed in to change notification settings - Fork 1.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
in_cpu or in_head: add cpu temperature? #308
Comments
Actually reading from a file will be considered as a string. No workaround at the moment but I will flag this issue as an enhancement request to see how this can be accomplished in the future. |
@nokute78 what about an option on in_head to force a atoll() over the read data ? |
@edsiper In my opinion, it will be nice to support "types" feature of parser like fluentd. Because type casting is helpful for not only in_head but also other input plugins. |
@nokute78 so for Parsers context it would be to add a new format(ter) backend-type, e.g:
|
I pushed #310 to update parser. @edsiper It is different from parser of fluentd. |
@mahdi-asadpour-rr |
@nokute78 sure, shortly (~tomorrow) |
thanks!, merged. fixed. |
CPU temperature is reported in "/sys/class/thermal/thermal_zone0/temp" (Linux), which is an important metric to monitor in embedded systems. Would it be possible to include this somehow?
include temperature in the in_cpu, OR
it's actually possible to use in_head on this file, but the read value is outputted as "string" and not "number", which makes it not usable to visualize in Kibana when output_es is used.
Thanks.
The text was updated successfully, but these errors were encountered: