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

[bug] Expected value after metric, got "#" ("INVALID") while parsing: "Resilience_polly_str#" #5847

Open
sumjas opened this issue Sep 19, 2024 · 2 comments
Labels
bug Something isn't working needs-triage New issues which have not been classified or triaged by a community member pkg:OpenTelemetry.Exporter.Prometheus.AspNetCore Issues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package

Comments

@sumjas
Copy link

sumjas commented Sep 19, 2024

Package

OpenTelemetry.Exporter.Prometheus.AspNetCore

Package Version

Package Name Version
OpenTelemetry.Api 1.8.0
OpenTelemetry 1.8.0
TBD TBD

Runtime Version

net6.0

Description

I'm facing a recurring issue in my deployed environments while scraping metrics using Prometheus. The error message reads:
"expected value after metric, got "#" ("INVALID") while parsing: "Resilience_polly_str#"

I'm using Polly library version 8 for resiliency, which internally uses OpenTelemetry for instrumentation. The metrics are being exported using a Prometheus exporter.

Steps to Reproduce

I'm using Polly library version 8 for resiliency, which internally uses OpenTelemetry for instrumentation.
The metrics are being exported using a Prometheus exporter.

Expected Result

It should export the metrics without any error.

Actual Result

"expected value after metric, got "#" ("INVALID") while parsing: "Resilience_polly_str#"

Additional Context

I am also going to raise a ticket with the Polly developer community. Please share the suggestions or workaround for this issue if you have any.

@sumjas sumjas added bug Something isn't working needs-triage New issues which have not been classified or triaged by a community member labels Sep 19, 2024
@github-actions github-actions bot added the pkg:OpenTelemetry.Exporter.Prometheus.AspNetCore Issues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package label Sep 19, 2024
@sumjas
Copy link
Author

sumjas commented Sep 19, 2024

The Prometheus version we are using - v.2.53.0

Here is the error we are seeing.
image

@Kielek
Copy link
Contributor

Kielek commented Sep 19, 2024

I think that you missed one important part of the bug. It is Minimal, Reproducible Example. The same link is available in the bug-wizard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage New issues which have not been classified or triaged by a community member pkg:OpenTelemetry.Exporter.Prometheus.AspNetCore Issues related to OpenTelemetry.Exporter.Prometheus.AspNetCore NuGet package
Projects
None yet
Development

No branches or pull requests

3 participants
@Kielek @sumjas and others