Docker Image for Graphite
Deploy Graphite & Statsd with a single command
Graphite & Statsd are difficult to orchestrate. This Docker image will help you get up & running quickly.
Follow this * tutorial *, and you will end up with a similar setup:
docker run -d --name graphite -p 8080:80 -p 2003:2003 -p 8125:8125/udp castawaylabs/graphite-statsd
This starts a Docker container named: graphite
Includes the following components
- Nginx - reverse proxies the graphite dashboard
- Graphite - front-end dashboard
- Carbon - back-end
- Statsd - UDP metrics aggregator
These volumes can be optionally mounted. For whatever reason, if you want to edit the config files, i suggest you fork this repo and edit conf/*.conf directly, rebuilding the image as you wish.
Alternatively, you can mount files to overwrite the defaults.. See the
Dockerfile for more info (look for ADD statements)
Start Using Graphite & Statsd
Send Some Stats
Let's fake some stats with a random counter to prove things are working.
echo "foo:1|c" | nc -u -w0 127.0.0.1 8125 echo "foo:25|ms" | nc -u -w0 127.0.0.1 8125
Visualize the Data
Open Graphite in a browser at http://localhost/dashboard.
In ~10s, refresh graphite, you should see
Update the Configuration
- Update the default Django admin user account. The default is insecure.
- username: root
- password: root
- email: email@example.com
Note: Fork this repo and rebuild the image, changing conf/*.conf files. These are defaults and will work for most configurations, but if you need something specific, check out the docs link above.
Learn about Statsd.
Start sending stats from your apps.
- Introduction to Docker
- Practical Guide to StatsD/Graphite Monitoring
- Configuring Graphite for StatsD
- Matej Kramny firstname.lastname@example.org
Sponsored by nodegear - Awesome Nodejs Platform for Developers (with real-time stats)