#!/bin/sh

kubectl get prometheusrules.monitoring.coreos.com -A -o json | jq '.items[].spec.groups[].rules[].alert' --raw-output | grep -v 'null' | sort | uniq