You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a JEE application with the Prometheus servlet added to my web.xml file. The metrics work as expected except for when I pass the filter parameter to the /metrics endpoint. The [] characters cause a HTTP Status 400 error.
For example:
/metrics?name[]=jvm_threads_current
HTTP Status 400 – Bad Request
Type Exception Report
Message Invalid character found in the request target [/metrics?name[]=jvm_threads_current ]. The valid characters are defined in RFC 7230 and RFC 3986
Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
Apache Tomcat/10.1.15
I have a JEE application with the Prometheus servlet added to my web.xml file. The metrics work as expected except for when I pass the filter parameter to the /metrics endpoint. The
[]
characters cause a HTTP Status 400 error.For example:
I am following the documentation on this page:
https://prometheus.github.io/client_java/exporters/filter/
I can make it work if I URL Encode the
[]
characters. For example:Perhaps there is no actual issue but the documentation could be updated to show the encoded version.
The text was updated successfully, but these errors were encountered: