What should be the value for CORTEX_ADDRESS when using ruler?


What should I be setting CORTEX_ADDRESS to get cortextool to work as documented on https://grafana.com/docs/loki/latest/alerting/

Tried using the Ruler ingress and I get

FATA[0000] unable to read rules from cortex, requested resource not found

This is what I ran

cortextool rules list --address=https://<ruler uri> --id=<tenant> --backend=loki

This works

curl -H 'X-Scope-OrgID: <tenant>' https://<ruler uri>/api/prom/rules