Add prometheus round trip unit tests (#6720)
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user