Skip to content

SMART plugin doesn't collect vendor-specific data with nvme-cli v1.14+ #10149

@KubaTrojan

Description

@KubaTrojan

Relevent telegraf.conf

[[inputs.smart]]
  path_smartctl = "/usr/sbin/smartctl"
  path_nvme = "/usr/sbin/nvme"
  enable_extensions = [ "Intel" ]
  use_sudo = true
  nocheck = "never"
  attributes = true
  devices = ["/dev/nvme0n1"]

System info

Telegraf 1.20.4, Ubuntu 18.04, nvme-cli 1.14

Docker

No response

Steps to reproduce

  1. Run Telegraf with SMART plugin enabled.
  2. Observe metrics.

Expected behavior

Telegraf successfully collects SMART metrics from nvme devices.

Actual behavior

When running Telegraf with a config with SMART plugin's Intel extension enabled, Intel specific metrics are not being reported for nvme drive.

Additional info

The output format of nvme-cli (v1.14+) has been changed, and SMART plugin doesn't read properly from it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/smartbugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions