-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcluster-receiver-values.yaml
104 lines (101 loc) · 2.53 KB
/
cluster-receiver-values.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
mode: deployment
presets:
clusterMetrics:
enabled: true
extraEnvs:
- name: SPLUNK_ACCESS_TOKEN
valueFrom:
secretKeyRef:
name: otel-secret
key: SPLUNK_ACCESS_TOKEN
- name: SPLUNK_TRACE_URL
valueFrom:
configMapKeyRef:
name: otel-configmap
key: SPLUNK_TRACE_URL
- name: SPLUNK_API_URL
valueFrom:
configMapKeyRef:
name: otel-configmap
key: SPLUNK_API_URL
- name: SPLUNK_INGEST_URL
valueFrom:
configMapKeyRef:
name: otel-configmap
key: SPLUNK_INGEST_URL
- name: K8S_CLUSTER_NAME
valueFrom:
configMapKeyRef:
name: otel-configmap
key: K8S_CLUSTER_NAME
config:
receivers:
jaeger: null
otlp: null
zipkin: null
k8s_cluster:
auth_type: serviceAccount
metadata_exporters:
- signalfx
prometheus/k8s_cluster_receiver:
config:
scrape_configs:
- job_name: otel-k8s-cluster-receiver
scrape_interval: 10s
static_configs:
- targets:
- ${env:MY_POD_IP}:8888
processors:
resource:
attributes:
- action: insert
key: metric_source
value: kubernetes
- action: upsert
key: k8s.cluster.name
value: ${K8S_CLUSTER_NAME}
resource/add_collector_k8s:
attributes:
- action: insert
key: k8s.node.name
value: ${K8S_NODE_NAME}
- 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}
resource/k8s_cluster:
attributes:
- action: insert
key: receiver
value: k8scluster
resourcedetection:
detectors:
- env
- ec2
- system
override: true
timeout: 10s
exporters:
logging: null
# Metrics + Events
signalfx:
access_token: "${SPLUNK_ACCESS_TOKEN}"
api_url: "${SPLUNK_API_URL}"
ingest_url: "${SPLUNK_INGEST_URL}"
service:
pipelines:
traces: null
logs: null
metrics:
receivers: [k8s_cluster]
processors: [memory_limiter, batch, resource, resource/k8s_cluster]
exporters: [signalfx]
metrics/collector:
receivers: [prometheus/k8s_cluster_receiver]
processors: [memory_limiter, batch, resource/add_collector_k8s, resourcedetection, resource]
exporters: [signalfx]