Skip to content

expfmt.Decoder rejects an endpoint Prometheus TSD successfully scrapes #118

@vjsamuel

Description

@vjsamuel

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions