You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[[inputs.smartctl]]
use_sudo = true# not relevenet to the problem, but showing here to not suprise you with a prometheus style metric later
[[outputs.prometheus_client]]
## Address to listen on.## ex:## listen = ":9273"## listen = "vsock://:9273"listen = ":9273"
Logs from Telegraf
not relevant, but still
❯ sudo telegraf --config /etc/telegraf/telegraf.conf --debug
WARN[0000]log.go:244 gosnowflake.(*defaultLogger).Warn DBUS_SESSION_BUS_ADDRESS envvar looks to be not set, this can lead to runaway dbus-daemon processes. To avoid this, set envvar DBUS_SESSION_BUS_ADDRESS=$XDG_RUNTIME_DIR/bus (if it exists) or DBUS_SESSION_BUS_ADDRESS=/dev/null.
2024-08-09T06:23:57Z I! Loading config: /etc/telegraf/telegraf.conf
2024-08-09T06:23:57Z I! Starting Telegraf 1.31.2 brought to you by InfluxData the makers of InfluxDB
2024-08-09T06:23:57Z I! Available plugins: 234 inputs, 9 aggregators, 32 processors, 26 parsers, 60 outputs, 6 secret-stores
2024-08-09T06:23:57Z I! Loaded inputs: cpu disk diskio kernel mem processes smartctl swap system
2024-08-09T06:23:57Z I! Loaded aggregators:
2024-08-09T06:23:57Z I! Loaded processors:
2024-08-09T06:23:57Z I! Loaded secretstores:
2024-08-09T06:23:57Z I! Loaded outputs: prometheus_client
2024-08-09T06:23:57Z I! Tags enabled: host=nas2-dorm
2024-08-09T06:23:57Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"nas2-dorm", Flush Interval:10s
2024-08-09T06:23:57Z D! [agent] Initializing plugins
2024-08-09T06:23:57Z D! [agent] Connecting outputs
2024-08-09T06:23:57Z D! [agent] Attempting connection to [outputs.prometheus_client]
2024-08-09T06:23:57Z I! [outputs.prometheus_client] Listening on http://[::]:9273/metrics
2024-08-09T06:23:57Z D! [agent] Successfully connected to outputs.prometheus_client
2024-08-09T06:23:57Z D! [agent] Starting service inputs
## I HIT CTRL C HERE
^C2024-08-09T06:24:02Z D! [agent] Stopping service inputs
2024-08-09T06:24:02Z D! [agent] Input channel closed
2024-08-09T06:24:02Z I! [agent] Hang on, flushing any cached metrics before shutdown
2024-08-09T06:24:02Z D! [outputs.prometheus_client] Wrote batch of 51 metrics in 4.121802ms
2024-08-09T06:24:02Z D! [outputs.prometheus_client] Buffer fullness: 0 / 10000 metrics
2024-08-09T06:24:02Z I! [agent] Stopping running outputs
2024-08-09T06:24:02Z D! [agent] Stopped Successfully
System info
Telegraf 1.31.2 (git: HEAD@854ac83b), debian 12
Docker
No response
Steps to reproduce
add smartctl input plugin to the config
run the telegraf service
see the false device type detected in exposed metric
...
Expected behavior
I have six disk attached, one is nvme and the rest five are all sata,
I expect to get
Indeed the the smartctl output is wrong. so I did quick search on google and found https://www.smartmontools.org/ticket/811 this old ticket suggest that people should use --scan-open instead of --scan to get the right device type.
here is the output, not the device type is correct now.
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.31.2 (git: HEAD@854ac83b), debian 12
Docker
No response
Steps to reproduce
...
Expected behavior
I have six disk attached, one is nvme and the rest five are all sata,
I expect to get
Actual behavior
instead I got
Please note the device type and incorrect temperature
Additional info
as instructed in smartctl output plugin folder, I checked
and
Indeed the the smartctl output is wrong. so I did quick search on google and found https://www.smartmontools.org/ticket/811 this old ticket suggest that people should use
--scan-open
instead of--scan
to get the right device type.here is the output, not the device type is correct now.
The text was updated successfully, but these errors were encountered: