Amazon DevOps Guru for RDS is a fully managed service that helps to analyze the performance of the Amazon Aurora MySQL-Compatible and PostgreSQL-Compatible engines. You only pay for what you use in DevOps Guru.
DevOps Guru for RDs relies on Machine Learning(ML) and advanced mathematical formulas. So it easily detects the problems before it gets more worse and also it gives solutions for the problems by analyzing the problems using machine learning feature.
A proactive insight lets you know about problematic behavior before it occurs. It contains anomalies with recommendations and related metrics to help you address issues in your Aurora databases before becoming bigger problems.
Learn more about Proactive insight
In this blog we are going to know about to add DevOps Guru with Amazon Aurora RDS cluster.
Enable DevOps Guru at Region Level
First, we need to enable DevOps Guru at the regional level in our AWS Account. Go to the Amazon DevOps Guru page and click the Get Started link.
First Choose the Monitor applications in the current AWS account choice. If you want to monitor across your organization’s level choose the first one.
DevOps Guru will create a new IAM role to evaluate your AWS resources.
For Amazon DevOps Guru analysis coverage, click the Choose later. We can configure it later. Until then It won’t analyze any of the resources and no cost occurs.
Click Enable button.
Create RDS with DevOps Guru Enabled
Go to the RDS console and click Dashboard followed by Create database.
To choose a database creation method, select Standard create.
For Engine options choose any one of the Aurora engines. Because right now DevOps Guru supports only Amazon Aurora Mysql-Compatible and PostgreSQL-Compatible engines.
Provide DB cluster name and username and password for database.
Read now: Upgrade MySQL version at minimal downtime
Under Instance configuration, for the DB instance class choose any class. But for type, only the g-type instance supports DevOps Guru. So, choose any g-type instances for your database cluster.
For Availability & durability, choose Don’t create an Aurora Replica for this test purpose.
Under the Monitoring section, Turn on Performance Insights is enabled by default. So just leave it as default. If it doesn’t enable you can’t able to enable DevOps Guru.
Then enable Turn on DevOps Guru.
For the Tag key, we need to add tags for our database. DevOps Guru will use these tags to identify the resource to be analyzed.
The most important thing is, the Tag key prefix should be like “devops-guru-” . This isn’t case-sensitive. For example “devops-guru-default” or “DevOps-Guru-test”.
For Tag value, we can give anything. For now, we just leave it as default.
Fill in All the other details, and click Create Database button.
Wait until the database Status to Available.
Now open the Amazon DevOps Guru, and you can able to see the database cluster and database instance under the System health overview section.
Now our DevOps Guru setup is ready. If any problems occur in the database DevOps Guru monitors via Performance insights. DevOps Guru analyzes the problem before it gets worse and it gives possible solutions also.
Enable DevOps Guru in Existing RDS Cluster
If you want to enable DevOps Guru in a existing Aurora cluster, follow the below steps to enable it.
In the left side panel of the RDS console click the Performance Insights link.
Select the Database instance which you have to enable DevOps Guru.
You could able to see the DevOps Guru for RDS toggle in the below screenshot. Or there will be a notification banner for Turn on DevOps Guru for RDS. You can click any one of them to enable it.
Add tags as I mentioned in earlier steps and click Turn on DevOps Guru button.
Now navigate to the Amazon DevOps Guru Dashboard and you can able to see your database will be shown there like the below picture.
Add notifications in DevOps Guru
In the left navigation panel of the DevOps Guru console click the Current account section.
Under Settings → Notifications, Click Edit button to add notifications.
Click the Add SNS topic button.
- To choose an SNS notification topic, select Create a new SNS topic for create a new topic. If you want to use an existing topic, select the first choice.
- Then enter a name for the new SNS topic.
- under the Notification configuration, choose anything for your convenience and click Save.
All sets well. From now DevOps Guru will able to monitor your database by notifying you about potential operational issues before they become bigger problems. Using Amazon DevOps Guru you will pay for only what you use. Performance Insights only collect database metrics and not give any alerts if anything down. So DevOps Guru helps to alert with more detail about the problem and also gives possible solutions for them. So the problem solving time reduces from days to minutes. DevOps Guru feature is one of the best monitoring feature for Amazon Aurora RDS cluster.
Also Read: Stop and Start RDS Automatically
I hope you enjoyed reading this article… See you again in a new one.