You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+59-37Lines changed: 59 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,54 +3,60 @@
3
3
> **Disclaimer:** The sample code; software libraries; command line tools; proofs of concept; templates; or other related technology (including any of the foregoing that are provided by our personnel) is provided to you as AWS Content under the AWS Customer Agreement, or the relevant written agreement between you and AWS (whichever applies). You are responsible for testing, securing, and optimizing the AWS Content, such as sample code, as appropriate for production grade use based on your specific quality control practices and standards. Deploying AWS Content may incur AWS charges for creating or using AWS chargeable resources, such as running Amazon EC2 instances, using Amazon CloudWatch or Amazon Cognito.
4
4
5
5
6
+
6
7
## What is DBTop Monitoring ?
7
8
8
9
DBTop Monitoring is evolution of [RDSTop Monitoring Solution](https://github.com/aws-samples/rds-top-monitoring) initiative.
9
10
10
-
DBTop Monitoring is lightweight application to perform realtime monitoring for AWS Database Resources.
11
+
DBTop Monitoring is lightweight application to perform real-time monitoring for AWS Database Resources.
11
12
Based on same simplicity concept of Unix top utility, provide quick and fast view of database performance, just all in one screen.
Amazon RDS provides metrics in real time for the operating system (OS) that your DB instance runs on. DBTop Monitoring solution integrate metrics from Enhanced Monitoring and it has to be enabled.
87
-
Follow procedure below to turn on Enhanced Monitoring.
94
+
[Amazon RDS](https://aws.amazon.com/rds/) provides metrics in real time for the operating system (OS) that your DB instance runs on. DBTop Monitoring solution integrate metrics from Enhanced Monitoring and it has to be enabled. Follow procedure below to turn on Enhanced Monitoring.
[Setting up and enabling Enhanced Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.Enabling.html)
90
97
91
98
92
99
#### VPC Network Access to AWS Database Instances
93
100
94
101
DBTop Monitoring Solution needs to access privately AWS Database resources, grant inboud access for security groups used by database resources.
95
102
103
+
_First, you need to take a note of the Cloudformation resources created by the stack_
104
+
105
+
<imgwidth="1023"alt="Cloudformation Security Group Id"src="./images/image07.png">
106
+
107
+
108
+
_Second, you need to edit the Security Group that allows access to your Database resources, in this case to ElastiCache_
109
+
110
+
<imgwidth="1023"alt="Edit Security Group Id to Allow Redis"src="./images/image08.png">
96
111
97
112
98
113
## Resource Usage and Cost
@@ -111,29 +126,30 @@ DBTop Monitoring Solution will use following resources:
111
126
112
127
## Solution Deployment
113
128
114
-
115
-
116
129
> **Time to deploy:** Approximately 10 minutes.
117
130
118
131
119
132
### Create database monitoring users
120
133
121
134
Database credentials are needed to connect to the database engine and gather real-time metrics, use following statements to create the monitoring users.
122
135
123
-
#### MySQL
124
-
```
136
+
137
+
#### [Amazon RDS for MySQL](https://aws.amazon.com/rds/mysql/)
138
+
```sql
125
139
CREATEUSER 'monitor'@'%' IDENTIFIED BY '<PASSWORD>';
126
140
GRANT PROCESS ON*.* TO 'monitor'@'%' ;
127
141
```
128
142
129
-
#### PostgreSQL
130
-
```
143
+
144
+
#### [Amazon RDS for PostgreSQL](https://aws.amazon.com/rds/postgresql/)
145
+
```sql
131
146
CREATEUSERmonitor WITH PASSWORD '<PASSWORD>';
132
147
GRANT pg_read_all_stats TO monitor;
133
148
```
134
149
135
-
#### MS SQLServer
136
-
```
150
+
151
+
#### [Amazon RDS for SQLServer](https://aws.amazon.com/rds/sqlserver/)
152
+
```sql
137
153
USE [master]
138
154
GO
139
155
CREATE LOGIN [monitor] WITH PASSWORD=N'<PASSWORD>', DEFAULT_DATABASE=[master], CHECK_EXPIRATION=ON, CHECK_POLICY=ON
@@ -146,14 +162,15 @@ GRANT VIEW SERVER STATE TO [monitor]
146
162
GO
147
163
```
148
164
149
-
#### Oracle
150
-
```
165
+
166
+
#### [Amazon RDS for Oracle](https://aws.amazon.com/rds/oracle/)
167
+
```sql
151
168
CREATEUSERmonitor IDENTIFIED BY '<PASSWORD>';
152
169
GRANT CREATE SESSION,SELECT ANY DICTIONARY TO monitor;
Follow the step-by-step instructions to configure and deploy the DBTop Monitoring Solution into your account.
170
187
171
188
1. Make sure you have sign in AWS Console already.
172
-
2. Download AWS Cloudformation Template (DBMonitoringSolution.template) located into conf folder.
189
+
2. Download AWS Cloudformation Template ([DBMonitoringSolution.template](https://raw.githubusercontent.com/aws-samples/db-top-monitoring/main/conf/DBTopMonitoringSolution.template)) located into conf folder.
7. Input **Username** parameter, this username will be used to access the application. An email will be sent with temporary password from AWS Cognito Service.
178
195
8. Input **AWS Linux AMI** parameter, this parameter specify AWS AMI to build App EC2 Server. Keep default value.
179
196
9. Select **Instance Type** parameter, indicate what instance size is needed.
180
197
10. Select **VPC Name** parameter, indicate VPC to be used to deploy application server.
181
-
11. Select **Subnet Name** parameter, indicate subnet to be used to deploy application server, this subnet needs to have outbound internet access to reach AWS APIs. Also application server needs to be able to reach AWS Database Resources, add appropiate inboud rules on AWS RDS security groups to allow network connections.
198
+
11. Select **Subnet Name** parameter, indicate subnet to be used to deploy application server, this subnet needs to have outbound internet access to reach AWS APIs. Also application server needs to be able to reach AWS Database Resources, add appropiate inboud rules on Amazon RDS security groups to allow network connections.
182
199
12. Select **Public IP Address** parameter, the deployment will assign private IP Address by default to access the application, you can assign Public IP Address to access the application in case you need it, Select (true) to assign Public IP Address.
183
200
13. Input **CIDR** parameter, specify CIDR inbound access rule, this will grant network access for the application.
184
201
14. Click **Next**, Click **Next**, select **acknowledge that AWS CloudFormation might create IAM resources with custom names**. and Click **Submit**.
@@ -191,8 +208,13 @@ CA-signed certificate that not only encrypts, but also publicly authenticates yo
191
208
192
209
193
210
211
+
## Security
212
+
213
+
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
194
214
195
215
196
216
217
+
## License
197
218
219
+
This library is licensed under the MIT-0 License. See the [LICENSE](LICENSE.txt) file.
0 commit comments