Skip to content

Commit

Permalink
Add splunk_hec exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
roliszewski-equinix committed Nov 8, 2024
1 parent 21752fa commit 316ac55
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
18 changes: 18 additions & 0 deletions templates/opentelemetry-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ data:
tls:
{{ .Values.addl_traces_exporter.tls }}
{{- end }}
{{- if .Values.splunk_hec.enabled }}
splunk_hec:
logs:
token: "{{ .Values.splunk_hec.logs.token }}"
endpoint: "{{ .Values.splunk_hec.logs.endpoint }}"
source: "{{ .Values.splunk_hec.logs.source }}"
sourcetype: "{{ .Values.splunk_hec.logs.sourcetype }}"
log_data_enabled: {{ .Values.splunk_hec.logs.log_data_enabled }}
index: "{{ .Values.splunk_hec.logs.index }}"
tls:
insecure_skip_verify: {{ .Values.splunk_hec.logs.tls.insecure_skip_verify }}
{{- end }}
extensions:
health_check:
Expand Down Expand Up @@ -82,3 +94,9 @@ data:
receivers: [prometheus/collector-metrics]
processors: [memory_limiter, resource, batch]
exporters: [otlp/collector-metrics-honeycomb]
{{- if .Values.splunk_hec.enabled }}
logs:
receivers: [otlp]
processors: [batch]
exporters: [splunk_hec/logs]
{{- end }}
13 changes: 13 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ addl_traces_exporter:
# endpoint: spanmetrics-collector:4317
# tls: "insecure: true"

# allow exporting logs to splunk
splunk_hec:
enabled: false
# logs:
# token: ""
# endpoint: ""
# source: ""
# sourcetype: ""
# log_data_enabled: true
# index: ""
# tls:
# insecure_skip_verify: false

# override in downstream parent chart to deploy ServiceMonitor
# allows Prometheus Operator to scrape metrics
servicemonitor:
Expand Down

0 comments on commit 316ac55

Please sign in to comment.