This guide uses Docker to run Graphite.
For Docker installation, see Docker.
Create a directory to store your configuration and compose files.
mkdir -p /opt/graphite
cd /opt/graphite
Define a container for Graphite with persistent storage.
services:
graphite:
image: graphiteapp/graphite-statsd:latest
ports:
- "80:80"
- "2003-2004:2003-2004"
- "8125-8126:8125-8126/udp"
volumes:
- graphite-storage:/opt/graphite/storage
- ./local_settings.py:/opt/graphite/webapp/graphite/local_settings.py:ro
environment:
- GRAPHITE_WEB_ADMIN_USER=admin
- GRAPHITE_WEB_ADMIN_PASSWORD=changeme
networks:
- monitoring
volumes:
graphite-storage:
networks:
monitoring:
driver: bridge
Start the container in the background.
docker compose up -d
Open http://SERVER_IP to access the Graphite web interface.
graphiteapp/graphite-statsd is a popular community-maintained image (no official image)80/tcp - Web interface2003/tcp - Carbon plaintext protocol2004/tcp - Carbon pickle protocol8125/udp - StatsD listenergraphite-storage volume preserves metrics datasitespeedio/graphite is another maintained optionAny questions?
Feel free to contact us. Find all contact information on our contact page.