2020-02-23 11:35:47 +00:00
|
|
|
- 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: ":"
|
2020-06-23 14:17:58 +00:00
|
|
|
- action: keep_if_equal
|
|
|
|
source_labels: [foo, bar]
|
|
|
|
- action: drop_if_equal
|
|
|
|
source_labels: [foo, bar]
|
2022-12-22 03:55:57 +00:00
|
|
|
- action: keepequal
|
|
|
|
source_labels: [foo]
|
|
|
|
target_label: bar
|
|
|
|
- action: dropequal
|
|
|
|
source_labels: [foo]
|
|
|
|
target_label: bar
|
2021-09-09 13:18:19 +00:00
|
|
|
- action: keep
|
|
|
|
source_labels: [__name__]
|
|
|
|
regex:
|
|
|
|
- 'fo.*o'
|
|
|
|
- 'bar'
|
|
|
|
- 'baz.+'
|
|
|
|
- action: keep_metrics
|
|
|
|
regex: [foo bar baz]
|
|
|
|
- action: drop_metrics
|
|
|
|
regex: "foo|bar|baz"
|
2022-06-01 08:02:37 +00:00
|
|
|
- source_labels: [foo, bar]
|
|
|
|
separator: "-"
|
|
|
|
target_label: __tmp_uppercase
|
|
|
|
action: uppercase
|
|
|
|
- source_labels: [__tmp_uppercase]
|
|
|
|
target_label: lower_aaa
|
2022-06-16 17:24:19 +00:00
|
|
|
action: lowercase
|
|
|
|
- if: '{foo=~"bar.*",baz="aa"}'
|
|
|
|
target_label: aaa
|
|
|
|
replacement: foobar
|
|
|
|
- action: graphite
|
|
|
|
match: 'foo.*.bar'
|
|
|
|
labels:
|
|
|
|
instance: 'foo-$1'
|
|
|
|
job: '${1}-bar'
|