Skip to content
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

Prometheus input - uses encoded url from annotations #8008

Closed
vishiy opened this issue Aug 20, 2020 · 1 comment · Fixed by #9662
Closed

Prometheus input - uses encoded url from annotations #8008

vishiy opened this issue Aug 20, 2020 · 1 comment · Fixed by #9662
Labels
area/k8s bug unexpected problem or unintended behavior

Comments

@vishiy
Copy link
Contributor

vishiy commented Aug 20, 2020

Relevant telegraf.conf:

Add prometheus annotation like below for your pod with path containing a query string
"prometheus.io/path": "/v1/agent/metrics?format=prometheus"

System info:

latest, ubuntu 16

See the plugin making calls as http://10.x.x.x:80/v1/agent/metrics%3Fformat=prometheus which results in an error.

Expected behavior:

use decoded uri instead of encoded one

Actual behavior:

usincurrently encoded uri

Additional info:

url.String() is the problem --

@vishiy vishiy added the bug unexpected problem or unintended behavior label Aug 20, 2020
@vishiy
Copy link
Contributor Author

vishiy commented Feb 16, 2021

Hi, any update on this bug ? When can we expect this to go out ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/k8s bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants