-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
area/prometheusbugunexpected problem or unintended behaviorunexpected problem or unintended behavior
Milestone
Description
Bug report
Loading the data with telegraf Prometheus input and exporting it with the prometheus output (e.g. haproxy-exporter --[prometheus protocol]--telegraf---[prometheus protocol]---…) yields
- Metric is being renamed to
*_<type>(e.g.haproxy_upbecomeshaproxy_up_gauge) - Type becomes
untyped
Relevant telegraf.conf:
[inputs.prometheus]
urls = ["http://localhost:9127/metrics"]
[outputs.prometheus_client]
listen = "172.22.49.216:9126"
System info:
Tested in
- 1.2.1
- 1.3.0
Steps to reproduce:
- Setup https://github.com/prometheus/haproxy_exporter
- Point telegraf to haproxy_export (prometheus input)
- Setup telegraf output
prometheus_client - See that metrics are renamed after they come out of telegraf.
Expected behavior:
- No rename of metric
- Keep type
Actual behavior:
- Metric is being renamed to
*_<type>(e.g.haproxy_upbecomeshaproxy_up_gauge) - Type becomes
untyped
haproxy exporter gives:
# HELP haproxy_up Was the last scrape of haproxy successful.
# TYPE haproxy_up gauge
haproxy_up 1
Telegraf exports:
# HELP haproxy_up_gauge Telegraf collected metric
# TYPE haproxy_up_gauge untyped
haproxy_up_gauge{host="hostname", url="http://localhost:9127/metrics"} 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/prometheusbugunexpected problem or unintended behaviorunexpected problem or unintended behavior