VictoriaMetrics/lib/promscrape/discovery/kubernetes
Aliaksandr Valialkin ecd782c75e
app/vmagent: follow-up for b3b29ba6ac
- Automatically reload changed TLS root CA pointed by -remoteWrite.tlsCAFile command-line flag
- Automatically reload changed TLS root CA configured via oauth2.tsl_config.ca_file option at -promscrape.config
- Document the change as a feature instead of a bug at docs/CHANGELOG.md
- Simplify the code at lib/promauth, which is responsible for reloading changed TLS root CA files.
- Simplify the usage of lib/promauth.Config.NewRoundTripper() - now it accepts the base http.Transport
  instead of a callback, which can change the internal http.Transport.
- Reuse the default tls config if lib/promauth.Config doesn't contain tls-specific configs.
  This should reduce memory usage a bit when tls isn't used for scraping big number of targets.
- Do not re-read TLS root CA files on every processed request. Re-read them once per second.
  This should reduce CPU usage when scraping big number of targets over https.
- Do not store cert.pem and key.pem files in TestTLSConfigWithCertificatesFilesUpdate, since they can be loaded
  from byte slices via crypto/tls.X509KeyPair().
- Remove obsolete comparisons of string representations for authConfig and proxyAuthConfig at areEqualScrapeConfigs().

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5725
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5526
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2171
2024-04-04 01:26:38 +03:00
..
testdata lib/promscrape/discovery/kubernetes: follow-up after 0b5c874911 (#2672) 2022-06-04 01:11:23 +03:00
api_watcher_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
api_watcher.go app/vmagent: follow-up for b3b29ba6ac 2024-04-04 01:26:38 +03:00
api.go lib/promscrape/discovery/kubernetes: propagate possible errors at newAPIWatcher() to the caller 2023-10-27 20:27:58 +02:00
common_types.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
endpoints_test.go lib/promscrape/discovery/kubernetes: follow-up for d5e94721db (#4255) 2023-05-09 21:29:27 -07:00
endpoints.go lib/promscrape/discovery/kubernetes: do not generate targets for already terminated pods and containers 2024-01-24 14:58:51 +02:00
endpointslice_test.go lib/promscrape/discovery/kubernetes: follow-up for d5e94721db (#4255) 2023-05-09 21:29:27 -07:00
endpointslice.go lib/promscrape/discovery/kubernetes: do not generate targets for already terminated pods and containers 2024-01-24 14:58:51 +02:00
ingress_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
ingress.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:25:49 +02:00
kubeconfig_test.go lib/promscrape/discovery/kubernetes/kubeconfig_test.go: make TestParseKubeConfigSuccess test code easier to follow 2023-10-26 09:54:40 +02:00
kubeconfig.go all: allow dynamically reading *AuthKey flag values from files and urls 2024-01-22 01:23:23 +02:00
kubernetes.go lib/promscrape/discovery/kubernetes: add -promscrape.kubernetes.attachNodeMetadataAll command-line flag 2024-01-22 01:08:52 +02:00
node_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
node.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:25:49 +02:00
pod_test.go lib/promscrape/discovery/kubernetes: do not generate targets for already terminated pods and containers 2024-01-24 14:58:51 +02:00
pod_timing_test.go all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-26 09:44:40 +02:00
pod.go lib/promscrape/discovery/kubernetes: typo fix in the comment for ContainerStateTerminated struct 2024-01-24 15:10:47 +02:00
service_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
service.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:25:49 +02:00