Improve prometheus plugin

closes #707
This commit is contained in:
Thibault Cohen
2016-03-01 11:12:23 -05:00
committed by Michele Fadda
parent 91166b4e01
commit 1fbee019fc
7 changed files with 452 additions and 46 deletions

View File

@@ -54,7 +54,7 @@ func TestPrometheusWritePointEmptyTag(t *testing.T) {
require.NoError(t, p.Gather(&acc))
for _, e := range expected {
acc.AssertContainsFields(t, "prometheus_"+e.name,
acc.AssertContainsFields(t, e.name,
map[string]interface{}{"value": e.value})
}
@@ -84,7 +84,7 @@ func TestPrometheusWritePointEmptyTag(t *testing.T) {
require.NoError(t, p.Gather(&acc))
for _, e := range expected2 {
acc.AssertContainsFields(t, "prometheus_"+e.name,
acc.AssertContainsFields(t, e.name,
map[string]interface{}{"value": e.value})
}
}