Skip to content

Commit 45fc02b

Browse files
authored
Moving if utilization % to look like other if metrics in influx (#388)
Co-authored-by: Ian Pye <pye@kentik.com>
1 parent b7e0d37 commit 45fc02b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/formats/influx/influx.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ func (f *InfluxFormat) fromSnmpInterfaceMetric(in *kt.JCHF) []InfluxData {
506506
if !util.DropOnFilter(attrNew, f.lastMetadata[in.DeviceName], true) {
507507
getMib(attrNew, ip)
508508
results = append(results, InfluxData{
509-
Name: *Prefix + "if",
509+
Name: *Prefix + "IF-MIB::if",
510510
FieldsFloat: map[string]float64{"IfInUtilization": float64(inBytes*8*100) / float64(uptimeSpeed)},
511511
Timestamp: in.Timestamp * 1000000000,
512512
Tags: attrNew,
@@ -527,7 +527,7 @@ func (f *InfluxFormat) fromSnmpInterfaceMetric(in *kt.JCHF) []InfluxData {
527527
if !util.DropOnFilter(attrNew, f.lastMetadata[in.DeviceName], true) {
528528
getMib(attrNew, ip)
529529
results = append(results, InfluxData{
530-
Name: *Prefix + "if",
530+
Name: *Prefix + "IF-MIB::if",
531531
FieldsFloat: map[string]float64{"IfOutUtilization": float64(outBytes*8*100) / float64(uptimeSpeed)},
532532
Timestamp: in.Timestamp * 1000000000,
533533
Tags: attrNew,

0 commit comments

Comments
 (0)