-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
config.yaml
37 lines (33 loc) · 1.15 KB
/
config.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
receivers:
examplereceiver:
processors:
# The following specifies a resource configuration doing the changes on resource attributes:
# 1. Set "cloud.zone" attributes with "zone-1" value ignoring existing values.
# 2. Copy "k8s-cluster" attribute value to "k8s.cluster.name" attribute, nothing happens if "k8s-cluster" not found.
# 3. Remove "redundant-attribute" attribute.
# There are many more attribute modification actions supported,
# check processor/attributesprocessor/testdata/config.yaml for reference.
resource:
attributes:
- key: cloud.zone
value: zone-1
action: upsert
- key: k8s.cluster.name
from_attribute: k8s-cluster
action: insert
- key: redundant-attribute
action: delete
# The following specifies an invalid resource configuration, it has to have at least one action set in attributes field.
resource/invalid:
exporters:
exampleexporter:
service:
pipelines:
metrics:
receivers: [examplereceiver]
processors: [resource]
exporters: [exampleexporter]
traces:
receivers: [examplereceiver]
processors: [resource]
exporters: [exampleexporter]