-
Notifications
You must be signed in to change notification settings - Fork 0
/
otel.yaml.tmpl
56 lines (54 loc) · 1.27 KB
/
otel.yaml.tmpl
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
receivers:
prometheus/ci:
config:
scrape_configs:
- job_name: 'otl-col-ci'
scrape_interval: 15s
static_configs:
- targets: ['localhost:[[${nePort}]]']
exporters:
logging:
loglevel: debug
otlp:
endpoint: "[[${otlpEndpoint}]]"
headers:
Authorization: "[[${otlpAuthHeader}]]"
processors:
resourcedetection:
detectors:
- system
- ec2
resource/ci:
attributes:
- action: insert
key: ci.url
value: "[[${JENKINS_URL}]]"
- action: insert
key: ci.job.name
value: "[[${jobName}]]"
- action: insert
key: ci.job.groupname
value: "[[${jobGroupName}]]"
- action: insert
key: ci.job.id
value: "[[${env.BUILD_ID}]]"
- action: insert
key: service.name
value: "[[${serviceName}]]"
transform/ci:
metric_statements:
- context: resource
statements:
- set(attributes["executor"], Concat([attributes["host.name"], "[[${nePort}]]"], ":"))
batch:
send_batch_size: 10000
timeout: 10s
service:
telemetry:
metrics:
level: none
pipelines:
metrics:
receivers: [prometheus/ci]
processors: [resourcedetection, transform/ci, resource/ci] # [batch, resourcedetection]
exporters: [otlp, logging]