maj telegraf.conf for pi temp

master
gregandev 2 years ago
parent 959f64cf13
commit a4308c562d
  1. 122
      telegraf/telegraf.conf

@ -286,3 +286,125 @@
# tls_key = "/etc/telegraf/key.pem"
## Use TLS but skip chain & host verification
# insecure_skip_verify = false
## CUSTOM
[[inputs.file]]
files = ["/sys/class/thermal/thermal_zone0/temp"]
name_override = "cpu_temperature"
data_format = "value"
data_type = "integer"
[[inputs.exec]]
commands = [ "vcgencmd measure_temp"]
name_override = "gpu_temperature"
data_format = "grok"
grok_patterns = ["%{NUMBER:value:float}"]
[[inputs.exec]]
commands = ["vcgencmd measure_clock arm"]
name_override = "cpu_clock"
data_format = "grok"
grok_patterns = ["=%{NUMBER:value:float}"]
[[inputs.exec]]
commands = [ "vcgencmd measure_volts core"]
name_override = "volts"
data_format = "grok"
grok_patterns = ["%{NUMBER:value:float}"]
[[inputs.exec]]
commands = [ "vcgencmd measure_volts sdram_c"]
name_override = "volts"
data_format = "grok"
grok_patterns = ["%{NUMBER:sdramc:float}"]
[[inputs.exec]]
commands = [ "vcgencmd measure_volts sdram_i"]
name_override = "volts"
data_format = "grok"
grok_patterns = ["%{NUMBER:sdrami:float}"]
[[inputs.exec]]
commands = [ "vcgencmd measure_volts sdram_p"]
name_override = "volts"
data_format = "grok"
grok_patterns = ["%{NUMBER:sdramp:float}"]
## END CUSTOM
## CUSTOM
[[inputs.file]]
files = ["/sys/class/thermal/thermal_zone0/temp"]
name_override = "cpu_temperature"
data_format = "value"
data_type = "integer"
[[inputs.exec]]
commands = [ "vcgencmd measure_temp"]
name_override = "gpu_temperature"
data_format = "grok"
grok_patterns = ["%{NUMBER:value:float}"]
[[inputs.exec]]
commands = ["vcgencmd measure_clock arm"]
name_override = "cpu_clock"
data_format = "grok"
grok_patterns = ["=%{NUMBER:value:float}"]
[[inputs.exec]]
commands = [ "vcgencmd measure_volts core"]
name_override = "volts"
data_format = "grok"
grok_patterns = ["%{NUMBER:value:float}"]
[[inputs.exec]]
commands = [ "vcgencmd measure_volts sdram_c"]
name_override = "volts"
data_format = "grok"
grok_patterns = ["%{NUMBER:sdramc:float}"]
[[inputs.exec]]
commands = [ "vcgencmd measure_volts sdram_i"]
name_override = "volts"
data_format = "grok"
grok_patterns = ["%{NUMBER:sdrami:float}"]
[[inputs.exec]]
commands = [ "vcgencmd measure_volts sdram_p"]
name_override = "volts"
data_format = "grok"
grok_patterns = ["%{NUMBER:sdramp:float}"]
## END CUSTOM
## FOR PI TEMP
[[inputs.file]]
files = ["/sys/class/thermal/thermal_zone0/temp"]
name_override = "cpu_temperature"
data_format = "value"
data_type = "integer"
[[inputs.exec]]
commands = [ "vcgencmd measure_temp"]
name_override = "gpu_temperature"
data_format = "grok"
grok_patterns = ["%{NUMBER:value:float}"]
[[inputs.exec]]
commands = ["vcgencmd measure_clock arm"]
name_override = "cpu_clock"
data_format = "grok"
grok_patterns = ["=%{NUMBER:value:float}"]
[[inputs.exec]]
commands = [ "vcgencmd measure_volts core"]
name_override = "volts"
data_format = "grok"
grok_patterns = ["%{NUMBER:value:float}"]
[[inputs.exec]]
commands = [ "vcgencmd measure_volts sdram_c"]
name_override = "volts"
data_format = "grok"
grok_patterns = ["%{NUMBER:sdramc:float}"]
[[inputs.exec]]
commands = [ "vcgencmd measure_volts sdram_i"]
name_override = "volts"
data_format = "grok"
grok_patterns = ["%{NUMBER:sdrami:float}"]
[[inputs.exec]]
commands = [ "vcgencmd measure_volts sdram_p"]
name_override = "volts"
data_format = "grok"
grok_patterns = ["%{NUMBER:sdramp:float}"]
## FOR PI TEMP

Loading…
Cancel
Save