OnDemand Clusters grafana dashboard rules for prometheus

I’m trying to get the Ondemand Clusters grafana dashboard rewrite rules into the prometheus.yml. Does anyone have a working example that they could share? In particular, I’m not certain how the rules stanzas shown here:

https://grafana.com/grafana/dashboards/12093-ondemand-clusters/

…can be merged into our existing prometheus.yml; I’ve attempted in the attached file, but no matter where I put the stanzas shown at the URL above, the file doesn’t lint out, and prometheus doesn’t start. Alternatively, if anyone has any tips on how to exorcise yaml, I’m all ears!

Thanks!

-Jeff

prometheus.yml (3.1 KB)

From the prometheus documentation recording rules are a separate file.

You need to specify these separate files in rule_files in your configuration