Merge pull request #1713 from mattbostock/document_drop

Relabel: Document whole label set is dropped
This commit is contained in:
Brian Brazil 2016-06-07 17:22:34 +01:00
commit 05b918a024

View file

@ -102,6 +102,20 @@ func TestRelabel(t *testing.T) {
},
output: nil,
},
{
input: model.LabelSet{
"a": "foo",
"b": "bar",
},
relabel: []*config.RelabelConfig{
{
SourceLabels: model.LabelNames{"a"},
Regex: config.MustNewRegexp(".*o.*"),
Action: config.RelabelDrop,
},
},
output: nil,
},
{
input: model.LabelSet{
"a": "abc",