forked from grafana/loki
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates alerting docs with new cortex tool loki linting support (graf…
…ana#2697) Signed-off-by: Cyril Tovena <[email protected]>
- Loading branch information
1 parent
fb789b8
commit e5b63c1
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,22 +199,27 @@ jobs: | |
sync-loki-alerts: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Lint Rules | ||
uses: grafana/[email protected] | ||
env: | ||
ACTION: 'lint' | ||
with: | ||
args: --backend=loki | ||
- name: Diff rules | ||
id: diff-rules | ||
uses: grafana/[email protected] | ||
uses: grafana/[email protected] | ||
env: | ||
ACTION: 'diff' | ||
with: | ||
args: --backend=loki | ||
- name: Sync rules | ||
if: ${{ !contains(steps.diff-rules.outputs.detailed, 'no changes detected') }} | ||
uses: grafana/[email protected].0 | ||
uses: grafana/[email protected].1 | ||
env: | ||
ACTION: 'sync' | ||
with: | ||
args: --backend=loki | ||
- name: Print rules | ||
uses: grafana/[email protected].0 | ||
uses: grafana/[email protected].1 | ||
env: | ||
ACTION: 'print' | ||
``` | ||
|