Skip to content

Commit

Permalink
updates alerting docs with new cortex tool loki linting support (graf…
Browse files Browse the repository at this point in the history
…ana#2697)

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
  • Loading branch information
owen-d authored and cyriltovena committed Oct 21, 2020
1 parent fb789b8 commit e5b63c1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions docs/sources/alerting/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,22 +199,27 @@ jobs:
sync-loki-alerts:
runs-on: ubuntu-18.04
steps:
- name: Lint Rules
uses: grafana/cortex-rules-action@v0.3.1
env:
ACTION: 'lint'
with:
args: --backend=loki
- name: Diff rules
id: diff-rules
uses: grafana/cortex-rules-action@v0.3.0
uses: grafana/cortex-rules-action@v0.3.1
env:
ACTION: 'diff'
with:
args: --backend=loki
- name: Sync rules
if: ${{ !contains(steps.diff-rules.outputs.detailed, 'no changes detected') }}
uses: grafana/cortex-rules-action@v0.3.0
uses: grafana/cortex-rules-action@v0.3.1
env:
ACTION: 'sync'
with:
args: --backend=loki
- name: Print rules
uses: grafana/cortex-rules-action@v0.3.0
uses: grafana/cortex-rules-action@v0.3.1
env:
ACTION: 'print'
```
Expand Down

0 comments on commit e5b63c1

Please sign in to comment.