Setup PMM Server on EC2 for Aurora Monitoring – Part 2

Now when Percona PMM is installed and up – see Part 1 – lets add Aurora database to it. For this I created one small Aurora (PostgreSQL Compatible) database, engine 16.6, db.t3.medium.

Setup PMM Server on EC2 for Aurora Monitoring – Part 1

Percona Monitoring and Management (PMM) is an open-source tool for monitoring databases like PostgreSQL and MySQL, including Amazon Aurora. We will deploy PMM Server on an EC2 instance using Docker for a fast and simple setup. This allows us to collect and visualize performance metrics from Aurora in real time. The EC2 instance acts as a central monitoring hub without needing to install agents on the database itself.
Here are the step for PMM setup

Add Oracle XE Docker Image to ECR Repository

Here’s a short description how to get an Oracle XE Docker image from the Oracle Container Registry (https://container-registry.oracle.com) and add it to ECR Repository.

1. Prerequisites
Docker must be installed and running on your local machine.
AWS CLI must be configured with the necessary permissions to access ECR
Oracle account is needed to access the Oracle Container Registry.

Docker and AWS CLI can be installed on your local machine or if you prefer on small EC2 instance with free tier eligible. Here EC2 instance will be used.
How to install docker on EC2 – check here.

Deploy Oracle on Docker in EC2

Deploying Oracle Database inside a Docker container on AWS has the following advantages –

– Easier Oracle deployment without full VM installations.
– More flexibility compared to RDS (can run XE, SE2, or Enterprise).
– Good for cost savings (shutdown when not in use).
– Enables containerized workflows on AWS.
– Works well with ECS, Fargate, or Kubernetes for scalability.

And of course it is good possibility to play a bit with Oracle on AWS and to refresh your skills with one simple hands-on exercise.

Running Oracle on Docker is simple and gives you full control over your container.