Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Distributed Computing
Common
vagrant-prometheus
Commits
14636f0b
Commit
14636f0b
authored
Aug 20, 2019
by
Karim El Aammari
Browse files
merge
parents
5212c761
cad707a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
provision/grafana/config/dashboards/dash_monitoring.json
View file @
14636f0b
...
...
@@ -5,7 +5,7 @@
},
"id"
:
null
,
"uid"
:
null
,
"uid"
:
"default_dashboard_monitoring"
,
"title"
:
"Monitoring"
,
"description"
:
""
,
"tags"
:
[
"node_exporter"
,
"monitoring"
],
...
...
@@ -798,6 +798,7 @@
"valueName"
:
"avg"
}
],
"templating"
:
{
"list"
:
[
{
...
...
provision/grafana/config/dashboards/dash_production.json
View file @
14636f0b
...
...
@@ -5,7 +5,7 @@
},
"id"
:
null
,
"uid"
:
null
,
"uid"
:
"default_dashboard_production"
,
"title"
:
"Production"
,
"description"
:
"UP/DOWN, CPU, Memory, Disk"
,
"tags"
:
[
"node_exporter"
,
"production"
],
...
...
provision/grafana/setup_grafana.sh
View file @
14636f0b
...
...
@@ -43,7 +43,9 @@ curl -X POST https://localhost:3000/api/datasources -H "Accept: application/json
echo
"Grafana datasources influx. "
# Dashboard
# TODO
DELETE
old dashboards
curl -X
DELETE
https
://localhost:3000/api/dashboards/uid/default_dashboard_production
-H
"Accept: application/json"
-H
"Content-Type: application/json"
-H
"Authorization: Bearer
$apitoken
"
--cacert
$cacertpath
2> /dev/null
curl -X POST https
://localhost:3000/api/dashboards/db
-H
"Accept: application/json"
-H
"Content-Type: application/json"
-H
"Authorization: Bearer
$apitoken
"
--data-binary
"@
$provision
/config/dashboards/dash_production.json"
--cacert
$cacertpath
2> /dev/null
curl -X DELETE https
://localhost:3000/api/dashboards/uid/default_dashboard_monitoring
-H
"Accept: application/json"
-H
"Content-Type: application/json"
-H
"Authorization: Bearer
$apitoken
"
--cacert
$cacertpath
2> /dev/null
curl -X POST https
://localhost:3000/api/dashboards/db
-H
"Accept: application/json"
-H
"Content-Type: application/json"
-H
"Authorization: Bearer
$apitoken
"
--data-binary
"@
$provision
/config/dashboards/dash_monitoring.json"
--cacert
$cacertpath
2> /dev/null
echo
"Grafana dashboard. "
\ No newline at end of file
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