-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
config_full.yaml
65 lines (58 loc) · 1.6 KB
/
config_full.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
metricstransform:
transforms:
- include: name
action: update
new_name: new_name
metricstransform/multiple:
transforms:
- include: name1
match_type: strict
action: insert
new_name: new_name
operations:
- action: add_label
new_label: my_label
new_value: my_value
- include: new_name
action: insert
new_name: new_name_copy_1
match_type: strict
experimental_match_labels: {"my_label": "my_value"}
- include: new_name
action: insert
new_name: new_name_copy_2
match_type: regexp
experimental_match_labels: {"my_label": ".*label"}
- include: name2
action: update
operations:
- action: update_label
label: label
new_label: new_label_key
value_actions:
- value: label1
new_value: new_label1
- action: aggregate_labels
label_set: [new_label1, label2]
aggregation_type: sum
- action: aggregate_label_values
label: new_label1
aggregated_values: [value1, value2]
new_value: new_value
aggregation_type: sum
- include: name3
match_type: strict
action: update
operations:
- action: delete_label_value
label: my_label
label_value: delete_me
- include: ^regexp (?P<my_label>.*)$
match_type: regexp
action: combine
new_name: combined_metric_name
submatch_case: lower
- include: name2
match_type: strict
action: group
group_resource_labels: {"metric_group": "2"}