Install full graphite Stack to use with grafana
7.3K
A Docker container for an complete graphite Stack. Usable in combination with Grafana.
Your can use the included Makefile.
To build the Container: make build
To remove the builded Docker Image: make clean
Starts the Container: make run
Starts the Container with Login Shell: make shell
Entering the Container: make exec
Stop (but not kill): make stop
History make history
You can find the Container also at DockerHub
docker pull bodsch/docker-graphite
docker run \
--rm \
--interactive \
--tty \
--publish=2003:2003 \
--publish=7002:7002 \
--publish=8088:8080 \
--volume=/data/docker/graphite:/srv \
--hostname=graphite \
--name=graphite \
bodsch/docker-graphite
Notes:
DATABASE_TYPE (default: sqlite)MYSQL_HOSTMYSQL_PORTMYSQL_ROOT_USER (default: root)MYSQL_ROOT_PASSMEMCACHE_HOSTMEMCACHE_PORT (default: 11211)DATABASE_GRAPHITE_PASS (default: graphite)USE_EXTERNAL_CARBON (default: false)The Database store only Dashboard and i think, grafana are the better Tools for this part.
Conclusion, I do not use the database feature of graphite (sorry, guys).
The sqlite database will only created in the /tmp directory and not used.
When your using a external carbon-writer (like go-carbon) you do not need the internal carbon.
You can disable this part with USE_EXTERNAL_CARBON.
The configuration is located at /opt/graphite/conf/storage-schemas.conf and has this default entries:
[carbon]
pattern = ^carbon\.
retentions = 60:90d
[default_1min_for_1day]
pattern = .*
retentions = 60s:1d
Each section has:
pattern=retentions=As example for retention we use the following
pattern = ^telegraf\.
retentions = 30s:7d,5m:30d,10m:1y
The regular expression pattern will match any metric that starts with telegraf.
Additionally, this example uses multiple retentions:
To calculate the whisper file size, I can recommend this tool: whisper-calculator (gist)
Content type
Image
Digest
Size
26.9 MB
Last updated
over 5 years ago
docker pull bodsch/docker-graphite