这是indexloc提供的服务,不要输入任何密码
Skip to content

ZubairNabi/graphite_docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graphite + Carbon + Statsd + Grafana + Google Auth Proxy

An all-in-one image running graphite and carbon-cache.

This image contains a sensible default configuration of graphite and carbon-cache. Starting this container will expose following ports:

  • 80: the graphite web interface
  • 3000: the grafana web interface
  • 2003: the carbon-cache line receiver (the standard graphite protocol)
  • 2004: the carbon-cache pickle receiver
  • 7002: the carbon-cache query port (used by the web interface)
  • 8125: the statsd UDP port
  • 8126: the statsd management port

You can log into the administrative interface of graphite-web (a Django application) with the username admin and password admin. These passwords can be changed through the web interface.

NB: Please be aware that by default docker will make the exposed ports accessible from anywhere if the host firewall is unconfigured.

Data volumes

Graphite data is stored at /var/lib/graphite/storage/whisper within the container. If you wish to store your metrics outside the container (highly recommended) you can use docker's data volumes feature. For example, to store graphite's metric database at /data/graphite on the host, you could use:

docker run -v /data/graphite:/var/lib/graphite/storage/whisper \
           -e SECRET_KEY='random-secret-key' \
           -p 80:80 \
           -p 3000:3000 \
           -p 2003:2003 \
           -p 2004:2004 \
           -p 7002:7002 \
           -p 8125:8125/udp \
           -p 8126:8126 \
           -d nickstenning/graphite

Technical details

By default, this instance of carbon-cache uses the following retention periods resulting in whisper files of approximately 2.5MiB.

10s:8d,1m:31d,10m:1y,1h:5y

Getting started

Generate your SECRET_KEY from here. It is optional but highly recommended.

Fill in the blanks in supervisord.conf before building the image, otherwise Google auth will not work. You will need to register an app on google see: https://github.com/bitly/google_auth_proxy for more details

PR welcome to improve this config.

Based off

https://github.com/nickstenning/dockerfiles.git

Extended by Sam Saffron

About

docker container for graphite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 38.8%
  • Nginx 37.5%
  • Shell 14.4%
  • Ruby 5.2%
  • JavaScript 4.1%