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
519fd8b2
Commit
519fd8b2
authored
Mar 21, 2018
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
graphite: adds more traces for alerting
parent
f1425489
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
pkg/tsdb/graphite/graphite.go
+5
-4
No files found.
pkg/tsdb/graphite/graphite.go
View file @
519fd8b2
...
...
@@ -28,12 +28,9 @@ func NewGraphiteExecutor(datasource *models.DataSource) (tsdb.TsdbQueryEndpoint,
return
&
GraphiteExecutor
{},
nil
}
var
(
glog
log
.
Logger
)
var
glog
=
log
.
New
(
"tsdb.graphite"
)
func
init
()
{
glog
=
log
.
New
(
"tsdb.graphite"
)
tsdb
.
RegisterTsdbQueryEndpoint
(
"graphite"
,
NewGraphiteExecutor
)
}
...
...
@@ -52,6 +49,7 @@ func (e *GraphiteExecutor) Query(ctx context.Context, dsInfo *models.DataSource,
}
for
_
,
query
:=
range
tsdbQuery
.
Queries
{
glog
.
Info
(
"graphite"
,
"query"
,
query
.
Model
)
if
fullTarget
,
err
:=
query
.
Model
.
Get
(
"targetFull"
)
.
String
();
err
==
nil
{
target
=
fixIntervalFormat
(
fullTarget
)
}
else
{
...
...
@@ -79,6 +77,9 @@ func (e *GraphiteExecutor) Query(ctx context.Context, dsInfo *models.DataSource,
span
.
SetTag
(
"target"
,
target
)
span
.
SetTag
(
"from"
,
from
)
span
.
SetTag
(
"until"
,
until
)
span
.
SetTag
(
"datasource_id"
,
dsInfo
.
Id
)
span
.
SetTag
(
"org_id"
,
dsInfo
.
OrgId
)
defer
span
.
Finish
()
opentracing
.
GlobalTracer
()
.
Inject
(
...
...
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