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
c483b2ff
Commit
c483b2ff
authored
Feb 12, 2016
by
Carl Bergquist
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3999 from mtanda/cloudwatch_custom_metrics_namespace
(cloudwatch) custom metrics namespace support
parents
24962024
81ad4695
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
pkg/api/cloudwatch/metrics.go
+5
-0
public/app/plugins/datasource/cloudwatch/partials/config.html
+11
-0
No files found.
pkg/api/cloudwatch/metrics.go
View file @
c483b2ff
...
...
@@ -126,6 +126,11 @@ func handleGetNamespaces(req *cwRequest, c *middleware.Context) {
for
key
:=
range
metricsMap
{
keys
=
append
(
keys
,
key
)
}
if
customMetricsNamespaces
,
ok
:=
req
.
DataSource
.
JsonData
[
"customMetricsNamespaces"
]
.
(
string
);
ok
{
for
_
,
key
:=
range
strings
.
Split
(
customMetricsNamespaces
,
","
)
{
keys
=
append
(
keys
,
key
)
}
}
sort
.
Sort
(
sort
.
StringSlice
(
keys
))
result
:=
[]
interface
{}{}
...
...
public/app/plugins/datasource/cloudwatch/partials/config.html
View file @
c483b2ff
...
...
@@ -29,5 +29,16 @@
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 200px"
>
Custom Metrics namespace
<tip>
Namespaces of Custom Metrics
</tip>
</li>
<li>
<input
type=
"text"
class=
"tight-form-input input-large last"
ng-model=
'ctrl.current.jsonData.customMetricsNamespaces'
placeholder=
"Namespace1,Namespace2"
></input>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
</div>
</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