-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollector.yaml
43 lines (38 loc) · 1.17 KB
/
collector.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
# https://opentelemetry.io/docs/collector/configuration
# https://github.com/open-telemetry/opentelemetry-lambda/blob/main/collector/README.md
# https://grafana.com/docs/grafana-cloud/data-configuration/otlp/send-data-otlp/
# for authorization:
# 1. find the instance id at https://grafana.com/orgs/gw2auth/stacks (Grafana -> Details -> Instance ID)
# 2. generate an API Key with MetricsPublisher role at https://grafana.com/orgs/gw2auth/api-keys
# 3. execute: echo -n "<instance-id>:<api-key>" | base64
# 4. The header must be "Basic <result of previous command>"
receivers:
otlp:
protocols:
grpc:
processors:
decouple:
exporters:
logging:
verbosity: detailed
otlphttp:
endpoint: "https://otlp-gateway-prod-eu-west-0.grafana.net/otlp"
headers:
authorization: ${env:GRAFANA_CLOUD_AUTH}
service:
telemetry:
logs:
level: info
pipelines:
traces:
receivers: [otlp]
processors: [decouple]
exporters: [logging, otlphttp]
metrics:
receivers: [otlp]
processors: [decouple]
exporters: [logging, otlphttp]
logs:
receivers: [otlp]
processors: [decouple]
exporters: [logging, otlphttp]