prettify msg (#620)

This commit is contained in:
yubo 2021-03-17 11:57:30 +08:00 committed by GitHub
parent 61bd28db31
commit 40ce0d75ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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)
} }
} }