Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates alerting docs with new cortex tool loki linting support #2697

Merged
merged 1 commit into from
Sep 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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