-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Provide property to disable exemplar #4572
Comments
Do you want the exemplars to be disabled in Spring Boot or where exactly? |
Within the implementation package of Prometheus metrics. |
|
Obviously different options exists for managing this. However, the proposition for enhancement, is regarding a property flag to control usage of |
The PR you are talking about "just" extended the exemplars support, Micrometer supports Exemplars for a while. Please take a look at Lines 68 to 85 in edc3289
If you use the first two ctors, exemplars support will be disabled. If you use the third ctor and pass a We already have a signal to enable/disable exemplars, I'm not sure why should we make this more complicated with adding an extra (redundant) property. There is also an additional workaround in case you always want to inject something non-null: You can use your own implementation of If you want a property in Spring Boot to not auto-configure Btw I'm not sure if this is an option but if you can make StackDriver asking for the "Prometheus format" not the "OpenMetrics format" ( |
For historical reference. Provided resolution found in: #4875 |
Please describe the feature request.
Provide property to disable exemplar.
Rationale
Accordingly to https://cloud.google.com/stackdriver/docs/managed-prometheus/exemplars#prom-exemplars-gcm -
counters
with exemplars are not supported and ingestion is not possible. This PR (#3996) enables exemplars - however - providing no ability to disable (without additional changes in code). As our client upgraded to Spring Boot 3.2. This upgrade, caused disruption of metrics ingestion, into Managed Prometheus on GCP.Additional context
I do agree on responibility, to ensure Prometheus compatibility, is on Google. However, at the same time, I do not see the additional flexibility to opt-out as something inherently negative.
The text was updated successfully, but these errors were encountered: