VictoriaMetrics/app/vmalert/remotewrite
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
..
client.go app/vmalert: follow-up bc37b279aa 2024-06-20 15:12:53 +02:00
client_test.go app/vmalert: switch from table-driven tests to f-tests 2024-07-12 22:41:11 +02:00
debug_client.go app/vmalert: follow-up bc37b279aa 2024-06-20 15:12:53 +02:00
debug_client_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
init.go lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc 2024-07-15 23:02:34 +02:00
init_test.go Vmalert tests (#3975) 2023-03-17 15:57:24 +01:00
remotewrite.go app/vmalert: follow-up bc37b279aa 2024-06-20 15:12:53 +02:00