Nikolay Khramchikhin
|
7f96712b38
|
Adds dockerswarm sd (#818)
* adds dockerswarm service discovery
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/656
Following roles supported: services, tasks and nodes.
Basic, token and tls auth supported.
Added tests for labels generation.
* added unix socket support to discovery utils
Co-authored-by: Aliaksandr Valialkin <valyala@gmail.com>
|
2020-10-12 16:13:58 +03:00 |
|
Aliaksandr Valialkin
|
1724cc241e
|
lib/promscrape: properly retry requests on the server closed connection before returning the first response byte error during service discover API calls and target scrapes
|
2020-08-13 22:32:29 +03:00 |
|
Aliaksandr Valialkin
|
d962568e93
|
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:33:46 +03:00 |
|
Aliaksandr Valialkin
|
62e1908986
|
lib/promscrape: reduce default value for -promscrape.discovery.concurrency from 500 to 100
This should reduce load on Kubernetes API server and Consul when big number of targets are discovered
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/574
|
2020-06-20 17:53:48 +03:00 |
|
Aliaksandr Valialkin
|
73ec5cf460
|
lib/promscrape: add -promscrape.discovery.concurrency and -promscrape.discovery.concurrentWaitTime flags for tuning the number of concurrent requests to autodiscovery API servers at Consul or Kubernetes
|
2020-05-19 17:35:59 +03:00 |
|
Aliaksandr Valialkin
|
89aa6dbf56
|
lib/promscrape: add Prometheus-compatible service discovery for Consul aka consul_sd_configs
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/330
|
2020-05-04 20:53:06 +03:00 |
|
Aliaksandr Valialkin
|
de5f923476
|
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:29:03 +03:00 |
|