mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
2a3a62dc41
vmalert: support configuration file for notifiers * vmalert notifiers now can be configured via file see https://docs.victoriametrics.com/vmalert.html#notifier-configuration-file * add support of Consul service discovery for notifiers config see https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1947 * add UI section for currently loaded/discovered notifiers * deprecate `-rule.configCheckInterval` in favour of `-configCheckInterval` * add ability to suppress logs for duplicated targets for notifiers discovery * change behaviour of `vmalert_alerts_send_errors_total` - it now accounts for failed alerts, not HTTP calls.
114 lines
3.1 KiB
Makefile
114 lines
3.1 KiB
Makefile
# All these commands must run from repository root.
|
|
|
|
vmalert:
|
|
APP_NAME=vmalert $(MAKE) app-local
|
|
|
|
vmalert-race:
|
|
APP_NAME=vmalert RACE=-race $(MAKE) app-local
|
|
|
|
vmalert-prod:
|
|
APP_NAME=vmalert $(MAKE) app-via-docker
|
|
|
|
vmalert-pure-prod:
|
|
APP_NAME=vmalert $(MAKE) app-via-docker-pure
|
|
|
|
vmalert-amd64-prod:
|
|
APP_NAME=vmalert $(MAKE) app-via-docker-amd64
|
|
|
|
vmalert-arm-prod:
|
|
APP_NAME=vmalert $(MAKE) app-via-docker-arm
|
|
|
|
vmalert-arm64-prod:
|
|
APP_NAME=vmalert $(MAKE) app-via-docker-arm64
|
|
|
|
vmalert-ppc64le-prod:
|
|
APP_NAME=vmalert $(MAKE) app-via-docker-ppc64le
|
|
|
|
vmalert-386-prod:
|
|
APP_NAME=vmalert $(MAKE) app-via-docker-386
|
|
|
|
package-vmalert:
|
|
APP_NAME=vmalert $(MAKE) package-via-docker
|
|
|
|
package-vmalert-pure:
|
|
APP_NAME=vmalert $(MAKE) package-via-docker-pure
|
|
|
|
package-vmalert-amd64:
|
|
APP_NAME=vmalert $(MAKE) package-via-docker-amd64
|
|
|
|
package-vmalert-arm:
|
|
APP_NAME=vmalert $(MAKE) package-via-docker-arm
|
|
|
|
package-vmalert-arm64:
|
|
APP_NAME=vmalert $(MAKE) package-via-docker-arm64
|
|
|
|
package-vmalert-ppc64le:
|
|
APP_NAME=vmalert $(MAKE) package-via-docker-ppc64le
|
|
|
|
package-vmalert-386:
|
|
APP_NAME=vmalert $(MAKE) package-via-docker-386
|
|
|
|
publish-vmalert:
|
|
APP_NAME=vmalert $(MAKE) publish-via-docker
|
|
|
|
test-vmalert:
|
|
go test -v -race -cover ./app/vmalert -loggerLevel=ERROR
|
|
go test -v -race -cover ./app/vmalert/datasource
|
|
go test -v -race -cover ./app/vmalert/notifier
|
|
go test -v -race -cover ./app/vmalert/config
|
|
go test -v -race -cover ./app/vmalert/remotewrite
|
|
|
|
run-vmalert: vmalert
|
|
./bin/vmalert -rule=app/vmalert/config/testdata/rules2-good.rules \
|
|
-datasource.url=http://localhost:8428 \
|
|
-notifier.url=http://localhost:9093 \
|
|
-notifier.url=http://127.0.0.1:9093 \
|
|
-remoteWrite.url=http://localhost:8428 \
|
|
-remoteRead.url=http://localhost:8428 \
|
|
-external.label=cluster=east-1 \
|
|
-external.label=replica=a \
|
|
-evaluationInterval=3s \
|
|
-rule.configCheckInterval=10s
|
|
|
|
run-vmalert-sd: vmalert
|
|
./bin/vmalert -rule=app/vmalert/config/testdata/rules2-good.rules \
|
|
-datasource.url=http://localhost:8428 \
|
|
-remoteWrite.url=http://localhost:8428 \
|
|
-notifier.config=app/vmalert/notifier/testdata/consul.good.yaml \
|
|
-configCheckInterval=10s
|
|
|
|
replay-vmalert: vmalert
|
|
./bin/vmalert -rule=app/vmalert/config/testdata/rules-replay-good.rules \
|
|
-datasource.url=http://localhost:8428 \
|
|
-remoteWrite.url=http://localhost:8428 \
|
|
-external.label=cluster=east-1 \
|
|
-external.label=replica=a \
|
|
-replay.timeFrom=2021-05-11T07:21:43Z \
|
|
-replay.timeTo=2021-05-29T18:40:43Z
|
|
|
|
vmalert-amd64:
|
|
CGO_ENABLED=1 GOARCH=amd64 $(MAKE) vmalert-local-with-goarch
|
|
|
|
vmalert-arm:
|
|
CGO_ENABLED=0 GOARCH=arm $(MAKE) vmalert-local-with-goarch
|
|
|
|
vmalert-arm64:
|
|
CGO_ENABLED=0 GOARCH=arm64 $(MAKE) vmalert-local-with-goarch
|
|
|
|
vmalert-ppc64le:
|
|
CGO_ENABLED=0 GOARCH=ppc64le $(MAKE) vmalert-local-with-goarch
|
|
|
|
vmalert-386:
|
|
CGO_ENABLED=0 GOARCH=386 $(MAKE) vmalert-local-with-goarch
|
|
|
|
vmalert-local-with-goarch:
|
|
APP_NAME=vmalert $(MAKE) app-local-with-goarch
|
|
|
|
vmalert-pure:
|
|
APP_NAME=vmalert $(MAKE) app-local-pure
|
|
|
|
vmalert-windows-amd64:
|
|
GOARCH=amd64 APP_NAME=vmalert $(MAKE) app-local-windows-with-goarch
|
|
|
|
vmalert-windows-amd64-prod:
|
|
APP_NAME=vmalert $(MAKE) app-via-docker-windows-amd64
|