Skip to content

Absence of scsi_percentage_used_endurance_indicator #292

@g00g1

Description

@g00g1

I would like to ask consider adding scsi_percentage_used_endurance_indicator to smartctl_exporter metrics, as you can see below it is present in raw json of smartctl but not at smartctl_exporter metrics

smartctl --json ...

$ sudo smartctl --json --info --health --attributes --tolerance=verypermissive --format=brief  -d megaraid,0 /dev/sda
{
  "json_format_version": [
    1,
    0
  ],
  "smartctl": {
    "version": [
      7,
      2
    ],
    "svn_revision": "5155",
    "platform_info": "x86_64-linux-5.14.0-427.40.1.el9_4.x86_64",
    "build_info": "(local build)",
    "argv": [
      "smartctl",
      "--json",
      "--info",
      "--health",
      "--attributes",
      "--tolerance=verypermissive",
      "--format=brief",
      "-d",
      "megaraid,0",
      "/dev/sda"
    ],
    "exit_status": 0
  },
  "device": {
    "name": "/dev/sda",
    "info_name": "/dev/sda [megaraid_disk_00]",
    "type": "megaraid,0",
    "protocol": "SCSI"
  },
  "vendor": "REDACTED",
  "product": "REDACTED",
  "model_name": "REDACTED REDACTED",
  "revision": "REDACTED",
  "scsi_version": "SPC-4",
  "user_capacity": {
    "blocks": 3750748848,
    "bytes": 1920383410176
  },
  "logical_block_size": 512,
  "rotation_rate": 0,
  "form_factor": {
    "scsi_value": 3,
    "name": "2.5 inches"
  },
  "serial_number": "REDACTED",
  "device_type": {
    "scsi_value": 0,
    "name": "disk"
  },
  "local_time": {
    "time_t": 1745687131,
    "asctime": "Sat Apr 26 19:05:31 2025 CEST"
  },
  "smart_status": {
    "passed": true
  },
  "scsi_percentage_used_endurance_indicator": 30,
  "temperature": {
    "current": 20,
    "drive_trip": 64
  },
  "power_on_time": {
    "hours": 50899,
    "minutes": 13
  }
}

smartctl_exporter

$ curl -s "[::1]:9633/metrics" | grep megaraid.0
smartctl_device{ata_additional_product_id="unknown",ata_version="",device="bus_0_megaraid_0",firmware_version="",form_factor="2.5 inches",interface="megaraid,0",model_family="unknown",model_name="REDACTED REDACTED",protocol="SCSI",sata_version="",scsi_product="",scsi_revision="",scsi_vendor="",scsi_version="SPC-4",serial_number="REDACTED"} 1
smartctl_device_block_size{blocks_type="logical",device="bus_0_megaraid_0"} 512
smartctl_device_block_size{blocks_type="physical",device="bus_0_megaraid_0"} 0
smartctl_device_capacity_blocks{device="bus_0_megaraid_0"} 3.750748848e+09
smartctl_device_capacity_bytes{device="bus_0_megaraid_0"} 1.920383410176e+12
smartctl_device_power_on_seconds{device="bus_0_megaraid_0"} 1.8323718e+08
smartctl_device_smart_status{device="bus_0_megaraid_0"} 1
smartctl_device_smartctl_exit_status{device="bus_0_megaraid_0"} 0
smartctl_device_temperature{device="bus_0_megaraid_0",temperature_type="current"} 20
smartctl_device_temperature{device="bus_0_megaraid_0",temperature_type="drive_trip"} 64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions