mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 22:19:40 -08:00
Fix the accept header.
A '/' is a separator and has to be in a quoted string. Change-Id: If7a3a847f84f8f709074d05dc98b5b21e954030c
This commit is contained in:
parent
f739980dfe
commit
943a939c29
|
@ -227,7 +227,7 @@ func (t *target) StopScraper() {
|
||||||
t.stopScraper <- true
|
t.stopScraper <- true
|
||||||
}
|
}
|
||||||
|
|
||||||
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,application/json;schema="prometheus/telemetry";version=0.0.2;q=0.2,*/*;q=0.1`
|
||||||
|
|
||||||
func (t *target) scrape(ingester extraction.Ingester) (err error) {
|
func (t *target) scrape(ingester extraction.Ingester) (err error) {
|
||||||
timestamp := clientmodel.Now()
|
timestamp := clientmodel.Now()
|
||||||
|
|
Loading…
Reference in a new issue