Skip to content

Commit 7f0a8a6

Browse files
[FEATURE] adding annotation discovery preset
Signed-off-by: Nicolas Takashi <nicolas.takashi@coralogix.com>
1 parent a84daec commit 7f0a8a6

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

charts/opentelemetry-collector/templates/NOTES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,7 @@
5757
{{- end }}
5858
{{- end }}
5959
{{- end }}
60+
61+
{{- if and .Values.presets.logsCollection.enabled .Values.presets.annotationDiscovery.logs.enabled }}
62+
{{- fail "[ERROR] logsCollection and annotationDiscovery.logs are mutually exclusive" }}
63+
{{- end }}

charts/opentelemetry-collector/templates/_config.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,13 +612,15 @@ receivers:
612612
enabled: true
613613
default_annotations:
614614
io.opentelemetry.discovery.logs/enabled: true
615+
receivers:
615616
{{- end }}
616617
{{- if .Values.presets.annotationDiscovery.metrics.enabled }}
617618
receiver_creator/metrics:
618619
watch_observers:
619620
- k8s_observer
620621
discovery:
621622
enabled: true
623+
receivers:
622624
{{- end }}
623625
{{- end }}
624626

0 commit comments

Comments
 (0)