prettify msg (#620)
This commit is contained in:
parent
61bd28db31
commit
40ce0d75ed
|
@ -3,6 +3,7 @@ package plugins
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/didi/nightingale/src/common/dataobj"
|
"github.com/didi/nightingale/src/common/dataobj"
|
||||||
|
@ -93,6 +94,6 @@ func PluginInputTest(t *testing.T, input telegraf.Input) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for k, v := range metrics {
|
for k, v := range metrics {
|
||||||
t.Logf("%d %s %s %f", k, v.CounterType, v.PK(), v.Value)
|
t.Logf("%d %s %s %f", k, v.CounterType, strings.TrimPrefix(v.PK(), "/"), v.Value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue