We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cee06ec + e76e458 commit b832e55Copy full SHA for b832e55
smartctl.go
@@ -331,6 +331,11 @@ func (smart *SMARTctl) mineSmartStatus() {
331
func (smart *SMARTctl) mineDeviceStatistics() {
332
for _, page := range smart.json.Get("ata_device_statistics.pages").Array() {
333
table := strings.TrimSpace(page.Get("name").String())
334
+ // skip vendor-specific statistics (they lead to duplicate metric labels on Seagate Exos drives,
335
+ // see https://github.com/Sheridan/smartctl_exporter/issues/3 for details)
336
+ if table == "Vendor Specific Statistics" {
337
+ continue
338
+ }
339
for _, statistic := range page.Get("table").Array() {
340
smart.ch <- prometheus.MustNewConstMetric(
341
metricDeviceStatistics,
0 commit comments