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
d815d06c
Commit
d815d06c
authored
Aug 24, 2015
by
Mitsuhiro Tanda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignore empty custom metrics setting
parent
c0c8465e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
public/app/plugins/datasource/cloudwatch/datasource.js
+5
-1
public/app/plugins/datasource/cloudwatch/partials/config.html
+1
-1
No files found.
public/app/plugins/datasource/cloudwatch/datasource.js
View file @
d815d06c
...
...
@@ -176,7 +176,11 @@ function (angular, _, kbn) {
/* load custom metrics definitions */
var
self
=
this
;
$q
.
all
(
_
.
map
(
datasource
.
jsonData
.
customMetricsAttributes
,
function
(
u
)
{
_
.
chain
(
datasource
.
jsonData
.
customMetricsAttributes
)
.
reject
(
function
(
u
)
{
return
_
.
isEmpty
(
u
);
})
.
map
(
function
(
u
)
{
return
$http
({
method
:
'GET'
,
url
:
u
});
})
)
...
...
public/app/plugins/datasource/cloudwatch/partials/config.html
View file @
d815d06c
...
...
@@ -43,7 +43,7 @@
Custom Metrics Attributes
</li>
<li>
<input
type=
"text"
class=
"tight-form-input input-xlarge"
ng-model=
'current.jsonData.customMetricsAttributes[0]'
ng-init=
"current.jsonData.customMetricsAttributes = current.jsonData.customMetricsAttributes || []"
placeholder=
""
required
></input>
<input
type=
"text"
class=
"tight-form-input input-xlarge"
ng-model=
'current.jsonData.customMetricsAttributes[0]'
ng-init=
"current.jsonData.customMetricsAttributes = current.jsonData.customMetricsAttributes || []"
placeholder=
""
></input>
</li>
</ul>
<div
class=
"clearfix"
></div>
...
...
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