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

add optional configuration for prometheus exporter #3777

Merged

Conversation

codeboten
Copy link
Contributor

@codeboten codeboten commented Nov 27, 2023

Changes

The suffix for types and units can be optionally disabled in Prometheus exporters. This PR captures these configuration options to allow them to then be captured by the OpenTelemetry Configuration as well.

The suffix for types and units can be optionally disabled in Prometheus exporters. This PR captures these configuration options to allow them to then be captured by the OpenTelemetry Configuration as well.

Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
Copy link
Contributor

@jmacd jmacd left a comment

Choose a reason for hiding this comment

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

I'm happy with WithUnits() or WithoutUnits() either way.
I've stated my "either way" case as:

  • the existing environment variable spec encourages default=false configurations
  • there are many collector configuration fields today which are default=true (e.g., queue_sender::enabled)

@carlosalberto carlosalberto merged commit 3d60131 into open-telemetry:main Dec 13, 2023
7 checks passed
carlosalberto pushed a commit to carlosalberto/opentelemetry-specification that referenced this pull request Oct 31, 2024
## Changes

The suffix for types and units can be optionally disabled in Prometheus
exporters. This PR captures these configuration options to allow them to
then be captured by the OpenTelemetry Configuration as well.

* [x] Related issues
open-telemetry/opentelemetry-configuration#59
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.

8 participants