Cortex datasource: Ruler API not enabled

  • What Grafana version and what operating system are you using?
    9.1.2

  • What are you trying to achieve?
    Configure and use Cortex ruler.
    Use Cortex in

  • How are you trying to achieve it?
    I have a Cortex stack running in production fine.
    Adding a Prometheus datasource http://cortex/prometheus or http://cortex/api/prom
    Having a previously configured alertmanager backend linked with this datasource.

  • What happened?

  • What did you expect to happen?
    Ruler API enabled

  • Can you copy/paste the configuration(s) that you are having problems with?
    no

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    no

  • Did you follow any online instructions? If so, what is the URL?
    I’m limited to 2 links as a new user… I searched the doc and latest/alerting/alerting-rules/rule-list/

I found
https://github.com/grafana/grafana/blob/f3085b1cacef1a7cda5963320f116555b4389fa9/public/app/features/alerting/unified/api/ruler.ts#L97 (I don’t have such a rule)
https://github.com/grafana/grafana/pull/46771#discussion_r839359406

Which make me think Cortex ruler is not supported, but that’s not clear.

I have no idea why I can’t select Cortex when I want to configure alerts, what is supposed to enable it ?

welcome to the community @vincentmiszczak!

I think you’re on the right path here, based on the comment in https://github.com/grafana/grafana/pull/46771#discussion_r841536472

Added an “unsupported” badge and a tooltip to clarify to the user that we do not support rule management with Prometheus.