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
6c7454fc
Commit
6c7454fc
authored
Sep 18, 2017
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag alert queries that return no_data
parent
bcf78437
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
pkg/cmd/grafana-server/main.go
+1
-0
pkg/services/alerting/engine.go
+9
-0
No files found.
pkg/cmd/grafana-server/main.go
View file @
6c7454fc
...
...
@@ -25,6 +25,7 @@ import (
_
"github.com/grafana/grafana/pkg/tsdb/mqe"
_
"github.com/grafana/grafana/pkg/tsdb/mysql"
_
"github.com/grafana/grafana/pkg/tsdb/opentsdb"
_
"github.com/grafana/grafana/pkg/tsdb/prometheus"
_
"github.com/grafana/grafana/pkg/tsdb/testdata"
)
...
...
pkg/services/alerting/engine.go
View file @
6c7454fc
...
...
@@ -132,6 +132,15 @@ func (e *Engine) processJob(grafanaCtx context.Context, job *Job) error {
span
.
SetTag
(
"alertId"
,
evalContext
.
Rule
.
Id
)
span
.
SetTag
(
"dashboardId"
,
evalContext
.
Rule
.
DashboardId
)
span
.
SetTag
(
"firing"
,
evalContext
.
Firing
)
span
.
SetTag
(
"no_data"
,
evalContext
.
NoDataFound
)
if
evalContext
.
Error
!=
nil
{
ext
.
Error
.
Set
(
span
,
true
)
span
.
LogFields
(
tlog
.
Error
(
evalContext
.
Error
),
tlog
.
String
(
"message"
,
"alerting execution failed"
),
)
}
span
.
Finish
()
close
(
done
)
}()
...
...
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