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 --
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 --
telegraf/plugins/inputs/prometheus/kubernetes.go
Line 221 in 901e63e