forked from equinixmetal-helm/k8s-otel-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
opentelemetry-collector-config.yaml
84 lines (79 loc) · 2.68 KB
/
opentelemetry-collector-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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
apiVersion: v1
kind: ConfigMap
metadata:
name: opentelemetry-collector
data:
opentelemetry-collector-config: |
receivers:
otlp: # can receive all data formats
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:55681
prometheus/collector-metrics:
config:
scrape_configs:
- job_name: {{ .Release.Namespace }}-collector # becomes service.name in collector-metrics dataset
scrape_interval: 15s
static_configs:
- targets: ["127.0.0.1:8888"]
processors:
batch:
timeout: 200ms
memory_limiter:
limit_mib: {{ .Values.memory_limiter.limit_mib }}
spike_limit_mib: {{ .Values.memory_limiter.spike_limit_mib }}
check_interval: {{ .Values.memory_limiter.check_interval }}
resource:
attributes:
{{- if .Values.include_otel_attributes }}
{{- include "otel_attributes" . | indent 8 }}
{{- end }}
- key: service.group
value: "equinix-metal"
action: insert
exporters:
otlp/traces-honeycomb:
endpoint: "api.honeycomb.io:443"
headers:
"x-honeycomb-team": "${HONEYCOMB_ENV_API_KEY}"
otlp/collector-metrics-honeycomb:
endpoint: "api.honeycomb.io:443"
headers:
"x-honeycomb-team": "${HONEYCOMB_ENV_API_KEY}"
# dataset is required for metrics data
"x-honeycomb-dataset": "collector-metrics"
{{- if .Values.addl_traces_exporter.enabled }}
{{ .Values.addl_traces_exporter.name }}:
endpoint: {{ .Values.addl_traces_exporter.endpoint }}
tls:
{{ .Values.addl_traces_exporter.tls }}
{{- end }}
extensions:
health_check:
endpoint: 0.0.0.0:13133
zpages:
{{- if .Values.memory_ballast.enabled }}
memory_ballast:
size_mib: {{ .Values.memory_ballast.size_mib }}
{{- end }}
service:
{{- if .Values.memory_ballast.enabled }}
extensions: [memory_ballast, health_check, zpages]
{{- else }}
extensions: [health_check, zpages]
{{- end }}
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, resource, batch]
{{- if .Values.addl_traces_exporter.enabled }}
exporters: [otlp/traces-honeycomb, {{ .Values.addl_traces_exporter.name }}]
{{- else }}
exporters: [otlp/traces-honeycomb]
{{- end }}
metrics/collector-metrics:
receivers: [prometheus/collector-metrics]
processors: [memory_limiter, resource, batch]
exporters: [otlp/collector-metrics-honeycomb]