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#" #2295

Open
sumjas opened this issue Sep 19, 2024 · 4 comments
Labels
bug stale Stale issues or pull requests

Comments

@sumjas
Copy link

sumjas commented Sep 19, 2024

Describe the bug

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.

here is the error details
image

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Exception(s) (if any)

No response

Polly version

8.2.1

.NET Version

net6.0

Anything else?

No response

@sumjas sumjas added the bug label Sep 19, 2024
@martincostello
Copy link
Member

Based on our documentation, the metrics that correlate with what you've shared in your screenshot should be resilience.polly.strategy.*.

Is something in your code changing the metric names and corrupting them as part of the Prometheus export process?

If not, we'll need a minimal reproducible example as a GitHub repository that demonstrates the issue you're experiencing so we can look into this further.

@martincostello
Copy link
Member

Also, try upgrading to the latest version (8.4.1) to see if that makes any difference.

@sumjas
Copy link
Author

sumjas commented Sep 19, 2024

@martincostello, we are using only the Polly inbuilt metrics not any custom metrics and no code in the system changes the name of any of these metrics. We are using the OpenTelemetry.Exporters.Promotheus.AspnetCore library. Not sure whether it corrupts the name of the metrics internally, I have also created a bug with OpenTelemetry Dev community. Let's see if we can get some information from them.

I will try to have a minimal reproducible example if that can help.

@github-staff github-staff deleted a comment from nhatlaso1 Sep 23, 2024
Copy link
Contributor

This issue is stale because it has been open for 60 days with no activity. It will be automatically closed in 14 days if no further updates are made.

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

No branches or pull requests

2 participants