-
Notifications
You must be signed in to change notification settings - Fork 342
expfmt.Decoder rejects an endpoint Prometheus TSD successfully scrapes #118
Description
Commit used:
prometheus/common: HEAD
prometheus/prometheus: HEAD
The common module of prometheus is used by elastic/beats https://github.com/elastic/beats/blob/master/metricbeat/helper/prometheus.go#L27 to do scraping of prometheus end points. The following endpoint which comes from envoyproxy https://github.com/envoyproxy/envoy/blob/master/source/server/http/admin.cc :
https://gist.githubusercontent.com/vjsamuel/5898d02f8039d8d1bae4d8642182d1c3/raw/deff0c16f746bb2ab7a959c4d5ed9856d17c425d/gistfile1.txt
is successfully scraped by the prometheus TSD and fails to be decoded by the Decoder with error:
text format parsing error in line 9: second TYPE line for metric name "envoy_listener_http_downstream_rq_xx", or TYPE reported after samples
Can there be consistency in the common module with the scraper module in prometheus TSD?