-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathotel-contrib-ks8-configmap.yaml
167 lines (167 loc) · 4.4 KB
/
otel-contrib-ks8-configmap.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
162
163
164
165
166
167
apiVersion: v1
data:
relay: |
exporters:
signalfx:
access_token: <REDCATED>
api_url: https://api.us1.signalfx.com
correlation: null
ingest_url: https://ingest.us1.signalfx.com
sync_host_metadata: true
logging:
loglevel: debug
extensions:
health_check: null
k8s_observer:
auth_type: serviceAccount
node: ${K8S_NODE_NAME}
observe_pods: true
observe_nodes: true
memory_ballast:
size_mib: 500
zpages: null
processors:
batch: null
k8sattributes:
auth_type: "serviceAccount"
#auth_type: "kubeConfig"
passthrough: false
extract:
metadata:
- k8s.deployment.name
- k8s.namespace.name
- k8s.node.name
- k8s.pod.name
- k8s.pod.uid
- k8s.pod.start_time
filter:
node_from_env_var: KUBE_NODE_NAME
pod_association:
- sources:
- from: resource_attribute
name: k8s.pod.ip
- sources:
- from: resource_attribute
name: k8s.pod.uid
- sources:
- from: connection
name: ip
- sources:
- from: resource_attribute
name: host.name
memory_limiter:
check_interval: 2s
limit_mib: 500
resource:
attributes:
- action: upsert
key: k8s.cluster.name
value: splunk-k3s-cluster
resource/add_agent_k8s:
attributes:
- action: insert
key: k8s.pod.name
value: ${K8S_POD_NAME}
- action: insert
key: k8s.pod.uid
value: ${K8S_POD_UID}
- action: insert
key: k8s.namespace.name
value: ${K8S_NAMESPACE}
resourcedetection:
detectors:
- env
- system
override: true
timeout: 10s
receivers:
hostmetrics:
collection_interval: 10s
scrapers:
cpu: null
disk: null
load: null
filesystem: null
memory: null
network: null
paging: null
processes: null
k8s_cluster:
collection_interval: 10s
node_conditions_to_report: [Ready, MemoryPressure, DiskPressure, PIDPressure, NetworkUnavailable]
allocatable_types_to_report: [cpu, memory, storage, ephemeral-storage]
metadata_exporters: [signalfx]
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
prometheus/agent:
config:
scrape_configs:
- job_name: otel-agent
scrape_interval: 10s
static_configs:
- targets:
- ${K8S_POD_IP}:8889
receiver_creator:
receivers:
kubeletstats:
rule: type == "k8s.node"
config:
auth_type: serviceAccount
collection_interval: 10s
endpoint: "`endpoint`:`kubelet_endpoint_port`"
insecure_skip_verify: true
extra_metadata_labels:
- container.id
- k8s.volume.type
metric_groups:
- container
- pod
- node
- volume
watch_observers: [k8s_observer]
signalfx:
endpoint: 0.0.0.0:9943
service:
extensions:
- health_check
- k8s_observer
- memory_ballast
- zpages
pipelines:
metrics:
exporters:
- signalfx
- logging
processors:
- memory_limiter
- batch
- resourcedetection
- resource
- k8sattributes
- resource/add_agent_k8s
receivers:
- k8s_cluster
- hostmetrics
- otlp
- receiver_creator
- signalfx
telemetry:
metrics:
address: 0.0.0.0:8889
kind: ConfigMap
metadata:
annotations:
meta.helm.sh/release-name: opentelemetry-collector
meta.helm.sh/release-namespace: default
labels:
app.kubernetes.io/instance: opentelemetry-collector
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: opentelemetry-collector
app.kubernetes.io/version: 0.66.0
helm.sh/chart: opentelemetry-collector-0.40.2
name: opentelemetry-collector-agent
namespace: default