Creating Alerts

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:

When I press the run queries button, will it give the same error above:

Failed to evaluate queries and expressions: failed to execute conditions: failed to query data: Run out of attempts while querying the server

How could i resolve this weird error? Thing i have done:

  • Changed the ruler config file where “http:localhost:9093” to “http:alertmanager:9093” .
  • Changed the job file on promtail.yml on the server.
  • Changed the evaluate function to different time frames.

Hopefully i could work it out in the future, Help is very much appreciated!

Kind regards,

Elias