cortex icon indicating copy to clipboard operation
cortex copied to clipboard

List rules API not honoring exclude_alerts flag

Open sirianni opened this issue 1 year ago • 3 comments

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

sirianni avatar May 31 '24 15:05 sirianni

Hi @rajagopalanand @rapphil, can you help take a look?

yeya24 avatar Jun 05 '24 04:06 yeya24

This is a bug in Cortex that needs to get fixed

rajagopalanand avatar Jun 05 '24 19:06 rajagopalanand

@yeya24 can you assign this issue to me?

rapphil avatar Jun 06 '24 06:06 rapphil