Skip to content

Commit

Permalink
Internal metrics, only if metrics are enabled (signalfx#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme authored Sep 22, 2022
1 parent f008069 commit 64d907d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ service:
{{- end }}
{{- end }}

{{- if or (eq (include "splunk-otel-collector.splunkO11yEnabled" $) "true") (eq (include "splunk-otel-collector.platformMetricsEnabled" $) "true") }}
{{- if and (or (eq (include "splunk-otel-collector.splunkO11yEnabled" $) "true") (eq (include "splunk-otel-collector.platformMetricsEnabled" $) "true")) (or (eq (include "splunk-otel-collector.splunkO11yEnabled" .) "true") (eq (include "splunk-otel-collector.platformMetricsEnabled" $) "true")) }}
# Pipeline for metrics collected about the collector pod itself.
metrics/collector:
receivers: [prometheus/collector]
Expand All @@ -250,7 +250,7 @@ service:
- resourcedetection
- resource/add_cluster_name
exporters:
{{- if (eq (include "splunk-otel-collector.o11yMetricsEnabled" .) "true") }}
{{- if (eq (include "splunk-otel-collector.splunkO11yEnabled" .) "true") }}
- signalfx
{{- end }}
{{- if (eq (include "splunk-otel-collector.platformMetricsEnabled" $) "true") }}
Expand Down

0 comments on commit 64d907d

Please sign in to comment.