When I try to create Alert rule I get the following error:
Failed to evaluate queries and expressions: failed to execute conditions: failed to query data: Run out of attempts while querying the server.
But when I try to run the same thing in Grafana Explore I get nice output which shows everything I need. Why can’t same be accomplished while creating rules?
This was very much helpful, however, while creating the Alert rule from the panel using the above provided metric query I get the following Health errors
Invalid format of evaluation results for the alert definition A: looks like time-series data, only reduced data can be alerted on.
Failed to query data: run out of attempts while querying data.
For the first error, I changed Query Type and defined time range but the second one doesn’t seem to be gone away even though I tried all the combinations with alerting if all values are null or no data received.
Yes, I am focusing on Grafana alerts as Loki/Cortex rules can’t be defined. I facing the same problems as reported here, If Cortex/Loki managed alert Rule type is selected there is no data sources to select alongside even though Loki is added as Datasource.
But technically rules (written in yaml format) placed in Loki container and ruler configured to send alerts to Alertmanager would need to work without even using Grafana right?
HI all, I have this error now for a couple of days and I stil have no clue why it is giving this error. I have the following dashboard where the log files are displayed at the top and a timeseries of that log file where the word “Scheduler” is looked for. I need to build an alert on this time series model, which will give an alert when the amount the word “Scheduler” is below 6 in one hour. Underneath a picture:
At this picture you could see that the data import is working of the job. When i click on the time series picture and try to make an alert. I end up in the alert page. underneath a picture: