Sign inSign up

voduytuan/tc-graphite

By voduytuan

•Updated almost 11 years ago

Graphite can be complex to setup. This image will have you running in just a few minutes.

Image
0

1.2K

voduytuan/tc-graphite repository overview

Docker Hub

⁠Docker Image for Graphite

⁠Get Graphite & Statsd running instantly

Graphite can be complex to setup. This image will have you running & collecting stats in just a few minutes.

⁠Quick Start

sudo docker run -d \
  --name graphite \
  --restart=always \
  -p 80:80 \
  -p 2003:2003 \
  voduytuan/tc-graphite

This starts a Docker container named: graphite

That's it, you're done ... almost.

⁠Includes the following components
⁠Mapped Ports
HostContainerService
8080nginx
20032003carbon
⁠Mounted Volumes
HostContainerNotes
DOCKER ASSIGNED/opt/graphitegraphite config & stats storage
DOCKER ASSIGNED/etc/nginxnginx config
DOCKER ASSIGNED/etc/logrotate.dlogrotate config
DOCKER ASSIGNED/var/loglog files
⁠Base Image

Built using Phusion's base image⁠.

  • All Graphite related processes are run as daemons & monitored with runit⁠.
  • Includes additional services such as logrotate.
⁠Visualize the Data

Open Graphite in a browser at http://localhost/dashboard⁠.

⁠Secure the Django Admin

Update the default Django admin user account. The default is insecure.

First login at: http://localhost/account/login⁠ Then update the root user's profile at: http://localhost/admin/auth/user/1/⁠

⁠Change the Configuration

Read up on Graphite's post-install tasks⁠. Focus on the storage-schemas.conf⁠

  1. Stop the container docker stop graphite.
  2. Find the configuration files on the host by inspecting the container docker inspect graphite.
  3. Update the desired config files.
  4. Restart the container docker start graphite.

Note: If you change settings in /opt/graphite/conf/storage-schemas.conf be sure to delete the old whisper files under /opt/graphite/storage/whisper/.


Ensure that storage-schemas.conf retentions are no finer grained than 10 seconds.

[all]
pattern = .*
retentions = 5s:12h # WRONG
retentions = 10s:12h # OK
retentions = 60s:12h # OK

⁠A Note on Disk Space

If running this image on cloud infrastructure such as AWS, you should consider mounting /opt/graphite & /var/log on a larger volume.

  1. Configure the host to mount a large EBS volume.

  2. Specify the volume mounts when starting the container.

    sudo docker run -d \
      --name graphite \
      --restart=always \
      -v /path/to/ebs/graphite:/opt/graphite \
      -v /path/to/ebs/log:/var/log \
      -p 80:80 \
      -p 2003:2003 \
      voduytuan/tc-graphite
    

⁠Additional Reading

Tag summary

Content type

Image

Digest

sha256:940728c7b…

Size

287.4 MB

Last updated

almost 11 years ago

docker pull voduytuan/tc-graphite