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
b464a28c
Commit
b464a28c
authored
Jul 07, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenv: updated devenv provision scripts
parent
645974ec
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
32 deletions
+28
-32
.gitignore
+1
-0
devenv/bulk-dashboards/bulk-dashboards.yaml
+0
-0
devenv/bulk-dashboards/bulkdash.jsonnet
+0
-0
devenv/dashboards.yaml
+3
-3
devenv/datasources.yaml
+14
-14
devenv/dev-dashboards/dashboard_with_rows.json
+0
-0
devenv/setup.sh
+10
-15
No files found.
.gitignore
View file @
b464a28c
...
...
@@ -43,6 +43,7 @@ fig.yml
docker-compose.yml
docker-compose.yaml
/conf/provisioning/**/custom.yaml
/conf/provisioning/**/dev.yaml
/conf/ldap_dev.toml
profile.cov
/grafana
...
...
devenv/
dashboards/bulk-testing
/bulk-dashboards.yaml
→
devenv/
bulk-dashboards
/bulk-dashboards.yaml
View file @
b464a28c
File moved
devenv/
dashboards/bulk-testing
/bulkdash.jsonnet
→
devenv/
bulk-dashboards
/bulkdash.jsonnet
View file @
b464a28c
File moved
devenv/dashboards
/dev-dashboards/dev-dashboards
.yaml
→
devenv/dashboards.yaml
View file @
b464a28c
apiVersion
:
1
providers
:
-
name
:
'
dev
dashboards'
folder
:
'
dev
dashboards'
-
name
:
'
g
dev
dashboards'
folder
:
'
g
dev
dashboards'
type
:
file
options
:
path
:
devenv/d
ashboards/d
ev-dashboards
path
:
devenv/dev-dashboards
devenv/datasources
/default/default
.yaml
→
devenv/datasources.yaml
View file @
b464a28c
apiVersion
:
1
datasources
:
-
name
:
G
raphite
-
name
:
gdev-g
raphite
type
:
graphite
access
:
proxy
url
:
http://localhost:8080
jsonData
:
graphiteVersion
:
"
1.1"
-
name
:
P
rometheus
-
name
:
gdev-p
rometheus
type
:
prometheus
access
:
proxy
isDefault
:
true
url
:
http://localhost:9090
-
name
:
InfluxDB
-
name
:
gdev-influxdb
type
:
influxdb
access
:
proxy
database
:
site
user
:
grafana
password
:
grafana
url
:
http://localhost:8086
jsonData
:
jsonData
:
timeInterval
:
"
15s"
-
name
:
OpenT
sdb
-
name
:
gdev-opent
sdb
type
:
opentsdb
access
:
proxy
url
:
http://localhost:4242
jsonData
:
jsonData
:
tsdbResolution
:
1
tsdbVersion
:
1
-
name
:
Elastic
-
name
:
gdev-elasticsearch-metrics
type
:
elasticsearch
access
:
proxy
database
:
"
[metrics-]YYYY.MM.DD"
...
...
@@ -40,22 +40,22 @@ datasources:
jsonData
:
interval
:
Daily
timeField
:
"
@timestamp"
-
name
:
MySQL
-
name
:
gdev-mysql
type
:
mysql
url
:
localhost:3306
database
:
grafana
user
:
grafana
password
:
password
-
name
:
MSSQL
-
name
:
gdev-mssql
type
:
mssql
url
:
localhost:1433
database
:
grafana
user
:
grafana
password
:
"
Password!"
-
name
:
P
ostgres
-
name
:
gdev-p
ostgres
type
:
postgres
url
:
localhost:5432
database
:
grafana
...
...
@@ -64,7 +64,7 @@ datasources:
jsonData
:
sslmode
:
"
disable"
-
name
:
C
loudwatch
-
name
:
gdev-c
loudwatch
type
:
cloudwatch
editable
:
true
jsonData
:
...
...
devenv/d
ashboards/d
ev-dashboards/dashboard_with_rows.json
→
devenv/dev-dashboards/dashboard_with_rows.json
View file @
b464a28c
File moved
devenv/setup.sh
View file @
b464a28c
...
...
@@ -23,41 +23,36 @@ requiresJsonnet() {
}
defaultDashboards
()
{
requiresJsonnet
ln
-s
-f
-r
./dashboards/dev-dashboards/dev-dashboards.yaml ../conf/provisioning/dashboards/custom.yaml
ln
-s
-f
../../../devenv/dashboards.yaml ../conf/provisioning/dashboards/dev.yaml
}
defaultDatasources
()
{
echo
"setting up all default datasources using provisioning"
ln
-s
-f
-r
./datasources/default/default.yaml ../conf/provisioning/datasources/custom
.yaml
ln
-s
-f
../../../devenv/datasources.yaml ../conf/provisioning/datasources/dev
.yaml
}
usage
()
{
echo
-e
"install.sh
\n\t
This script
installs my basic setup for a debian laptop
\n
"
echo
-e
"install.sh
\n\t
This script
setups dev provision for datasources and dashboards
"
echo
"Usage:"
echo
" bulk-dashboards - create and provisioning 400 dashboards"
echo
"
default-datasources - provisiong all core datasource
s"
echo
"
no args - provisiong core datasources and dev dashboard
s"
}
main
()
{
local
cmd
=
$1
if
[[
-z
"
$cmd
"
]]
;
then
usage
exit
1
fi
if
[[
$cmd
==
"bulk-dashboards"
]]
;
then
bulkDashboard
elif
[[
$cmd
==
"default-datasources"
]]
;
then
defaultDatasources
elif
[[
$cmd
==
"default-dashboards"
]]
;
then
defaultDashboards
else
defaultDashboards
defaultDatasources
fi
if
[[
-z
"
$cmd
"
]]
;
then
usage
fi
}
main
"
$@
"
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