special case 'value'
it usually connotes a single value type metric, appending just clutters closes #793
This commit is contained in:
committed by
Cameron Sparr
parent
31c323c097
commit
d09bb13cb6
@@ -46,8 +46,8 @@ func TestPrometheusWritePointEmptyTag(t *testing.T) {
|
||||
value float64
|
||||
tags map[string]string
|
||||
}{
|
||||
{"test_point_1_value", 0.0, tags},
|
||||
{"test_point_2_value", 1.0, tags},
|
||||
{"test_point_1", 0.0, tags},
|
||||
{"test_point_2", 1.0, tags},
|
||||
}
|
||||
|
||||
var acc testutil.Accumulator
|
||||
@@ -78,8 +78,8 @@ func TestPrometheusWritePointEmptyTag(t *testing.T) {
|
||||
name string
|
||||
value float64
|
||||
}{
|
||||
{"test_point_3_value", 0.0},
|
||||
{"test_point_4_value", 1.0},
|
||||
{"test_point_3", 0.0},
|
||||
{"test_point_4", 1.0},
|
||||
}
|
||||
|
||||
require.NoError(t, p.Gather(&acc))
|
||||
|
||||
Reference in New Issue
Block a user