Add prometheus round trip unit tests (#6720)

This commit is contained in:
Daniel Nelson
2019-11-26 17:31:36 -08:00
committed by GitHub
parent 80c5edd48e
commit 10db774db3
13 changed files with 935 additions and 456 deletions

View File

@@ -875,6 +875,7 @@ func TestParse_DataDogTags(t *testing.T) {
"value": 1,
},
time.Now(),
telegraf.Counter,
),
},
},
@@ -892,6 +893,7 @@ func TestParse_DataDogTags(t *testing.T) {
"value": 10.1,
},
time.Now(),
telegraf.Gauge,
),
},
},
@@ -948,6 +950,7 @@ func TestParse_DataDogTags(t *testing.T) {
"value": 42,
},
time.Now(),
telegraf.Counter,
),
},
},
@@ -1668,6 +1671,7 @@ func TestTCP(t *testing.T) {
"value": 42,
},
time.Now(),
telegraf.Counter,
),
},
acc.GetTelegrafMetrics(),