feat: add optional extra configs for agent and cluster receiver #1330
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Now the chart has defined some configs in the
templates/config
folder, and allow users to override them in theconfig
part of thevalues.yaml
file. For most use cases, it works perfect.However, in our company there are more than 100 k8s clusters and the collector configuration differs here and there across these clusters. At the beginning we maintain the specific configs in each cluster's collector
values.yaml
file, but it quickly becomes a heavy burden. We needtemplating
functionality for these extra configs, but helm doesn't support templating for values at the moment. So we come up with an idea: allow the user provide self-defined configmap as the collector configuration, which will be appended to the running command of the collector container.For example, the command is
/otelcol --config=/conf/relay.yaml
now. If there exists extra configs, it will be/otelcol --config=/conf/relay.yaml --config=/conf-extra/relay.yaml
Link to Splunk idea: <Link to Splunk idea, see https://ideas.splunk.com>
Testing:
Documentation: