Skip to content

[inputs.turbostat] Unable to parse column "usec": strconv.ParseFloat error #18245

@valiknvk

Description

@valiknvk

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

  1. Configure telegraf with [[inputs.turbostat]] plugin on Debian 13
  2. Run telegraf with the turbostat input enabled
  3. 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 behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions