VictoriaMetrics/lib/promscrape
Aliaksandr Valialkin a468a6e985
lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc
- Rename GetStatDialFunc to NewStatDialFunc, since it returns new function with every call
- NewStatDialFunc isn't related to http in any way, so it must be moved from lib/httputils to lib/netutil
- Simplify the implementation of NewStatDialFunc by removing sync.Map from there.
- Use netutil.NewStatDialFunc at app/vmauth and lib/promscrape/discoveryutils
- Use gauge instead of counter type for *_conns metric

This is a follow-up for d7b5062917
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/6299
2024-07-15 23:02:34 +02:00
..
discovery all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
discoveryutils lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc 2024-07-15 23:02:34 +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/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc 2024-07-15 23:02:34 +02:00
config.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
config_test.go app/vmagent: add max_scrape_size to scrape config (#6434) 2024-06-20 13:58:42 +02:00
config_timing_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
relabel_debug.go app/vmselect: small cleanup after 4f3f9950d0 2023-05-08 14:57:11 -07:00
scraper.go feature: [vmagent] Add service discovery support for Vultr (#6068) 2024-05-08 10:01:48 +02:00
scrapework.go Revert "Exemplar support (#5982)" 2024-07-03 15:30:21 +02:00
scrapework_test.go lib/promscrape: use prompbmarshal.MustParsePromMetrics function at parseData() test function 2024-07-03 16:08:13 +02:00
scrapework_timing_test.go all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-02 23:16:29 +03:00
targetstatus.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
targetstatus.qtpl app/vmagent: add max_scrape_size to scrape config (#6434) 2024-06-20 13:58:42 +02:00
targetstatus.qtpl.go app/vmagent: add max_scrape_size to scrape config (#6434) 2024-06-20 13:58:42 +02:00