Fwd: Avoid double encoding of special characters in metrics_path

6 views
Skip to first unread message

Marco Ferrari

unread,
Jan 7, 2021, 10:29:37 AM1/7/21
to promethe...@googlegroups.com
Hi all!

I'm using Prometheus (via opentelemetry-collector) to scrape metrics in a URL that has to have a %2F in it's URL. The %2F encoding sequence gets encoded to %252F.

Example:

metrics_path: /path/to%2Fmetrics gets encoded to /path/to%252Fmetrics

The %2F has a semantic meaning, so I cannot pre-process it to convert it to a /

Is there anything I can do to avoid this? Tried the most obvious escape characters but none worked.

Thanks!

Marco
Reply all
Reply to author
Forward
0 new messages