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

[WiP] Refactoring after #1481 - removing not needed env variables #1540

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pszkamruk-splunk
Copy link
Contributor

Description:
Cleanup and refactor work to prevent code duplication related to setting Kubernetes attributes by using k8sAttributesProcessor for cluster receiver introduced by PR

Once following two PRs will be merged we can merge this one:

We need also decide what to do with resource/add_collector_k8s: link
as this is using env variables which we want to remove, but the functionality of adding additional parameters is covered by k8sattributes/metrics, so probably it is safe to remove resource/add_collector_k8s from configuration

@jvoravong
Copy link
Contributor

jvoravong commented Nov 19, 2024

For resource/add_collector_k8s:

  • Replace this with a k8sattributes processor.
  • Aim to use a single instance of the k8sattributes processor if possible. If required, add a second instance (e.g., k8sattributes/add_collector) for handling collector metrics specifically.

Functional Tests cover internal collector metrics and attributes (e.g., otelcol_exporter_send_failed_spans).

  • Check to see if you can get the functional tests to pass with using only a single k8sattributes processor instance. Add a second processor instance (named something like k8sattributes/add_collector) because the tests failed and it is necessary.

@atoulme
Copy link
Contributor

atoulme commented Dec 10, 2024

sorry, please fix conflicts

@pszkamruk-splunk pszkamruk-splunk changed the title Refactoring after #1481 - removing not needed env variables [WiP] Refactoring after #1481 - removing not needed env variables Dec 12, 2024
…dex from annotation

� Conflicts:
�	helm-charts/splunk-otel-collector/templates/config/_common.tpl
@pszkamruk-splunk pszkamruk-splunk force-pushed the removing-not-needed-env-variables branch from 556fad6 to 88f9bf8 Compare December 12, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants