-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Invalid escape sequence in prometheus output #204
Comments
May be related to the old prometheus version. I'm using prometheus version |
I use telegraf to scrape, i get the same error with
|
It seems that OpenMetrics format recommends (SHOULD in the spec) that we escape backslashes It means replacing '' by '\' when formatting the metric. We only do it for the quote char but not backslashes. scaphandre/src/exporters/prometheus.rs Line 197 in 50fea42
|
@bpetit I opened a PR, but would like to have your view on this, feel free to close the PR if you disagree. |
…shes-in-metric-label
Any update on this issue ?
|
I should review the PR next week. Thanks for your contribution on this |
Any update on this issue ? |
Hi, I got the exact same error developing the prometheus pushgateway exporter. A fix is now in dev for this, could you give it a try ? |
Hi ! @dmazhar-cogniance @meepmeep did you get any chance to try the dev branch ? :) |
Closing until someone speaks up :) |
Bug description
Getting an error from prometheus when trying to scrape scaphandre metrics:
text format parsing error in line 46: invalid escape sequence '\u'
The line 46:
To Reproduce
Run scaphandre in prometheus mode and start a process with prometheus invalid escape sequence in the cmdline
Expected behavior
Prometheus consuming metrics
Screenshots
N/A
Environment
uname -r
): 5.10.0-16-amd64dev
, commitf0be7fec728bc1f52c6a36f0ceeebd699b1da8ce
Additional context
N/A
The text was updated successfully, but these errors were encountered: