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
2fbe8cde
Commit
2fbe8cde
authored
Oct 29, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:grafana/grafana into dash-edit-mode
parents
e170e47e
658fc1a6
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
4 deletions
+20
-4
conf/defaults.ini
+1
-0
docker/production/README.md
+1
-1
pkg/api/cloudwatch/metrics.go
+1
-1
pkg/api/login_oauth.go
+5
-1
pkg/services/sqlstore/migrator/mysql_dialect.go
+4
-1
pkg/setting/setting_oauth.go
+1
-0
pkg/social/google_oauth.go
+1
-0
pkg/social/social.go
+2
-0
public/app/features/dashboard/dashboard_srv.ts
+4
-0
No files found.
conf/defaults.ini
View file @
2fbe8cde
...
...
@@ -229,6 +229,7 @@ auth_url = https://accounts.google.com/o/oauth2/auth
token_url
=
https://accounts.google.com/o/oauth2/token
api_url
=
https://www.googleapis.com/oauth2/v1/userinfo
allowed_domains
=
hosted_domain
=
#################################### Grafana.net Auth ####################
[auth.grafananet]
...
...
docker/production/README.md
View file @
2fbe8cde
...
...
@@ -23,7 +23,7 @@ All options defined in conf/grafana.ini can be overridden using environment vari
```
docker run -i -p 3000:3000
\
-e "GF_SERVER_ROOT_URL=http://grafana.server.name"
\
-e "GF_SECURITY_ADMIN_PASSWORD=secret
\
-e "GF_SECURITY_ADMIN_PASSWORD=secret
"
\
grafana/grafana:develop
```
...
...
pkg/api/cloudwatch/metrics.go
View file @
2fbe8cde
...
...
@@ -78,7 +78,7 @@ func init() {
"AWS/ML"
:
{
"PredictCount"
,
"PredictFailureCount"
},
"AWS/OpsWorks"
:
{
"cpu_idle"
,
"cpu_nice"
,
"cpu_system"
,
"cpu_user"
,
"cpu_waitio"
,
"load_1"
,
"load_5"
,
"load_15"
,
"memory_buffers"
,
"memory_cached"
,
"memory_free"
,
"memory_swap"
,
"memory_total"
,
"memory_used"
,
"procs"
},
"AWS/Redshift"
:
{
"CPUUtilization"
,
"DatabaseConnections"
,
"HealthStatus"
,
"MaintenanceMode"
,
"NetworkReceiveThroughput"
,
"NetworkTransmitThroughput"
,
"PercentageDiskSpaceUsed"
,
"ReadIOPS"
,
"ReadLatency"
,
"ReadThroughput"
,
"WriteIOPS"
,
"WriteLatency"
,
"WriteThroughput"
},
"AWS/RDS"
:
{
"
BinLogDiskUsage"
,
"CPUUtilization"
,
"CPUCreditUsage"
,
"CPUCreditBalance"
,
"DatabaseConnections"
,
"DiskQueueDepth"
,
"FreeableMemory"
,
"FreeStorageSpace"
,
"ReplicaLag"
,
"SwapUsage"
,
"ReadIOPS"
,
"WriteIOPS"
,
"ReadLatency"
,
"WriteLatency"
,
"ReadThroughput"
,
"WriteThroughput"
,
"NetworkReceiveThroughput"
,
"NetworkTransmit
Throughput"
},
"AWS/RDS"
:
{
"
ActiveTransactions"
,
"AuroraBinlogReplicaLag"
,
"AuroraReplicaLag"
,
"AuroraReplicaLagMaximum"
,
"AuroraReplicaLagMinimum"
,
"BinLogDiskUsage"
,
"BlockedTransactions"
,
"BufferCacheHitRatio"
,
"CommitLatency"
,
"CommitThroughput"
,
"CPUCreditBalance"
,
"CPUCreditUsage"
,
"CPUUtilization"
,
"DatabaseConnections"
,
"DDLLatency"
,
"DDLThroughput"
,
"Deadlocks"
,
"DiskQueueDepth"
,
"DMLLatency"
,
"DMLThroughput"
,
"FailedSqlStatements"
,
"FreeableMemory"
,
"FreeStorageSpace"
,
"LoginFailures"
,
"NetworkReceiveThroughput"
,
"NetworkTransmitThroughput"
,
"ReadIOPS"
,
"ReadLatency"
,
"ReadThroughput"
,
"ReplicaLag"
,
"ResultSetCacheHitRatio"
,
"SelectLatency"
,
"SelectThroughput"
,
"SwapUsage"
,
"TotalConnections"
,
"VolumeReadIOPS"
,
"VolumeWriteIOPS"
,
"WriteIOPS"
,
"WriteLatency"
,
"Write
Throughput"
},
"AWS/Route53"
:
{
"HealthCheckStatus"
,
"HealthCheckPercentageHealthy"
,
"ConnectionTime"
,
"SSLHandshakeTime"
,
"TimeToFirstByte"
},
"AWS/S3"
:
{
"BucketSizeBytes"
,
"NumberOfObjects"
},
"AWS/SNS"
:
{
"NumberOfMessagesPublished"
,
"PublishSize"
,
"NumberOfNotificationsDelivered"
,
"NumberOfNotificationsFailed"
},
...
...
pkg/api/login_oauth.go
View file @
2fbe8cde
...
...
@@ -53,7 +53,11 @@ func OAuthLogin(ctx *middleware.Context) {
if
code
==
""
{
state
:=
GenStateString
()
ctx
.
Session
.
Set
(
middleware
.
SESS_KEY_OAUTH_STATE
,
state
)
ctx
.
Redirect
(
connect
.
AuthCodeURL
(
state
,
oauth2
.
AccessTypeOnline
))
if
setting
.
OAuthService
.
OAuthInfos
[
name
]
.
HostedDomain
==
""
{
ctx
.
Redirect
(
connect
.
AuthCodeURL
(
state
,
oauth2
.
AccessTypeOnline
))
}
else
{
ctx
.
Redirect
(
connect
.
AuthCodeURL
(
state
,
oauth2
.
SetParam
(
"hd"
,
setting
.
OAuthService
.
OAuthInfos
[
name
]
.
HostedDomain
),
oauth2
.
AccessTypeOnline
));
}
return
}
...
...
pkg/services/sqlstore/migrator/mysql_dialect.go
View file @
2fbe8cde
...
...
@@ -30,7 +30,10 @@ func (db *Mysql) AutoIncrStr() string {
}
func
(
db
*
Mysql
)
BooleanStr
(
value
bool
)
string
{
return
strconv
.
FormatBool
(
value
)
if
value
{
return
"1"
}
return
"0"
}
func
(
db
*
Mysql
)
SqlType
(
c
*
Column
)
string
{
...
...
pkg/setting/setting_oauth.go
View file @
2fbe8cde
...
...
@@ -6,6 +6,7 @@ type OAuthInfo struct {
AuthUrl
,
TokenUrl
string
Enabled
bool
AllowedDomains
[]
string
HostedDomain
string
ApiUrl
string
AllowSignup
bool
Name
string
...
...
pkg/social/google_oauth.go
View file @
2fbe8cde
...
...
@@ -12,6 +12,7 @@ import (
type
SocialGoogle
struct
{
*
oauth2
.
Config
allowedDomains
[]
string
hostedDomain
string
apiUrl
string
allowSignup
bool
}
...
...
pkg/social/social.go
View file @
2fbe8cde
...
...
@@ -51,6 +51,7 @@ func NewOAuthService() {
ApiUrl
:
sec
.
Key
(
"api_url"
)
.
String
(),
Enabled
:
sec
.
Key
(
"enabled"
)
.
MustBool
(),
AllowedDomains
:
sec
.
Key
(
"allowed_domains"
)
.
Strings
(
" "
),
HostedDomain
:
sec
.
Key
(
"hosted_domain"
)
.
String
(),
AllowSignup
:
sec
.
Key
(
"allow_sign_up"
)
.
MustBool
(),
Name
:
sec
.
Key
(
"name"
)
.
MustString
(
name
),
TlsClientCert
:
sec
.
Key
(
"tls_client_cert"
)
.
String
(),
...
...
@@ -92,6 +93,7 @@ func NewOAuthService() {
SocialMap
[
"google"
]
=
&
SocialGoogle
{
Config
:
&
config
,
allowedDomains
:
info
.
AllowedDomains
,
hostedDomain
:
info
.
HostedDomain
,
apiUrl
:
info
.
ApiUrl
,
allowSignup
:
info
.
AllowSignup
,
}
...
...
public/app/features/dashboard/dashboard_srv.ts
View file @
2fbe8cde
...
...
@@ -28,6 +28,10 @@ export class DashboardSrv {
return
Promise
.
resolve
();
}
if
(
this
.
dash
.
title
===
'New dashboard'
)
{
return
this
.
saveDashboardAs
();
}
var
clone
=
this
.
dash
.
getSaveModelClone
();
return
this
.
backendSrv
.
saveDashboard
(
clone
,
options
).
then
(
data
=>
{
...
...
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