Exporting Grafana alert rules

Is there a way to export Grafana alert rules? I’d really like to export the yaml or json so that I can add it as a configmap for my setup

Afaik there is no explicit export. You can inspect the json though and copy pasta it from there to your deploy scripts or whatever you use.