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

feat(otelcol): delete pod annotations #1862

Closed
wants to merge 3 commits into from

Conversation

andrzej-stencel
Copy link
Contributor

@andrzej-stencel andrzej-stencel commented Oct 29, 2021

This pull request improves on #1803 by deleting the annotation attributes before they reach the exporter. This ensures that the annotations are not sent whatever output format is defined in Sumo Logic exporter.

Note that this change uses a functionality in Otel Contrib that is at the moment of writing not merged yet: open-telemetry/opentelemetry-collector-contrib#5750. This change can only be merged when the upstream change is merged and released.

andrzej-stencel and others added 3 commits October 29, 2021 12:56
Narrow down the metadata regexes to explicitly
only match on pod and namespace labels.
This prevents pod annotations from being sent to Sumo,
as they all start with `pod_annotations_`.
@andrzej-stencel andrzej-stencel requested a review from a team as a code owner October 29, 2021 13:04
@andrzej-stencel andrzej-stencel marked this pull request as draft October 29, 2021 13:07
pmalek-sumo pushed a commit to SumoLogic/sumologic-otel-collector that referenced this pull request Dec 2, 2021
pmalek-sumo pushed a commit to SumoLogic/sumologic-otel-collector that referenced this pull request Dec 2, 2021
pmalek-sumo pushed a commit to SumoLogic/sumologic-otel-collector that referenced this pull request Dec 16, 2021
pmalek-sumo pushed a commit to SumoLogic/sumologic-otel-collector that referenced this pull request Dec 16, 2021
pmalek-sumo pushed a commit to SumoLogic/sumologic-otel-collector that referenced this pull request Dec 16, 2021
This PR retrofits upstream PR SumoLogic/sumologic-kubernetes-collection#1862

* docs(k8sprocessor): add exclude to README

* feat(k8sprocessor): remove default exclusion rules
Copy link
Contributor

@sumo-drosiek sumo-drosiek left a comment

Choose a reason for hiding this comment

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

@astencel-sumo As open-telemetry/opentelemetry-collector-contrib#10822 has been merged we can proceed with this PR

@sumo-drosiek sumo-drosiek added this to the v3.0 milestone Nov 25, 2022
@swiatekm
Copy link

Are we sure this is still necessary? It looks like we're dropping the annotations for logs here:

That change was made in the following PR: #2251 @sumo-drosiek am I right here?

@sumo-drosiek
Copy link
Contributor

Yeah, we can close it then

@swiatekm swiatekm deleted the feat-otelcol-delete-pod-annotations branch January 17, 2023 14:50
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