/
traces-gateway-enabled.output.yaml
161 lines (161 loc) · 4.18 KB
/
traces-gateway-enabled.output.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
---
# Source: sumologic/templates/instrumentation/otelcol-instrumentation/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: RELEASE-NAME-sumologic-otelcol-instrumentation
namespace: sumologic
labels:
app: RELEASE-NAME-sumologic-otelcol-instrumentation
chart: "sumologic-%CURRENT_CHART_VERSION%"
release: "RELEASE-NAME"
heritage: "Helm"
data:
otelcol.instrumentation.conf.yaml: |
exporters:
otlphttp/traces:
endpoint: http://RELEASE-NAME-sumologic-traces-gateway.sumologic:4318
sumologic/metrics:
client: k8s_%CURRENT_CHART_VERSION%
compress_encoding: gzip
endpoint: ${SUMO_ENDPOINT_DEFAULT_METRICS_SOURCE}
log_format: text
max_request_body_size: 1048576
metric_format: prometheus
retry_on_failure:
enabled: true
initial_interval: 5s
max_elapsed_time: 120s
max_interval: 30s
sending_queue:
enabled: false
num_consumers: 10
queue_size: 5000
timeout: 5s
extensions:
health_check: {}
memory_ballast:
size_mib: 512
pprof: {}
processors:
batch:
send_batch_max_size: 512
send_batch_size: 256
timeout: 5s
k8s_tagger:
extract:
annotations:
- key: '*'
tag_name: k8s.pod.annotation.%s
labels:
- key: '*'
tag_name: k8s.pod.label.%s
metadata:
- containerId
- containerName
- daemonSetName
- deploymentName
- hostName
- namespace
- nodeName
- podId
- podName
- replicaSetName
- serviceName
- statefulSetName
namespace_labels:
- key: '*'
tag_name: k8s.namespace.label.%s
owner_lookup_enabled: true
passthrough: false
memory_limiter:
check_interval: 5s
limit_percentage: 90
spike_limit_percentage: 20
resource:
attributes:
- action: upsert
key: k8s.cluster.name
value: kubernetes
resourcedetection:
detectors:
- system
override: false
timeout: 10s
source:
annotation_prefix: k8s.pod.annotation.
collector: kubernetes
exclude:
k8s.container.name: '[123+]bar$|xyz'
k8s.host.name: hhh123
k8s.namespace.name: kube\s+
k8s.pod.name: ^foo.*
pod_key: k8s.pod.name
pod_name_key: k8s.pod.pod_name
pod_template_hash_key: k8s.pod.label.pod-template-hash
source_category: '%{k8s.namespace.name}/%{k8s.pod.pod_name}'
source_category_prefix: kubernetes/
source_category_replace_dash: /
source_host: '%{k8s.pod.hostname}'
source_name: '%{k8s.namespace.name}.%{k8s.pod.pod_name}.%{k8s.container.name}'
receivers:
jaeger:
protocols:
grpc:
endpoint: 0.0.0.0:14250
thrift_binary:
endpoint: 0.0.0.0:6832
thrift_compact:
endpoint: 0.0.0.0:6831
thrift_http:
endpoint: 0.0.0.0:14268
opencensus:
endpoint: 0.0.0.0:55678
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
otlp/deprecated:
protocols:
http:
endpoint: 0.0.0.0:55681
zipkin:
endpoint: 0.0.0.0:9411
service:
extensions:
- health_check
- memory_ballast
- pprof
pipelines:
metrics:
exporters:
- sumologic/metrics
processors:
- memory_limiter
- k8s_tagger
- source
- resource
- batch
receivers:
- otlp
- otlp/deprecated
traces:
exporters:
- otlphttp/traces
processors:
- memory_limiter
- k8s_tagger
- source
- resource
- batch
receivers:
- jaeger
- opencensus
- otlp
- otlp/deprecated
- zipkin
telemetry:
logs:
level: info