Aliaksandr Valialkin
|
d5dddb0953
|
all: use %w instead of %s for wrapping errors in fmt.Errorf
This will simplify examining the returned errors such as httpserver.ErrorWithStatusCode .
See https://blog.golang.org/go1.13-errors for details.
|
2020-06-30 23:05:11 +03:00 |
|
Aliaksandr Valialkin
|
68928bf3df
|
lib/promscrape/discovery/gce: discover per-zone instances for gce_sd_config in parallel. This should reduce discovery latency
|
2020-05-06 15:00:09 +03:00 |
|
Aliaksandr Valialkin
|
218e566647
|
lib/promscrape: move common code for discovery api config map handling into discoveryutils
|
2020-05-04 20:51:01 +03:00 |
|
Aliaksandr Valialkin
|
5ec036439d
|
lib/promscrape: set 30 seconds timeout for discovery api requests
Previously such requests could hang for long time. This could make debugging harder.
|
2020-04-29 17:33:34 +03:00 |
|
Aliaksandr Valialkin
|
95942f1ac6
|
lib/promscrape/discovery/gce: make golangci-lint happy
|
2020-04-27 19:28:10 +03:00 |
|
Aliaksandr Valialkin
|
de59703a16
|
lib/promscrape/discovery/gce: properly set filter query arg in api url
|
2020-04-27 16:01:17 +03:00 |
|
Aliaksandr Valialkin
|
0224071ebe
|
lib/promscrape/discovery/gce: allow empty project and zone for gce_sd_config
|
2020-04-27 11:45:02 +03:00 |
|
Aliaksandr Valialkin
|
6954d0edb7
|
lib/promscrape/discovery/gce: allow empty zone arg in gce_sd_config - in this case zones for the given project are automatically discovered
|
2020-04-26 14:34:11 +03:00 |
|
Aliaksandr Valialkin
|
7b8008e0bd
|
lib/promscrape/discovery/gce: make golint happy by ignoring resp.Body.Close() result
|
2020-04-24 18:13:09 +03:00 |
|
Aliaksandr Valialkin
|
9ef5935552
|
lib/promscrape: initial implementation for gce_sd_configs aga Prometheus-compatible service discovery for Google Compute Engine
|
2020-04-24 17:51:22 +03:00 |
|