Hi there, I’m running Grafana 4.3.1 inside a docker container in an AWS instance. This is connecting to a Prometheus instance using a ‘proxy’ connection. I have setup alerts and I can often see them firing, with the error message “Could not find datasource”.
However, if I go to the command-line and repeatedly fire curl requests against the Prometheus endpoint I never have any problems so I’m not sure what the issue is here. I also noticed that I cannot connect to the same backend using a ‘direct’ connection. Would this have any bearing on this? Do alerts not work if I use a ‘direct’ connection type?
The errors I see in the logs are like the following:
{“log”:“t=2017-09-22T13:31:16+0000 lvl=dbug msg=“Job Execution completed” logger=alerting.engine timeMs=72.716 alertId=1207 name=“Total CPU Limits vs Requests alert” firing=false\n”,“stream”:“stdout”,“time”:“2017-09-22T13:31:16.197509513Z”}
{“log”:“t=2017-09-22T13:32:08+0000 lvl=dbug msg=“Scheduler: Putting job on to exec queue” logger=alerting.scheduler name=“Total CPU Limits vs Requests alert” id=1207\n”,“stream”:“stdout”,“time”:“2017-09-22T13:32:08.123768657Z”}
{“log”:“t=2017-09-22T13:32:08+0000 lvl=dbug msg=“Scheduler: Putting job on to exec queue” logger=alerting.scheduler name=“Total CPU Limits vs Requests alert” id=1206\n”,“stream”:“stdout”,“time”:“2017-09-22T13:32:08.124005873Z”}
{“log”:“t=2017-09-22T13:32:08+0000 lvl=eror msg=“Alert Rule Result Error” logger=alerting.evalHandler ruleId=1207 name=“Total CPU Limits vs Requests alert” error=“Could not find datasource” changing state to=alerting\n”,“stream”:“stdout”,“time”:“2017-09-22T13:32:08.153675027Z”}
{“log”:“t=2017-09-22T13:32:08+0000 lvl=eror msg=“Alert Rule Result Error” logger=alerting.evalHandler ruleId=1206 name=“Total CPU Limits vs Requests alert” error=“Could not find datasource” changing state to=alerting\n”,“stream”:“stdout”,“time”:“2017-09-22T13:32:08.157802517Z”}
{“log”:“t=2017-09-22T13:32:09+0000 lvl=dbug msg=“Job Execution completed” logger=alerting.engine timeMs=27.401 alertId=1207 name=“Total CPU Limits vs Requests alert” firing=true\n”,“stream”:“stdout”,“time”:“2017-09-22T13:32:09.617459283Z”}
Any ideas on what the issue might be appreciated, thanks.