Skip to content

Commit

Permalink
Accept any media type in the prometheus input (influxdata#6745)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Dec 3, 2019
1 parent aae6c4c commit 87c5b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/influxdata/telegraf/plugins/inputs"
)

const acceptHeader = `application/vnd.google.protobuf;proto=io.prometheus.client.MetricFamily;encoding=delimited;q=0.7,text/plain;version=0.0.4;q=0.3`
const acceptHeader = `application/vnd.google.protobuf;proto=io.prometheus.client.MetricFamily;encoding=delimited;q=0.7,text/plain;version=0.0.4;q=0.3,*/*;q=0.1`

type Prometheus struct {
// An array of urls to scrape metrics from.
Expand Down

0 comments on commit 87c5b5f

Please sign in to comment.