cortex
cortex copied to clipboard
List rules API not honoring exclude_alerts flag
Describe the bug I am consuming the Cortex API implicitly via Amazon Managed Prometheus (AMP).
When I hit /api/v1/rules?exclude_alerts=true I still get the list of active alerts[] array in the response.
According to the prometheus docs, the exclude_alerts should omit this element.
Environment: Amazon Managed Prometheus
Hi @rajagopalanand @rapphil, can you help take a look?
This is a bug in Cortex that needs to get fixed
@yeya24 can you assign this issue to me?