Skip to content
Shain Lafazan
← Blog

Run a Graphite Metrics Server on an AWS EC2 Amazon Linux 2 Instance

1. First, Install Docker

The easiest way to run Graphite is with Docker.

Check out the article here to set that up, and return for step 2.

2. Run the Graphite Docker Image

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

3. Configure Your Security Group(s)

If you want to access the Graphite dashboard, you’ll need to either add an ingress port (the default we set is HTTP 80). You can also use a bastion host or vpn to access, if you prefer.