mirror of https://github.com/prometheus/prometheus
Merge pull request #1713 from mattbostock/document_drop
Relabel: Document whole label set is droppedpull/1715/head
commit
05b918a024
|
@ -102,6 +102,20 @@ func TestRelabel(t *testing.T) {
|
||||||
},
|
},
|
||||||
output: nil,
|
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{
|
input: model.LabelSet{
|
||||||
"a": "abc",
|
"a": "abc",
|
||||||
|
|
Loading…
Reference in New Issue