VictoriaMetrics/app/vmalert/remotewrite
Aliaksandr Valialkin 476bf400ac
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:05:46 +02:00
..
client_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:45:50 +02:00
client.go app/vmalert: follow-up bc37b279aa 2024-06-20 15:15:58 +02:00
debug_client_test.go vmalert-tool: implement unittest (#4789) 2023-10-16 14:12:06 +02:00
debug_client.go app/vmalert: follow-up bc37b279aa 2024-06-20 15:15:58 +02:00
init_test.go Vmalert tests (#3975) 2023-03-17 16:16:13 -07:00
init.go lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc 2024-07-15 23:05:46 +02:00
remotewrite.go app/vmalert: follow-up bc37b279aa 2024-06-20 15:15:58 +02:00