Skip to content

Implement alerts for cortex services #99

Implement alerts for cortex services

Implement alerts for cortex services #99

Workflow file for this run

name: Check Alerts using Promtool
on:
pull_request:
paths:
- '**/*.rules.yaml'
- '**/*.alerts.yaml'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v5
- name: Get changed rule and alert files
id: changed
uses: tj-actions/changed-files@v46
with:
files: |
**/*.rules.yaml
**/*.alerts.yaml
- name: Install Helm
uses: azure/setup-helm@v4
- name: Check changed rule and alert files via promtool
if: steps.changed.outputs.any_changed == 'true'
uses: peimanja/[email protected]
with:
promtool_actions_subcommand: 'rules'
promtool_actions_files: ${{ steps.changed.outputs.all_changed_files }}
promtool_actions_version: 'latest'
promtool_actions_comment: 'false'