-
Notifications
You must be signed in to change notification settings - Fork 0
Graphite
Andrei Montchik edited this page Jul 12, 2024
·
8 revisions
- Install Docker
- Download the Graphite image to make sure it exists:
sudo docker pull graphiteapp/graphite-statsdTechnically it is not necessary because running a container will download an image, but better to separate two distinct tasks - Confirm that the image was downloaded:
sudo docker images
- Configure router to allow UDP packets to the Graphite StatsD port.
- Startup the Graphite container:
sudo docker run -d\
--name graphite\
--restart=always\
-p 80:80\
-p 2003-2004:2003-2004\
-p 2023-2024:2023-2024\
-p 8125:8125/udp\
-p 8126:8126\
graphiteapp/graphite-statsd
- Confirm that it started up:
sudo docker stats - Run the metrics load on Graphite server:
while true; do echo -n "example:$((RANDOM % 100))|c" | nc -w 1 -u 127.0.0.1 8125; done - Check out the Graphite Web: http://<GRAPHITE_SERVER_IP>:80