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
5d8a51c3
Commit
5d8a51c3
authored
Nov 09, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3129 from utkarshcmu/validity
Default AWS Region selection from dropdown
parents
ecb1552c
6325635f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
pkg/api/cloudwatch/metrics.go
+2
-0
public/app/plugins/datasource/cloudwatch/partials/config.html
+6
-1
No files found.
pkg/api/cloudwatch/metrics.go
View file @
5d8a51c3
...
...
@@ -65,6 +65,8 @@ func init() {
}
}
// Whenever this list is updated, frontend list should also be updated.
// Please update the region list in public/app/plugins/datasource/cloudwatch/partials/config.html
func
handleGetRegions
(
req
*
cwRequest
,
c
*
middleware
.
Context
)
{
regions
:=
[]
string
{
"us-east-1"
,
"us-west-2"
,
"us-west-1"
,
"eu-west-1"
,
"eu-central-1"
,
"ap-southeast-1"
,
...
...
public/app/plugins/datasource/cloudwatch/partials/config.html
View file @
5d8a51c3
...
...
@@ -19,8 +19,13 @@
<li
class=
"tight-form-item"
style=
"width: 200px"
>
Default Region
<tip>
Specify the region, such as for US West (Oregon) use ` us-west-2 ` as the region.
</tip>
</li>
<!--
Whenever this list is updated, backend list should also be updated.
Please update the region list in pkg/api/cloudwatch/metric.go
-->
<li>
<input
type=
"text"
class=
"tight-form-input input-large last"
ng-model=
'current.jsonData.defaultRegion'
placeholder=
""
></input>
<select
class=
"tight-form-input input-large last"
ng-model=
"current.jsonData.defaultRegion"
ng-options=
"region for region in ['us-east-1', 'us-west-2', 'us-west-1', 'eu-west-1',
'eu-central-1', 'ap-southeast-1' ,'ap-southeast-2' ,'ap-northeast-1' ,'sa-east-1' ,'cn-north-1']"
></select>
</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