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

[telemetry] rename memorylimiter metrics to include memory_limiter infix #11280

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

JamieDanielson
Copy link
Member

@JamieDanielson JamieDanielson commented Sep 25, 2024

Description

Deprecated metrics used exclusively in memory limiter processor now have an infix of memory_limiter. For example, otelcol_processor_accepted_spans is now otelcol_processor_memory_limiter_accepted_spans.

Some tests also got formatting updates during the make generate and make mdatagen-test steps, happy to remove them if preferred.
Edit: 🤔 Actually that seems to fail tests, so I've reverted those changes. I saw the suggestion to run mdatagen-test in the mdatagen README, but maybe that should be updated (and/or changes made to prevent the formatting change?)

Link to tracking issue

Documentation

Auto-generated documentation has been updated

* deprecated metrics used exclusively in
memory limiter processor now have an
infix of `memory_limiter`.
* metrics were properly updated in generated
files. The change in the test file is a linting
thing, ordering alphabetically. I left as it was
a result of the make command but it can be
removed if necessary.
@@ -30,7 +30,7 @@ telemetry:
value_type: int
monotonic: true

processor_accepted_spans:
processor_memory_limiter_accepted_spans:
Copy link
Contributor

Choose a reason for hiding this comment

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

These metrics will need to be moved to the memorylimiter's metadata configuration https://github.com/open-telemetry/opentelemetry-collector/blob/main/processor/memorylimiterprocessor/metadata.yaml

With the existing metrics staying deprecated for another few versions in the processorhelper

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah yep makes sense. I'm going to put this back to draft to make updates

Copy link
Member

Choose a reason for hiding this comment

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

Please build your PR on top of #11289, since we want to remove the deprecated funcs and also starts the "metadata" part.

@JamieDanielson JamieDanielson marked this pull request as draft September 25, 2024 21:38
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Oct 13, 2024
@JamieDanielson
Copy link
Member Author

Sorry y'all this fell off my radar, will pick it back up this week.

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rename deprecated metrics
3 participants