- wiki
- Prometheus
- Grafana
- cAdvisor
- node-exporter
- DB-SQL Setup
- Install http-auth
- Install letsencrypt
- Install postgres
- Install mysql
- Setup dokku mysql edu db
The Prometheus script needs a prometheus config, which is fetched by default from here
Run the following on your dokku host where you want to serve grafana from:
# grafana
curl -s https://gist.githubusercontent.com/lebalz/0877cc16ead689a5c785e4bf6626f9ed/raw/grafana.sh | bash -s -- -d dokku.org -e [email protected]
# prometheus
curl -s https://gist.githubusercontent.com/lebalz/0877cc16ead689a5c785e4bf6626f9ed/raw/prometheus.sh | bash -s -- -u admin -p asdfasdf -d dokku.org -e [email protected]
# node-exporter
curl -s https://gist.githubusercontent.com/lebalz/0877cc16ead689a5c785e4bf6626f9ed/raw/node-exporter.sh | bash -s -- -d dokku.org -e [email protected]
# c-advisor
curl -s https://gist.githubusercontent.com/lebalz/0877cc16ead689a5c785e4bf6626f9ed/raw/c_advisor.sh | bash -s -- -u admin -p asdfasdf -d dokku.org -e [email protected]
On every other d host you like to monitor ressources, add c-advisor and node-exporter and adapt the your prometheus.yml accordingly (located under /var/lib/dokku/data/storage/prometheus/config/prometheus.yml
). Make sure to reload prometheus configs by performing a POST request to prometheus.dokku.org/-/reload
. This can be done by with this sh script: curl -s https://gist.githubusercontent.com/lebalz/67f1aaa8aeada40d738ae163533c7a71/raw/reload.sh | bash -s -- -u admin -p asdfasdf -d dokku.org
# node-exporter
curl -s https://gist.githubusercontent.com/lebalz/0877cc16ead689a5c785e4bf6626f9ed/raw/node-exporter.sh | bash -s -- -d dokku.org -e [email protected]
# c-advisor
curl -s https://gist.githubusercontent.com/lebalz/0877cc16ead689a5c785e4bf6626f9ed/raw/c_advisor.sh | bash -s -- -u admin -p asdfasdf -d dokku.org -e [email protected]