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
2dd60f78
Commit
2dd60f78
authored
Jul 16, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenv: working on dev env setup & dashboards
parent
0f6e5e29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
devenv/dev-dashboards/dashboard_with_rows.json
+0
-0
devenv/setup.sh
+13
-7
No files found.
devenv/dev-dashboards/dashboard_with_rows.json
deleted
100644 → 0
View file @
0f6e5e29
This diff is collapsed.
Click to expand it.
devenv/setup.sh
View file @
2dd60f78
#/bin/bash
#
!
/bin/bash
bulkDashboard
()
{
...
...
@@ -22,31 +22,37 @@ requiresJsonnet() {
fi
}
defaultDashboards
()
{
devDashboards
()
{
echo
-e
"
\x
E2
\x
9C
\x
94 Setting up all dev dashboards using provisioning"
ln
-s
-f
../../../devenv/dashboards.yaml ../conf/provisioning/dashboards/dev.yaml
}
de
fault
Datasources
()
{
echo
"setting up all default
datasources using provisioning"
de
v
Datasources
()
{
echo
-e
"
\x
E2
\x
9C
\x
94 Setting up all dev
datasources using provisioning"
ln
-s
-f
../../../devenv/datasources.yaml ../conf/provisioning/datasources/dev.yaml
}
usage
()
{
echo
-e
"
install.sh
\n\t
This script setups dev provision for datasources and dashboards
"
echo
-e
"
\n
"
echo
"Usage:"
echo
" bulk-dashboards - create and provisioning 400 dashboards"
echo
" no args - provisiong core datasources and dev dashboards"
}
main
()
{
echo
-e
"------------------------------------------------------------------"
echo
-e
"This script setups provisioning for dev datasources and dashboards"
echo
-e
"------------------------------------------------------------------"
echo
-e
"
\n
"
local
cmd
=
$1
if
[[
$cmd
==
"bulk-dashboards"
]]
;
then
bulkDashboard
else
de
fault
Dashboards
de
fault
Datasources
de
v
Dashboards
de
v
Datasources
fi
if
[[
-z
"
$cmd
"
]]
;
then
...
...
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