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
cdd17f48
Commit
cdd17f48
authored
Oct 28, 2017
by
pkarmaka
Committed by
Torkel Ödegaard
Oct 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bug Fix] Opentsdb Alias issue (#9613)
parent
43d45f9f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
public/app/plugins/datasource/opentsdb/datasource.js
+3
-2
No files found.
public/app/plugins/datasource/opentsdb/datasource.js
View file @
cdd17f48
...
...
@@ -441,7 +441,7 @@ function (angular, _, dateMath) {
}
function
mapMetricsToTargets
(
metrics
,
options
,
tsdbVersion
)
{
var
interpolatedTagValue
;
var
interpolatedTagValue
,
arrTagV
;
return
_
.
map
(
metrics
,
function
(
metricData
)
{
if
(
tsdbVersion
===
3
)
{
return
metricData
.
query
.
index
;
...
...
@@ -453,7 +453,8 @@ function (angular, _, dateMath) {
return
target
.
metric
===
metricData
.
metric
&&
_
.
every
(
target
.
tags
,
function
(
tagV
,
tagK
)
{
interpolatedTagValue
=
templateSrv
.
replace
(
tagV
,
options
.
scopedVars
,
'pipe'
);
return
metricData
.
tags
[
tagK
]
===
interpolatedTagValue
||
interpolatedTagValue
===
"*"
;
arrTagV
=
interpolatedTagValue
.
split
(
'|'
);
return
_
.
includes
(
arrTagV
,
metricData
.
tags
[
tagK
])
||
interpolatedTagValue
===
"*"
;
});
}
});
...
...
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