VictoriaMetrics/lib/promscrape/discovery
Aliaksandr Valialkin 613b545dfd
lib/promscrape/discovery/kubernetes: propagate possible errors at newAPIWatcher() to the caller
This allows substituting FATAL panics with recoverable runtime errors such as missing or invalid TLS CA file
and/or missing/invalid /var/run/secrets/kubernetes.io/serviceaccount/namespace file.
Now these errors are logged instead of PANIC'ing, so they can be fixed by updating the corresponding files
without the need to restart vmagent.

This is a follow-up for 90427abc65
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5243
2023-10-27 20:24:46 +02:00
..
azure lib/promscrape/discovery: close unused HTTP connections to service discovery servers 2023-07-27 14:48:56 -07:00
consul do not print redundant error logs when failed to scrape consul or no… (#5239) 2023-10-27 13:31:55 +08:00
consulagent lib/promscrape/discovery: close unused HTTP connections to service discovery servers 2023-07-27 14:48:56 -07:00
digitalocean all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-25 21:24:03 +02:00
dns lib/promauth: follow-up for e16d3f5639 2023-10-25 23:19:37 +02:00
docker lib/promscrape/discovery: close unused HTTP connections to service discovery servers 2023-07-27 14:48:56 -07:00
dockerswarm lib/promauth: follow-up for e16d3f5639 2023-10-25 23:19:37 +02:00
ec2 Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:16:42 +02:00
eureka lib/promscrape/discovery: close unused HTTP connections to service discovery servers 2023-07-27 14:48:56 -07:00
gce Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:16:42 +02:00
http all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-25 21:24:03 +02:00
kubernetes lib/promscrape/discovery/kubernetes: propagate possible errors at newAPIWatcher() to the caller 2023-10-27 20:24:46 +02:00
kuma lib/promscrape/discovery: close unused HTTP connections to service discovery servers 2023-07-27 14:48:56 -07:00
nomad do not print redundant error logs when failed to scrape consul or no… (#5239) 2023-10-27 13:31:55 +08:00
openstack lib/promauth: follow-up for e16d3f5639 2023-10-25 23:19:37 +02:00
yandexcloud lib/promauth: follow-up for e16d3f5639 2023-10-25 23:19:37 +02:00