From bc7d540b5e8ee2478b31783039ffe7fe5a379380 Mon Sep 17 00:00:00 2001 From: timhallinflux Date: Fri, 29 Jan 2021 15:40:43 -0800 Subject: [PATCH] fix 3 issues label association with bucket gpu_temperature -> temperature_gpu to be more consistent with other gpu temp data gathering (see nvidia_smi) change location of vcgencmd -> /usr/bin for Rasp PI 400 --- raspberry-pi/raspberry-pi-system.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/raspberry-pi/raspberry-pi-system.yml b/raspberry-pi/raspberry-pi-system.yml index a43212d4..a534166f 100755 --- a/raspberry-pi/raspberry-pi-system.yml +++ b/raspberry-pi/raspberry-pi-system.yml @@ -55,7 +55,6 @@ kind: Bucket metadata: name: heuristic-sinoussi-d7d017 spec: - associations: associations: - kind: Label name: tender-wu-ecc001 @@ -223,7 +222,7 @@ spec: from(bucket: v.bucket) |> range(start: v.timeRangeStart, stop: v.timeRangeStop) |> filter(fn: (r) => r["host"] == v.linux_host) - |> filter(fn: (r) => r["_measurement"] == "gpu_temperature") + |> filter(fn: (r) => r["_measurement"] == "temperature_gpu") |> filter(fn: (r) => r["_field"] == "value") |> last() |> yield(name: "last") @@ -542,8 +541,8 @@ spec: [[inputs.system]] [[inputs.exec]] - commands = ["/opt/vc/bin/vcgencmd measure_temp"] - name_override = "gpu_temperature" + commands = ["/usr/bin/vcgencmd measure_temp"] + name_override = "temperature_gpu" data_format = "grok" grok_patterns = ["%{NUMBER:value:float}"]