|
|
@ -308,7 +308,7 @@ type targetScraper struct { |
|
|
|
client *http.Client |
|
|
|
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) { |
|
|
|
func (s *targetScraper) scrape(ctx context.Context, ts time.Time) (model.Samples, error) { |
|
|
|
req, err := http.NewRequest("GET", s.URL().String(), nil) |
|
|
|
req, err := http.NewRequest("GET", s.URL().String(), nil) |
|
|
|