这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ add ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Nginx
#
# graphite
expose 85:80
expose 80
# grafana
expose 3000:81
expose 3000

# Carbon line receiver port
expose 2003:2003
expose 2003
# Carbon pickle receiver port
expose 2004:2004
expose 2004
# Carbon cache query port
expose 7002:7002
expose 7002

# Statsd UDP port
expose 8125:8125/udp
expose 8125/udp
# Statsd Management port
expose 8126:8126
expose 8126

add ./bin/init /usr/bin/init

Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
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, by default, bind the the following
host ports:
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
Expand All @@ -28,6 +29,13 @@ 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 \
-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
Expand Down