2020-04-12 13:47:26 +02:00
|
|
|
# All these commands must run from repository root.
|
|
|
|
|
2021-09-07 21:43:37 +02:00
|
|
|
vmalert:
|
2020-04-12 13:47:26 +02:00
|
|
|
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
|
|
|
|
|
2022-02-14 16:28:56 +01:00
|
|
|
vmalert-darwin-amd64-prod:
|
|
|
|
APP_NAME=vmalert $(MAKE) app-via-docker-darwin-amd64
|
|
|
|
|
|
|
|
vmalert-darwin-arm64-prod:
|
|
|
|
APP_NAME=vmalert $(MAKE) app-via-docker-darwin-arm64
|
|
|
|
|
|
|
|
vmalert-windows-amd64-prod:
|
|
|
|
APP_NAME=vmalert $(MAKE) app-via-docker-windows-amd64
|
|
|
|
|
2020-04-12 13:47:26 +02:00
|
|
|
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:
|
2020-05-17 16:12:09 +02:00
|
|
|
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
|
2020-06-01 12:46:37 +02:00
|
|
|
go test -v -race -cover ./app/vmalert/config
|
2021-08-31 11:28:02 +02:00
|
|
|
go test -v -race -cover ./app/vmalert/remotewrite
|
2020-04-12 13:47:26 +02:00
|
|
|
|
|
|
|
run-vmalert: vmalert
|
2020-06-01 12:46:37 +02:00
|
|
|
./bin/vmalert -rule=app/vmalert/config/testdata/rules2-good.rules \
|
2020-05-04 23:51:22 +02:00
|
|
|
-datasource.url=http://localhost:8428 \
|
|
|
|
-notifier.url=http://localhost:9093 \
|
2020-06-29 21:21:03 +02:00
|
|
|
-notifier.url=http://127.0.0.1:9093 \
|
2020-05-13 20:32:21 +02:00
|
|
|
-remoteWrite.url=http://localhost:8428 \
|
|
|
|
-remoteRead.url=http://localhost:8428 \
|
2020-07-28 13:20:31 +02:00
|
|
|
-external.label=cluster=east-1 \
|
|
|
|
-external.label=replica=a \
|
2021-05-25 15:27:22 +02:00
|
|
|
-evaluationInterval=3s \
|
|
|
|
-rule.configCheckInterval=10s
|
2020-04-12 13:47:26 +02:00
|
|
|
|
2022-02-02 13:11:41 +01:00
|
|
|
run-vmalert-sd: vmalert
|
|
|
|
./bin/vmalert -rule=app/vmalert/config/testdata/rules2-good.rules \
|
|
|
|
-datasource.url=http://localhost:8428 \
|
|
|
|
-remoteWrite.url=http://localhost:8428 \
|
2022-04-13 10:50:26 +02:00
|
|
|
-notifier.config=app/vmalert/notifier/testdata/mixed.good.yaml \
|
2022-02-02 13:11:41 +01:00
|
|
|
-configCheckInterval=10s
|
|
|
|
|
2021-06-09 11:20:38 +02:00
|
|
|
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
|
|
|
|
|
2020-04-12 13:47:26 +02:00
|
|
|
vmalert-amd64:
|
2020-07-31 12:42:09 +02:00
|
|
|
CGO_ENABLED=1 GOARCH=amd64 $(MAKE) vmalert-local-with-goarch
|
2020-04-12 13:47:26 +02:00
|
|
|
|
|
|
|
vmalert-arm:
|
2020-07-31 12:42:09 +02:00
|
|
|
CGO_ENABLED=0 GOARCH=arm $(MAKE) vmalert-local-with-goarch
|
2020-04-12 13:47:26 +02:00
|
|
|
|
|
|
|
vmalert-arm64:
|
2020-07-31 12:42:09 +02:00
|
|
|
CGO_ENABLED=0 GOARCH=arm64 $(MAKE) vmalert-local-with-goarch
|
2020-04-12 13:47:26 +02:00
|
|
|
|
|
|
|
vmalert-ppc64le:
|
2020-07-31 12:42:09 +02:00
|
|
|
CGO_ENABLED=0 GOARCH=ppc64le $(MAKE) vmalert-local-with-goarch
|
2020-04-12 13:47:26 +02:00
|
|
|
|
|
|
|
vmalert-386:
|
2020-07-31 12:42:09 +02:00
|
|
|
CGO_ENABLED=0 GOARCH=386 $(MAKE) vmalert-local-with-goarch
|
|
|
|
|
|
|
|
vmalert-local-with-goarch:
|
|
|
|
APP_NAME=vmalert $(MAKE) app-local-with-goarch
|
2020-04-12 13:47:26 +02:00
|
|
|
|
|
|
|
vmalert-pure:
|
|
|
|
APP_NAME=vmalert $(MAKE) app-local-pure
|
2021-03-16 19:49:07 +01:00
|
|
|
|
|
|
|
vmalert-windows-amd64:
|
|
|
|
GOARCH=amd64 APP_NAME=vmalert $(MAKE) app-local-windows-with-goarch
|