Quick Start to Using Influxdb on Macos - sheldonhull.com #165
Replies: 3 comments
-
For macOS, this link shows how to create the environment variables with global scope. |
Beta Was this translation helpful? Give feedback.
-
Updated post with better information. I stuck with local conf, as the environment stuff was a bit too messy. |
Beta Was this translation helpful? Give feedback.
-
Use powermetrics to get fan speed and thermal info with Telegraf on macOS. Note this requires root. I applied the configuration shown in that article of: # Fan Speed and CPU/GPU temp, reported to influx as "thermal"
# Example output: `thermal,host=mbp.local cpu=36.85,fan=2161,gpu=35 1594647603000000000`
[[inputs.exec]]
commands = [
"/bin/bash -c \"powermetrics --samplers smc --sample-count 1 -i 1 | grep -E '(Fan|temperature)' | sed -e 's/ die temperature//' -e 's/: /=/' -e 's/ .*$//' | tr '[A-Z]' '[a-z]' | xargs | sed -e 's/ /,/g' -e 's/^/thermal /'\""
]
timeout = "60s"
data_format = "influx"
# Thermal throttling info, reported to influx as "thermal"
# Example output: `thermal,host=mbp.local cpu_available_cpus=8,cpu_scheduler_limit=100,cpu_speed_limit=100 1594647603000000000`
[[inputs.exec]]
commands = [
"/bin/bash -c \"/usr/bin/pmset -g therm | awk $'/=/{printf $1$2$3\\\",\\\"}' | sed -e 's/,$//' -e 's/^/thermal /' | tr '[A-Z]' '[a-z]'\""
]
timeout = "60s"
data_format = "influx" This resulted in a new measurement series of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Quick Start to Using Influxdb on Macos
https://www.sheldonhull.com/blog/quick-start-to-using-influxdb-on-macos/
Beta Was this translation helpful? Give feedback.
All reactions