Skip to content

Commit bafd56f

Browse files
committed
Adding support for index name
1 parent 8b65bac commit bafd56f

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

workshop/otel-contrib-splunk-demo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ helm delete splunk-otel-collector
2828
cd ~/workshop/otel-contrib-splunk-demo
2929
```
3030

31-
Edit `k8s_manifests/configmap-and-secrets.yaml` and configure `REALM`, `splunk_hec_url`, `k8s_cluster_name`, `deployment_environment`, `splunk_observability_access_token` and `splunk_hec_token`.
31+
Edit `k8s_manifests/configmap-and-secrets.yaml` and configure `REALM`, `splunk_hec_url`, `splunk_index`, `k8s_cluster_name`, `deployment_environment`, `splunk_observability_access_token` and `splunk_hec_token`.
3232

3333
``` bash
3434
kubectl apply -f k8s_manifests/

workshop/otel-contrib-splunk-demo/k8s_manifests/configmap-agent.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ data:
3535
disable_compression: true
3636
endpoint: ${SPLUNK_HEC_URL}
3737
idle_conn_timeout: 10s
38-
index: o11y-demo-eu
38+
index: ${SPLUNK_INDEX}
3939
max_idle_conns: 200
4040
max_idle_conns_per_host: 200
4141
profiling_data_enabled: false

workshop/otel-contrib-splunk-demo/k8s_manifests/configmap-and-secrets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ data:
88
splunk_api_url: "https://api.[REALM].signalfx.com"
99
splunk_ingest_url: "https://ingest.[REALM].signalfx.com"
1010
splunk_hec_url: "https://[HEC_URL]:[HEC_PORT]/services/collector/event"
11+
splunk_index: "[INDEX]"
1112
k8s_cluster_name: "[CLUSTER_NAME]"
1213
deployment_environment: "[ENVIRONMENT]"
1314
---

workshop/otel-contrib-splunk-demo/k8s_manifests/daemonset.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ spec:
132132
secretKeyRef:
133133
name: default-otel-collector
134134
key: splunk_hec_token
135+
- name: SPLUNK_INDEX
136+
valueFrom:
137+
configMapKeyRef:
138+
name: otel-configmap
139+
key: splunk_index
135140
readinessProbe:
136141
httpGet:
137142
path: /

0 commit comments

Comments
 (0)