VictoriaMetrics/lib/promscrape
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
..
discovery lib/promscrape/discovery/kubernetes: propagate possible errors at newAPIWatcher() to the caller 2023-10-27 20:24:46 +02:00
discoveryutils lib/promauth: follow-up for e16d3f5639 2023-10-25 23:19:37 +02:00
testdata lib/promscrape: disable support for service discovery and metrics scrape via http2 2023-07-06 16:03:37 -07:00
client.go lib/promauth: follow-up for e16d3f5639 2023-10-25 23:19:37 +02:00
config_test.go lib/promauth: follow-up for e16d3f5639 2023-10-25 23:19:37 +02:00
config_timing_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
config.go lib/promscrape: properly track the number of updated service discovery routines inside Config.mustRestart() 2023-10-26 00:06:29 +02:00
relabel_debug.go app/vmselect: small cleanup after 4f3f9950d0 2023-05-08 14:57:11 -07:00
scraper.go lib/promauth: follow-up for e16d3f5639 2023-10-25 23:19:37 +02:00
scrapework_test.go lib/promscrape: fix honor_labels behavior (#3739) 2023-02-01 11:21:44 -08:00
scrapework_timing_test.go lib/promscrape: add exported_ prefix to metric names exported by scrape targets if they clash with automatically generated metrics 2022-11-28 18:37:09 -08:00
scrapework.go all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-25 21:24:03 +02:00
statconn_test.go lib/promscrape: do not add a suggestion for enabling TCP6 in error message when the dial address is TCPv4 2023-10-25 17:57:56 -07:00
statconn.go lib/promscrape: do not add a suggestion for enabling TCP6 in error message when the dial address is TCPv4 2023-10-25 17:57:56 -07:00
targetstatus.go lib/promscrape: follow-up after 6aa50ca954 2023-07-20 19:14:33 -07:00
targetstatus.qtpl lib/promscrape: follow-up after 6aa50ca954 2023-07-20 19:14:33 -07:00
targetstatus.qtpl.go lib/promscrape: follow-up after 6aa50ca954 2023-07-20 19:14:33 -07:00