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

pkg/otlp/metrics: add remapping code #101

Merged
merged 6 commits into from
Jun 16, 2023
Merged

pkg/otlp/metrics: add remapping code #101

merged 6 commits into from
Jun 16, 2023

Conversation

gbbr
Copy link
Contributor

@gbbr gbbr commented Jun 14, 2023

This change adds the processing code for extracting Datadog metrics from container.* and system.* metrics with the intention of centralising this logic to be re-used in the backend intake.

The operation is restricted by the newly added WithRemapping translator configuration option, so that it does not affect the translator's usage as part of the Datadog Agent, where no remapping is necessary because the agent creates the necessary metrics.

Closes #102

@gbbr gbbr force-pushed the gbbr/remap-metrics branch 5 times, most recently from 4994488 to 7a2cad7 Compare June 14, 2023 11:23
@gbbr gbbr marked this pull request as ready for review June 15, 2023 09:37
@gbbr gbbr requested a review from a team as a code owner June 15, 2023 09:37
@gbbr gbbr requested review from IbraheemA and mx-psi June 15, 2023 09:37
@gbbr
Copy link
Contributor Author

gbbr commented Jun 15, 2023

I guess this is ready for review and fully tested now, but there seems to have been a breaking change in a dependency which is causing the CI to fail oddly.

@mx-psi
Copy link
Member

mx-psi commented Jun 15, 2023

I guess this is ready for review and fully tested now, but there seems to have been a breaking change in a dependency which is causing the CI to fail oddly.

I think it will be fixed once you rebase/merge main

gbbr added 2 commits June 15, 2023 14:16
This change adds the processing code for extracting Datadog metrics from
container.* and system.* metrics with the intention of centralising this
logic to be re-used in the backend intake.

The operation is restricted by the newly added WithRemapping translator
configuration option, so that it does not affect the translator's usage as part
of the Datadog Agent, where no remapping is necessary because the agent
creates the necessary metrics.
@gbbr gbbr requested a review from songy23 June 16, 2023 07:52
@gbbr gbbr enabled auto-merge (squash) June 16, 2023 08:28
@gbbr gbbr merged commit 398ee5f into main Jun 16, 2023
6 checks passed
@gbbr gbbr deleted the gbbr/remap-metrics branch June 16, 2023 08:36
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.

pkg/otlp/metrics: move remapping code from exporter
3 participants