Mise à jour de 'telegraf/telegraf.conf'

master
gregandev 2 years ago
parent a4308c562d
commit ab0c420619
  1. 81
      telegraf/telegraf.conf

@ -287,87 +287,6 @@
## Use TLS but skip chain & host verification ## Use TLS but skip chain & host verification
# insecure_skip_verify = false # 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 ## FOR PI TEMP
[[inputs.file]] [[inputs.file]]
files = ["/sys/class/thermal/thermal_zone0/temp"] files = ["/sys/class/thermal/thermal_zone0/temp"]

Loading…
Cancel
Save