Update smartctl.go

Signed-off-by: Ben Kochie <superq@gmail.com>

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2022-10-19 08:03:40 +02:00 committed by GitHub
parent e10ded530f
commit e76e458118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ func (smart *SMARTctl) mineDeviceStatistics() {
// skip vendor-specific statistics (they lead to duplicate metric labels on Seagate Exos drives, // skip vendor-specific statistics (they lead to duplicate metric labels on Seagate Exos drives,
// see https://github.com/Sheridan/smartctl_exporter/issues/3 for details) // see https://github.com/Sheridan/smartctl_exporter/issues/3 for details)
if table == "Vendor Specific Statistics" { if table == "Vendor Specific Statistics" {
continue; continue
} }
for _, statistic := range page.Get("table").Array() { for _, statistic := range page.Get("table").Array() {
smart.ch <- prometheus.MustNewConstMetric( smart.ch <- prometheus.MustNewConstMetric(