1
+ receivers :
2
+ otlp :
3
+ protocols :
4
+ grpc :
5
+ endpoint : 127.0.0.1:4318
6
+ http :
7
+ endpoint : 127.0.0.1:4319
8
+ apache :
9
+ endpoint : " http://localhost:80/server-status?auto"
10
+ collection_interval : 30s
11
+
12
+ processors :
13
+ batch :
14
+ timeout : 5s
15
+ send_batch_size : 10000
16
+ send_batch_max_size : 10000
17
+ resourcedetection/ec2 :
18
+ detectors : ["ec2"]
19
+ ec2 :
20
+ # A list of regex's to match tag keys to add as resource attributes can be specified
21
+ tags :
22
+ # This means you have a tag `Name` associated with the EC2 Instance.
23
+ - ^Name$
24
+ # This means you have a tag `app` associated with the EC2 Instance.
25
+ - ^app$
26
+ transform/ec2 :
27
+ error_mode : ignore
28
+ log_statements :
29
+ - context : resource
30
+ statements :
31
+ # Set Service name as the `Name` tag associated with the EC2 Instance. The format is `ec2.tag.<tag_name>`.
32
+ - set(attributes["service.name"], attributes["ec2.tag.Name"])
33
+ resourcedetection/system :
34
+ detectors : ["system"]
35
+ system :
36
+ hostname_sources : ["os"]
37
+ transform/hostmetrics :
38
+ metric_statements :
39
+ - context : datapoint
40
+ statements :
41
+ - set(attributes["host.name"], resource.attributes["host.name"])
42
+ - set(attributes["cloud.account.id"], resource.attributes["cloud.account.id"])
43
+ - set(attributes["cloud.availability_zone"], resource.attributes["cloud.availability_zone"])
44
+ - set(attributes["cloud.platform"], resource.attributes["cloud.platform"])
45
+ - set(attributes["cloud.provider"], resource.attributes["cloud.provider"])
46
+ - set(attributes["cloud.region"], resource.attributes["cloud.region"])
47
+ - set(attributes["host.type"], resource.attributes["host.type"])
48
+ - set(attributes["host.image.id"], resource.attributes["host.image.id"])
49
+ exporters :
50
+ otlp/last9 :
51
+ endpoint : " <LAST9_OTEL_ENDPOINT>"
52
+ headers :
53
+ " Authorization " : " Basic <LAST9_OAUTH_TOKEN>"
54
+ debug :
55
+ verbosity : detailed
56
+
57
+ service :
58
+ pipelines :
59
+ metrics :
60
+ receivers : [apache]
61
+ processors : [batch, resourcedetection/system, transform/hostmetrics]
62
+ exporters : [otlp/last9]
0 commit comments