Public | Automated Build

Last pushed: a year ago
Short Description
Graphite metrics image
Full Description

Graphite Dockerfile

This repository contains Dockerfile of graphite for Docker's automated build published to the public Docker Hub Registry.

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull nextcode/graphite

Get Graphite running instantly to use with sitespeed.io

In this image, Graphite is always setup with Basic Auth (feed your .htpasswd file when starting) and the Graphite data dir is set to /opt/graphite/storage/whisper.

Quick Start

sudo docker run -d --name graphite -p 8080:80 -p 2003:2003 -p 2003:2003/udp nextcode/graphite

This starts a Docker container named: graphite with Basic Auth guest/guest. Please change the login that by feeding your own .htpasswd file when starting the container (more info about how to create your .htpasswd file):

sudo docker run -d --name graphite -p 8080:80 -p 2003:2003 -p 2003:2003/udp -v /local/path/to/.htpasswd:/etc/nginx/.htpasswd nextcode/graphite

And the final config that you should do is map the Graphite data dir outside of your container:

sudo docker run -d --name graphite -p 8080:80 -p 2003:2003 -p 2003:2003/udp -v /local/path/to/.htpasswd:/etc/nginx/.htpasswd -v /path/to/data/graphite/storage/whisper:/opt/graphite/storage/whisper nextcode/graphite

Data retention

You can change how often data will be stored in the storage-schemas.conf and how metrics will be aggregated over time in storage-aggregation.conf.

The default one looks like this:

retentions = 10s:30d,1m:90d

It will store data for 3 months, change that if you need to store data longer. Etsy has good documentation on how to setup your Graphite metrics.

To change it, you can feed the image with a new storage-schemas.conf. The one you want to replace is located
/opt/graphite/conf/storage-schemas.conf

Start your image like this:

sudo docker run -d --name graphite -p 8080:80 -p 2003:2003 -p 2003:2003/udp -v /local/path/to/.htpasswd:/etc/nginx/.htpasswd -v /path/to/data/graphite/storage/whisper:/opt/graphite/storage/whisper -v /path/to/storage-schemas.conf:/opt/graphite/conf/storage-schemas.conf nextcode/graphite

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.
Docker Pull Command
Owner
nextcode
Source Repository

Comments (0)