Replies: 1 comment 1 reply
-
You can use:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What did you do?
Using the great Grafana Observability demo and more specifically
the version I derived from it, I came across an issue that I was unable
to fix in another way than this commit in my prometheus fork of tag v2.28.1
In fact, the issue comes from the fact that using a Consul registry for 'discovering' services targets there may be some issue when having to access metrics on a non standard path.
What I get in the prometheus targets screen is:
If you look into this part of the Consul documentation, you see that it is stated that the Prometheus configuration should be adapted to such cases by adding:
however, considering my current knowledge and proficiency in both Consul and Prometheus, I was not able to make this work with my own
dynamic
config below.What confused me in the first place and therefore led to lots of time spent trying to understand why it worked in Netdata case and not in Consul one can be summarized as follows:
meaning that Netdata is more
clever
than Consul in the sense that it supports both standard URL with the query part but also the encoded one with %3FWhat did you expect to see?
What did you see instead? Under which circumstances?
Environment
see details above in the various repositories
I am pretty much sure that any linux based system would trigger the same behaviour
v2.28.1 (but surely later versions also exhibit this behaviour)
I also fully understand that my fix could also lead to some security issues (URL decoding and reinjection without any checks) and was also considering implementing just a single & simple string replacement of first %3F occurence by ? which would
do the trick without exposing too much to vulnerabilities
Beta Was this translation helpful? Give feedback.
All reactions