Browse Source

Merge pull request #2003 from mattbostock/remove_json_from_accept

Scrape: Remove JSON from Accept request header
pull/2004/head
Julius Volz 8 years ago committed by GitHub
parent
commit
06199268b5
  1. 2
      retrieval/scrape.go

2
retrieval/scrape.go

@ -308,7 +308,7 @@ type targetScraper struct {
client *http.Client
}
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,application/json;schema="prometheus/telemetry";version=0.0.2;q=0.2,*/*;q=0.1`
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`
func (s *targetScraper) scrape(ctx context.Context, ts time.Time) (model.Samples, error) {
req, err := http.NewRequest("GET", s.URL().String(), nil)

Loading…
Cancel
Save