Skip to content
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
alexellis committed Sep 22, 2016
1 parent ed60e4d commit 38c274d
Show file tree
Hide file tree
Showing 7 changed files with 533 additions and 0 deletions.
6 changes: 6 additions & 0 deletions add_dashboard.sh
@@ -0,0 +1,6 @@
#!/bin/bash

export dashboard_json=$(cat dashboard.json|tr "\n" " ")
dashboard_json='{"dashboard":'"$dashboard_json"'}'

curl http://admin:admin@localhost:3000/api/dashboards/db -X POST -H 'Content-Type: application/json;charset=UTF8' --data-binary ''"$dashboard_json"''
5 changes: 5 additions & 0 deletions add_datasource.sh
@@ -0,0 +1,5 @@
#!/bin/bash

curl 'http://admin:admin@localhost:3000/api/datasources' -X POST -H 'Content-Type: \
application/json;charset=UTF8' --data-binary \
'{"id":1,"orgId":1,"name":"flux","type":"influxdb","typeLogoUrl":"public/app/plugins/datasource/influxdb/img/influxdb_logo.svg","access":"direct","url":"http://localhost:8086","password":"root","user":"root","database":"environment","basicAuth":false,"basicAuthUser":"","basicAuthPassword":"","withCredentials":false,"isDefault":false}'

0 comments on commit 38c274d

Please sign in to comment.