github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/deploy/dev/local/deploy_grafana.sh (about) 1 #!/bin/bash 2 3 # Cleanup old containers (in case the script is reused) 4 docker stop graphite grafana 2>/dev/null 5 docker rm graphite grafana 2>/dev/null 6 docker network rm dashboard-bridge 2>/dev/null 7 8 docker network create dashboard-bridge 9 10 # Graphite 11 docker run -d --rm\ 12 --name graphite\ 13 --network=dashboard-bridge\ 14 -p 8125:8125/udp\ 15 graphiteapp/graphite-statsd 16 17 # Grafana 18 docker run -d --rm\ 19 --name grafana\ 20 --network=dashboard-bridge\ 21 -p 3000:3000\ 22 grafana/grafana 23 24 sleep 10 25 curl -d '{"name":"Graphite","type":"graphite","url":"http://graphite:80","access":"proxy","basicAuth":false,"isDefault":true}' -H "Content-Type: application/json" -X POST http://admin:admin@localhost:3000/api/datasources > /dev/null 2>&1