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
When using Prometheus service discovery configuration in Kubernetes along with some relabel configs for the address, the parameters in the target are decoded, example: http://metrics_exporter.namespace:7979/probe?module=default&target=X.X.X.X%3A5000%2Fv1%2Fmetrics
This is causing the following errors in Prometheus and the exporter:
Get "http://metrics_exporter.namespace:7979/probe?module=default&target=X.X.X.X%3A5000%2Fv1%2Fmetrics": EOF
Hello,
When using Prometheus service discovery configuration in Kubernetes along with some relabel configs for the address, the parameters in the target are decoded, example:
http://metrics_exporter.namespace:7979/probe?module=default&target=X.X.X.X%3A5000%2Fv1%2Fmetrics
This is causing the following errors in Prometheus and the exporter:
JSON exporter:
Looking at the FetchJSON function, this is expecting the URL to be a regular string https://github.com/prometheus-community/json_exporter/blob/master/exporter/util.go#L162-L217, but in some uses cases, the URL must be decoded first, so ideally the QueryUnescape function should be used for those scenarios.
Thanks.
The text was updated successfully, but these errors were encountered: