Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
057b8a6b
Commit
057b8a6b
authored
Sep 11, 2017
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve error message for timeouts
closes #9220
parent
e5f84484
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
pkg/services/alerting/conditions/query.go
+6
-0
No files found.
pkg/services/alerting/conditions/query.go
View file @
057b8a6b
...
@@ -5,6 +5,8 @@ import (
...
@@ -5,6 +5,8 @@ import (
"strings"
"strings"
"time"
"time"
gocontext
"context"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/components/null"
"github.com/grafana/grafana/pkg/components/null"
"github.com/grafana/grafana/pkg/components/simplejson"
"github.com/grafana/grafana/pkg/components/simplejson"
...
@@ -112,6 +114,10 @@ func (c *QueryCondition) executeQuery(context *alerting.EvalContext, timeRange *
...
@@ -112,6 +114,10 @@ func (c *QueryCondition) executeQuery(context *alerting.EvalContext, timeRange *
resp
,
err
:=
c
.
HandleRequest
(
context
.
Ctx
,
req
)
resp
,
err
:=
c
.
HandleRequest
(
context
.
Ctx
,
req
)
if
err
!=
nil
{
if
err
!=
nil
{
if
err
==
gocontext
.
DeadlineExceeded
{
return
nil
,
fmt
.
Errorf
(
"Alert execution exceeded the timeout"
)
}
return
nil
,
fmt
.
Errorf
(
"tsdb.HandleRequest() error %v"
,
err
)
return
nil
,
fmt
.
Errorf
(
"tsdb.HandleRequest() error %v"
,
err
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment