.gitlab-ci.yml: Run promtool on Prometheus alerting rules (#6344)

* .gitlab-ci.yml: Run promtool on Prometheus alerting rules

Add a CI stage to test the Prometheus alerting rules within
`.maintain/monitoring`.

* .gitlab-ci.yml: Switch Prometheus stage to paritytech/tools image

* .gitlab-ci.yml: Follow http redirects in Prometheus stage

* .gitlab-ci.yml: Fix Prometheus stage promtool folder name
This commit is contained in:
Max Inden
2020-06-16 22:49:01 +02:00
committed by GitHub
parent fb63a7c5bc
commit b4221cc135
+9
View File
@@ -359,6 +359,15 @@ cargo-check-macos:
tags:
- osx
test-prometheus-alerting-rules:
stage: test
image: paritytech/tools:latest
<<: *kubernetes-build
script:
- curl -L https://github.com/prometheus/prometheus/releases/download/v2.19.0/prometheus-2.19.0.linux-amd64.tar.gz --output prometheus.tar.gz
- tar -xzf prometheus.tar.gz
- ./prometheus-*/promtool check rules .maintain/monitoring/alerting-rules/alerting-rules.yaml
#### stage: build
check-polkadot-companion-status: