diff --git a/retrieval/relabel_test.go b/retrieval/relabel_test.go index 633b83b4e..ad86c644d 100644 --- a/retrieval/relabel_test.go +++ b/retrieval/relabel_test.go @@ -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",