|
|
@ -246,10 +246,10 @@ func (t *target) scrape(timestamp clientmodel.Timestamp, ingester extraction.Ing |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
return err |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
defer resp.Body.Close() |
|
|
|
if resp.StatusCode != http.StatusOK { |
|
|
|
if resp.StatusCode != http.StatusOK { |
|
|
|
return fmt.Errorf("server returned HTTP status %s", resp.Status) |
|
|
|
return fmt.Errorf("server returned HTTP status %s", resp.Status) |
|
|
|
} |
|
|
|
} |
|
|
|
defer resp.Body.Close() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
processor, err := extraction.ProcessorForRequestHeader(resp.Header) |
|
|
|
processor, err := extraction.ProcessorForRequestHeader(resp.Header) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|