Skip to content

Commit

Permalink
fix 3 issues
Browse files Browse the repository at this point in the history
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
  • Loading branch information
timhallinflux authored Jan 29, 2021
1 parent 7b6246e commit bc7d540
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions raspberry-pi/raspberry-pi-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ kind: Bucket
metadata:
name: heuristic-sinoussi-d7d017
spec:
associations:
associations:
- kind: Label
name: tender-wu-ecc001
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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}"]
Expand Down

0 comments on commit bc7d540

Please sign in to comment.