mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
2177089f94
* promrelabel: add support of `lowercase` and `uppercase` relabeling actions https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2664 Signed-off-by: hagen1778 <roman@victoriametrics.com> * lib/storage: make golangci-lint happy Signed-off-by: hagen1778 <roman@victoriametrics.com> Co-authored-by: Nikolay <nik@victoriametrics.com>
41 lines
No EOL
856 B
YAML
41 lines
No EOL
856 B
YAML
- target_label: bar
|
|
- source_labels: [aa]
|
|
separator: "foobar"
|
|
regex: "foo.+bar"
|
|
target_label: aaa
|
|
replacement: "xxx"
|
|
- action: keep
|
|
source_labels: [aaa]
|
|
- action: drop
|
|
source_labels: [aaa]
|
|
- action: hashmod
|
|
source_labels: [aaa]
|
|
target_label: aaa
|
|
modulus: 234
|
|
- action: replace_all
|
|
source_labels: [aa]
|
|
target_label: bb
|
|
- action: labelmap_all
|
|
regex: "\\."
|
|
replacement: ":"
|
|
- action: keep_if_equal
|
|
source_labels: [foo, bar]
|
|
- action: drop_if_equal
|
|
source_labels: [foo, bar]
|
|
- action: keep
|
|
source_labels: [__name__]
|
|
regex:
|
|
- 'fo.*o'
|
|
- 'bar'
|
|
- 'baz.+'
|
|
- action: keep_metrics
|
|
regex: [foo bar baz]
|
|
- action: drop_metrics
|
|
regex: "foo|bar|baz"
|
|
- source_labels: [foo, bar]
|
|
separator: "-"
|
|
target_label: __tmp_uppercase
|
|
action: uppercase
|
|
- source_labels: [__tmp_uppercase]
|
|
target_label: lower_aaa
|
|
action: lowercase |