mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08:00
Merge pull request #1713 from mattbostock/document_drop
Relabel: Document whole label set is dropped
This commit is contained in:
commit
05b918a024
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue