(Enlarge)
|
- If you have a VPN VPC [link, link] setup and you've allowed access to the RDS instance, life should be fairly simple for you in connecting to the RDS instance.
- If you are not operating a VPN VPC, things are a little more involved. This tutorial will focus on the latter.
- One of the first things that need to be done is to setup a DB Security Group [link, link]. Once you have added your external-facing IP address to it, you should be able to connect to your RDS instance; I would recommend doing such over an SSH connection.
- The next thing that you will need to do it to set-up a database user who has sufficient permissions to allow Jet Profiler to work at its maximum capability. You can create a user (changing "jet-profiler-username" and "jet-profiler-password" with your own unique values) via:
GRANT USAGE, SELECT, PROCESS, SHOW VIEW ON *.*
TO jet-profiler-username@'%'
IDENTIFIED BY 'jet-profiler-password';
- The first thing that you will want to do is to setup the poll interval in Jet Profiler (start with a long interval to "test the water" as it were and if you're not bogging down the instance, consider reducing the interval).
|
(Enlarge)
|
- Under "Connection Settings" you can set-up your connection to Amazon RDS. The "Server Host" that is asked for is what is known as the RDS instance endpoint in Amazon RDS-speak (which you can view by going into the RDS section and reviewing the database instance).
- The "Username" and "Password" is the user that you need to setup in the RDS instance that Jet Profiler will use to operate.
- While you could connect without using SSH, I'd recommend you utilize SSH. Jet Profiler has very similar SSH options as mySQL Workbench for our purpose of connecting to an RDS instance; see this screenshot of setting up mySQL Workbench to connect to an RDS instance by using the SSH pem file of an EC2 instance.
- You can ensure you have a successful connection by clicking on the button "Test Connection".
|
(Enlarge)
|
- As you can see here, from the "Top Queries" tab, queries as they are detected during a poll interval are shown.
|
(Enlarge)
|
- Top tables...
|
(Enlarge)
|
- Top schemas...
|
(Enlarge)
|
- Top users...
|
(Enlarge)
|
- Top IPs...
- Depending on how you've got things setup, the only IP's you would normally see here are "localhost" (such as from rdsadmin, or your website) and your external-facing IP address that you are using Jet Profiler with.
|
(Enlarge)
|
- Top States...
|
(Enlarge)
|
- Threads...
|
(Enlarge)
|
- Tables...
|
(Enlarge)
|
- Schemas...
|
(Enlarge)
|
- Users...
|
(Enlarge)
|
- IPs...
|
(Enlarge)
|
- States...
|
(Enlarge)
|
- Database user connections...
|
(Enlarge)
|
- Questions (Queries performed)...
|
(Enlarge)
|
- Com (commands performed)...
|
(Enlarge)
|
- Locks...
|
(Enlarge)
|
- Net (network traffic)...
|
(Enlarge)
|
- Handler reads...
|
(Enlarge)
|
- Handler writes...
|
(Enlarge)
|
- Scans...
|
(Enlarge)
|
- Innodb cache (innodb is recommended with mySQL Amazon RDS)...
|
(Enlarge)
|
- Innodb disk...
|
(Enlarge)
|
- Temp tables...
|
(Enlarge)
|
- Cost...
|