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
b989e2ce
Commit
b989e2ce
authored
Mar 11, 2016
by
Mitsuhiro Tanda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fix
parent
25f08ddd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
public/app/plugins/datasource/cloudwatch/datasource.js
+2
-2
No files found.
public/app/plugins/datasource/cloudwatch/datasource.js
View file @
b989e2ce
...
@@ -209,7 +209,7 @@ function (angular, _, moment, dateMath, CloudWatchAnnotationQuery) {
...
@@ -209,7 +209,7 @@ function (angular, _, moment, dateMath, CloudWatchAnnotationQuery) {
if
(
ec2InstanceAttributeQuery
)
{
if
(
ec2InstanceAttributeQuery
)
{
region
=
templateSrv
.
replace
(
ec2InstanceAttributeQuery
[
1
]);
region
=
templateSrv
.
replace
(
ec2InstanceAttributeQuery
[
1
]);
var
filterJson
=
JSON
.
parse
(
templateSrv
.
replace
(
ec2InstanceAttributeQuery
[
3
]));
var
filterJson
=
JSON
.
parse
(
templateSrv
.
replace
(
ec2InstanceAttributeQuery
[
3
]));
var
filter
=
_
.
map
(
filterJson
,
function
(
values
,
name
)
{
var
filter
s
=
_
.
map
(
filterJson
,
function
(
values
,
name
)
{
return
{
return
{
Name
:
name
,
Name
:
name
,
Values
:
values
Values
:
values
...
@@ -217,7 +217,7 @@ function (angular, _, moment, dateMath, CloudWatchAnnotationQuery) {
...
@@ -217,7 +217,7 @@ function (angular, _, moment, dateMath, CloudWatchAnnotationQuery) {
});
});
var
targetAttributeName
=
templateSrv
.
replace
(
ec2InstanceAttributeQuery
[
2
]);
var
targetAttributeName
=
templateSrv
.
replace
(
ec2InstanceAttributeQuery
[
2
]);
return
this
.
performEC2DescribeInstances
(
region
,
filter
,
null
).
then
(
function
(
result
)
{
return
this
.
performEC2DescribeInstances
(
region
,
filter
s
,
null
).
then
(
function
(
result
)
{
var
attributes
=
_
.
chain
(
result
.
Reservations
)
var
attributes
=
_
.
chain
(
result
.
Reservations
)
.
map
(
function
(
reservations
)
{
.
map
(
function
(
reservations
)
{
return
_
.
pluck
(
reservations
.
Instances
,
targetAttributeName
);
return
_
.
pluck
(
reservations
.
Instances
,
targetAttributeName
);
...
...
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