Skip to content

Prometheus input - uses encoded url from annotations #8008

@vishiy

Description

@vishiy

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 --

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/k8sbugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions