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

Refactoring after #1481 - removing not needed env variables #1540

Open
wants to merge 10 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.

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.

2 participants