-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Open
Labels
bugunexpected problem or unintended behaviorunexpected problem or unintended behavior
Description
Relevant telegraf.conf
[[inputs.turbostat]]
interval = "60s"
use_sudo = true
fieldexclude = ["usec"] # Current workaround for parse error
fieldinclude = ["package_power_watt"]Logs from Telegraf
E! [inputs.turbostat] Error in plugin: unable to parse column "usec": strconv.ParseFloat: parsing "usec": invalid syntax
System info
Telegraf version: 1.37.1 ; OS: Debian 13; CPU: Affects both AMD and Intel servers; Turbostat version: 2024.07.26
Docker
No response
Steps to reproduce
Steps to Reproduce
- Configure telegraf with [[inputs.turbostat]] plugin on Debian 13
- Run telegraf with the turbostat input enabled
- Observe the error in telegraf logs
Expected behavior
The turbostat plugin should successfully parse all columns from the turbostat output without errors.
Actual behavior
Telegraf logs an error about parsing the "usec" column:
E! [inputs.turbostat] Error in plugin: unable to parse column "usec": strconv.ParseFloat: parsing "usec": invalid syntax
Note: Despite the error, metrics specified in fieldinclude (e.g., package_power_watt) are still successfully collected. The error appears to be cosmetic but fills logs with unnecessary error messages.
Additional info
Attempted workaround: fieldexclude = ["usec"] does not help - the error persists.
Metadata
Metadata
Assignees
Labels
bugunexpected problem or unintended behaviorunexpected problem or unintended behavior