Skip to content

Commit

Permalink
renamed inconsistent metric names
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFireMike committed Oct 4, 2021
1 parent a070d3f commit 3c83828
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/request/check_interface_metrics_request_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ func addCheckInterfacePerformanceData(interfaces []device.Interface, r *monitori
}

if counter := checkHCCounter(i.EthernetLike.Dot3HCStatsFCSErrors, i.EthernetLike.Dot3StatsFCSErrors); counter != nil {
err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_FCSErrors", *counter).SetUnit("c").SetLabel(*i.IfDescr))
err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_fcs_errors", *counter).SetUnit("c").SetLabel(*i.IfDescr))
if err != nil {
return err
}
Expand All @@ -334,7 +334,7 @@ func addCheckInterfacePerformanceData(interfaces []device.Interface, r *monitori
}

if i.EthernetLike.Dot3StatsSQETestErrors != nil {
err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_SQETest_errors", *i.EthernetLike.Dot3StatsSQETestErrors).SetUnit("c").SetLabel(*i.IfDescr))
err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_sqe_test_errors", *i.EthernetLike.Dot3StatsSQETestErrors).SetUnit("c").SetLabel(*i.IfDescr))
if err != nil {
return err
}
Expand Down Expand Up @@ -390,7 +390,7 @@ func addCheckInterfacePerformanceData(interfaces []device.Interface, r *monitori
}

if i.EthernetLike.EtherStatsCRCAlignErrors != nil {
err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_CRCAlign_errors", *i.EthernetLike.EtherStatsCRCAlignErrors).SetUnit("c").SetLabel(*i.IfDescr))
err := r.AddPerformanceDataPoint(monitoringplugin.NewPerformanceDataPoint("error_counter_crc_align_errors", *i.EthernetLike.EtherStatsCRCAlignErrors).SetUnit("c").SetLabel(*i.IfDescr))
if err != nil {
return err
}
Expand Down

0 comments on commit 3c83828

Please sign in to comment.