VictoriaMetrics/lib/promscrape/discovery
Aliaksandr Valialkin 967d5496cf
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:27:35 +03: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
hetzner lib/promscrape/discovery/hetzner: follow-up after 03a97dc678 2024-01-20 17:01:53 +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 app/vmagent: follow-up for b3b29ba6ac 2024-04-04 01:27:35 +03:00
kuma lib/promscrape/discovery/kuma: add support for client_id option 2024-02-18 19:19:40 +02: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 app/vmagent: follow-up for b3b29ba6ac 2024-04-04 01:27:35 +03:00
yandexcloud app/vmagent: follow-up for b3b29ba6ac 2024-04-04 01:27:35 +03:00