VictoriaMetrics/lib/promscrape/discovery/kubernetes
Andrei Baidarov 727bc02a5c
vmagent: set up a timeout for tcp connection establishment during k8s discovery
Previously, default dial timeout was used for kubernetes API server connection.

 This commit changes it for custom dialer used by the all VictoriaMetrics components. It has lower connection timeout (30s by default). 


 Related issue:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7127

---------
Co-authored-by: f41gh7 <nik@victoriametrics.com>
2024-11-25 18:02:09 +01:00
..
testdata lib/promscrape/discovery/kubernetes: follow-up after 0b5c874911 (#2672) 2022-06-01 20:44:45 +02:00
api.go lib/promscrape/discovery/kubernetes: propagate possible errors at newAPIWatcher() to the caller 2023-10-27 20:24:46 +02:00
api_watcher.go vmagent: set up a timeout for tcp connection establishment during k8s discovery 2024-11-25 18:02:09 +01:00
api_watcher_test.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
common_types.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
endpoints.go lib/promscrape/discovery/kubernetes: support kubernetes native sidecars (#7324) 2024-10-24 17:04:12 +02:00
endpoints_test.go lib/promscrape/discovery/kubernetes: support kubernetes native sidecars (#7324) 2024-10-24 17:04:12 +02:00
endpointslice.go lib/promscrape/discovery/kubernetes: support kubernetes native sidecars (#7324) 2024-10-24 17:04:12 +02:00
endpointslice_test.go lib/promscrape/discovery/kubernetes: support kubernetes native sidecars (#7324) 2024-10-24 17:04:12 +02:00
ingress.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:16:42 +02:00
ingress_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
kubeconfig.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:40:50 +02:00
kubeconfig_test.go lib/promscrape/discovery/kubernetes/kubeconfig_test.go: make TestParseKubeConfigSuccess test code easier to follow 2023-10-25 23:17:18 +02:00
kubernetes.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
node.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:16:42 +02:00
node_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
pod.go lib/promscrape/discovery/kubernetes: support kubernetes native sidecars (#7324) 2024-10-24 17:04:12 +02:00
pod_test.go lib/promscrape/discovery/kubernetes: do not generate targets for already terminated pods and containers 2024-01-24 14:57:53 +02:00
pod_timing_test.go all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-25 21:24:03 +02:00
service.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:16:42 +02:00
service_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00