You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if a user overrides the discovery section, the exclude_services section won't be included and they would starting be charged by "meta-instrumentation".
We should rework the configuration helm template to keep these values unless the user explicitly indicate to want "meta-instrumentation".
The text was updated successfully, but these errors were encountered:
I had a look at this, but with how the ConfigMap is currently built it is quite difficult to do.
{{- if eq .Values.preset "network" }}{{- if not .Values.config.data.network }}network:
enable: true{{- end }}{{- end }}{{- if eq .Values.preset "application" }}{{- if not .Values.config.data.discovery }}discovery:
services:
- k8s_namespace: .exclude_services:
- exe_path: ".*alloy.*|.*otelcol.*|.*beyla.*"{{- end }}{{- end }}{{- toYaml .Values.config.data | nindent 4}}{{- end }}
The {{- if not .Values.config.data.discovery }} is the cause, but removing this entirely makes two discovery properties to appear in the resulting ConfigMap.
It might be possible to do this cleanly (without introducing breaking changes) by using the merge templating function.
Our default configuration in the helm chart includes:
But if a user overrides the
discovery
section, theexclude_services
section won't be included and they would starting be charged by "meta-instrumentation".We should rework the configuration helm template to keep these values unless the user explicitly indicate to want "meta-instrumentation".
The text was updated successfully, but these errors were encountered: