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
41125910
Unverified
Commit
41125910
authored
Oct 25, 2018
by
Torkel Ödegaard
Committed by
GitHub
Oct 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13818 from mtanda/cw_stat_template
support template variable in stat field
parents
2b1ab984
08631ea2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
public/app/plugins/datasource/cloudwatch/datasource.ts
+3
-0
No files found.
public/app/plugins/datasource/cloudwatch/datasource.ts
View file @
41125910
...
...
@@ -37,6 +37,9 @@ export default class CloudWatchDatasource {
item
.
namespace
=
this
.
templateSrv
.
replace
(
item
.
namespace
,
options
.
scopedVars
);
item
.
metricName
=
this
.
templateSrv
.
replace
(
item
.
metricName
,
options
.
scopedVars
);
item
.
dimensions
=
this
.
convertDimensionFormat
(
item
.
dimensions
,
options
.
scopedVars
);
item
.
statistics
=
item
.
statistics
.
map
(
s
=>
{
return
this
.
templateSrv
.
replace
(
s
,
options
.
scopedVars
);
});
item
.
period
=
String
(
this
.
getPeriod
(
item
,
options
));
// use string format for period in graph query, and alerting
item
.
id
=
this
.
templateSrv
.
replace
(
item
.
id
,
options
.
scopedVars
);
item
.
expression
=
this
.
templateSrv
.
replace
(
item
.
expression
,
options
.
scopedVars
);
...
...
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