Noticing false alerts with alert configuring median

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

  • What are you trying to achieve?

setting up alert on metric which evaluates every one min for 0
and alert condition on median of query (B, 5m, now) and is above 100.

since alert condition on median i was hoping to alert only if 3 data points are reached the threshold it triggers alert but it alerts even if one value reached the threshold

  • How are you trying to achieve it?

Through alert config

  • What happened?
    it alerts even if one value reached the threshold

  • What did you expect to happen?
    since alert condition on median i was hoping to alert only if 3 data points are reached the threshold it triggers alert

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

“alert”: {
“alertRuleTags”: {},
“conditions”: [
{
“evaluator”: {
“params”: [
100
],
“type”: “gt”
},
“operator”: {
“type”: “and”
},
“query”: {
“params”: [
“B”,
“5m”,
“now”
]
},
“reducer”: {
“params”: ,
“type”: “median”
},
“type”: “query”
}
],
“executionErrorState”: “keep_state”,
“for”: “0m”,
“frequency”: “1m”,
“handler”: 1,

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

  • Did you follow any online instructions? If so, what is the URL?

any help appreciated