Skip to content

Instantly share code, notes, and snippets.

@arcusfelis
Last active June 30, 2022 13:27
Show Gist options
  • Save arcusfelis/0a8c92092865137ab01ddecd8a2b4a73 to your computer and use it in GitHub Desktop.
Save arcusfelis/0a8c92092865137ab01ddecd8a2b4a73 to your computer and use it in GitHub Desktop.
Install graphite/graphana for MongooseIM
# Create volumes and a networking
docker volume create grafana-var
docker volume create grafana-etc
docker volume create grafana-log
docker volume create graphite-conf
docker volume create graphite-storage
docker network create monitoring
docker run -d \
--name=grafana \
--restart=always \
--network=monitoring \
-p 3000:3000 \
-v grafana-var:/var/lib/grafana \
-v grafana-etc:/etc/grafana \
-v grafana-log:/var/log/grafana \
grafana/grafana-oss
docker run -d \
--name graphite \
--restart=always \
--network=monitoring \
-p 8000:80 -p 2003-2004:2003-2004 \
-v graphite-conf:/opt/graphite/conf \
-v graphite-storage:/opt/graphite/storage \
graphiteapp/graphite-statsd
# Update settings in graphite
docker exec -it graphite bash
echo "[default]
pattern = .*
retentions = 1m:7d,10m:90d" > /opt/graphite/conf/storage-schemas.conf
docker restart graphite
Also change password for graphite: http://localhost:8000/admin/auth/user/1/change/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment