VictoriaMetrics/app/vmalert
Roman Khavronenko 4f0525852f
app/vmalert/datasource: reduce number of allocations when parsing instant responses (#6272)
Allocations are reduced by implementing custom json parser via fastjson
lib.
The change also re-uses `promInstant` object in attempt to reduce number
of
allocations when parsing big responses, as usually happens with heavy
recording rules.

```
name                                old allocs/op  new allocs/op  delta
ParsePrometheusResponse/Instant-10     9.65k ± 0%     5.60k ± 0%   ~     (p=1.000 n=1+1)

```

Signed-off-by: hagen1778 <roman@victoriametrics.com>

---------

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2024-05-15 15:18:33 +02:00
..
config feat: include cluster info in alert CPUThrottlingHigh (#5956) 2024-03-12 14:51:32 +04:00
datasource app/vmalert/datasource: reduce number of allocations when parsing instant responses (#6272) 2024-05-15 15:18:33 +02:00
deployment app/vmalert: include it into the next release 2020-04-28 00:10:12 +03:00
multiarch all: run apk update && apk upgrade in base Alpine Docker image in order to get all the recent security fixes 2023-02-09 14:01:32 -08:00
notifier vmalert: support any status code from the range 200-299 from alertmanager as successful (#6111) 2024-04-16 09:33:11 +02:00
remoteread vmalert: deprecate cmd-line flag -datasource.lookback (#5877) 2024-03-12 16:16:50 +01:00
remotewrite app/vmalert: respect batch size limit for remote write on shutdown (#6039) 2024-03-29 14:27:50 +01:00
rule app/vmalert/rule: reduce number of allocations for getStaleSeries fn (#6269) 2024-05-14 14:43:39 +02:00
static app/vmalert: fix links with anchors in vmalert's UI (#6146) 2024-04-22 15:02:10 +02:00
templates all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-02 23:16:29 +03:00
tpl app/vmalert: show on UI groups error after reload config (#4543) 2023-07-03 14:59:52 +02:00
utils app/vmbackup: support client-side TLS configuration for create/delete snapshot API (#5738) 2024-02-08 15:52:00 +01:00
main_test.go all: use Gauge instead of Counter for *_config_last_reload_successful metrics 2023-12-20 14:23:42 +02:00
main.go all: replace old https://docs.victoriametrics.com/vmalert.html url with the new one - https://docs.victoriametrics.com/vmalert/ 2024-04-18 01:44:12 +02:00
Makefile Add build support for loong64 (#6222) 2024-05-09 14:22:03 +02:00
manager_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
manager.go app/vmalert: fix data race during hot-config reload (#5698) 2024-01-26 22:42:21 +01:00
README.md all: replace old https://docs.victoriametrics.com/vmalert.html url with the new one - https://docs.victoriametrics.com/vmalert/ 2024-04-18 01:44:12 +02:00
replay_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
replay.go all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-25 21:24:03 +02:00
web_test.go all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-02 23:16:29 +03:00
web_types_test.go vmalert-tool: implement unittest (#4789) 2023-10-13 13:54:33 +02:00
web_types.go app/vmalert: support filtering for /api/v1/rule like Prometheus does (#5787) 2024-02-09 14:35:31 +01:00
web.go all: replace old https://docs.victoriametrics.com/vmalert.html url with the new one - https://docs.victoriametrics.com/vmalert/ 2024-04-18 01:44:12 +02:00
web.qtpl app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:07:05 +01:00
web.qtpl.go app/vmalert: follow-up after b60dcbe11f 2024-02-20 13:07:05 +01:00

See vmalert docs here.

vmalert docs can be edited at docs/vmalert.md.