Skip to content

Commit

Permalink
Update grafana.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rschitz committed Aug 7, 2024
1 parent 2ba86a7 commit 8db7b35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/grafana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ systemctl start grafana-server
sleep 5s
#
echo "Update grafana conf before updating password (easier curl calls)"
curl --noproxy localhost -H "Content-Type: application/json" -X POST -d '{"name":"local","type":"graphite","url":"http://127.0.0.1:8080","access":"proxy","isDefault":true,"basicAuth":false}' http://admin:admin@localhost:3000/api/datasources
sleep 1s
# curl --noproxy localhost -H "Content-Type: application/json" -X POST -d '{"name":"local","type":"graphite","url":"http://127.0.0.1:8080","access":"proxy","isDefault":true,"basicAuth":false,"uid":"bc36594f-bcf4-47fc-913e-e418f0814ecd"}' http://admin:admin@localhost:3000/api/datasources
# sleep 1s
#
curl --noproxy localhost -H "Content-Type: application/json" -X PUT -d '{"theme": "light"}' http://admin:admin@localhost:3000/api/user/preferences
sleep 1s
Expand Down

0 comments on commit 8db7b35

Please sign in to comment.