Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[discovery] Move continuous discovery config parts to static files #5381

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

dmitryax
Copy link
Contributor

We cannot assume that ${SPLUNK_ACCESS_TOKEN} and ${SPLUNK_REALM} are aways set. It's not the case for the helm chart. We should move static config part of continuous discovery from discoverer to the config files. Having it in the agent_config.yaml has no overhead until the continuous discovery is enabled.

func setEntitiesPipelineReceivers(pipelines map[string]any, discoReceivers []any) {
ep, ok := pipelines["logs/entities"].(map[string]any)
if !ok {
// Entities pipeline not set, nothing to do.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would a log statement make sense here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah makes sense. But we currently don't pass a logger here. I'll address that separately

Copy link
Contributor

@atoulme atoulme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat use of nop, lgtm

We cannot assume that ${SPLUNK_ACCESS_TOKEN} and ${SPLUNK_REALM} are aways set. It's not the case for the helm chart. We should move static config part of continuous discovery from discoverer to the config files. Having it in the `agent_config.yaml` has no overhead until the continuous discovery is enabled.
@dmitryax dmitryax merged commit b05792c into main Sep 17, 2024
236 checks passed
@dmitryax dmitryax deleted the continuous-discovery branch September 17, 2024 21:28
@github-actions github-actions bot locked and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants