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
+37-60Lines changed: 37 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,60 +3,54 @@
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
-
7
6
## What is DBTop Monitoring ?
8
7
9
8
DBTop Monitoring is evolution of [RDSTop Monitoring Solution](https://github.com/aws-samples/rds-top-monitoring) initiative.
10
9
11
-
DBTop Monitoring is lightweight application to perform real-time monitoring for AWS Database Resources.
10
+
DBTop Monitoring is lightweight application to perform realtime monitoring for AWS Database Resources.
12
11
Based on same simplicity concept of Unix top utility, provide quick and fast view of database performance, just all in one screen.
[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.
86
+
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.
95
88
96
-
[Setting up and enabling Enhanced Monitoring](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.Enabling.html)
DBTop Monitoring Solution needs to access privately AWS Database resources, grant inboud access for security groups used by database resources.
102
95
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">
111
96
112
97
113
98
## Resource Usage and Cost
@@ -126,30 +111,29 @@ DBTop Monitoring Solution will use following resources:
126
111
127
112
## Solution Deployment
128
113
114
+
115
+
129
116
> **Time to deploy:** Approximately 10 minutes.
130
117
131
118
132
119
### Create database monitoring users
133
120
134
121
Database credentials are needed to connect to the database engine and gather real-time metrics, use following statements to create the monitoring users.
135
122
136
-
137
-
#### [Amazon RDS for MySQL](https://aws.amazon.com/rds/mysql/)
138
-
```sql
123
+
#### MySQL
124
+
```
139
125
CREATE USER 'monitor'@'%' IDENTIFIED BY '<PASSWORD>';
140
126
GRANT PROCESS ON *.* TO 'monitor'@'%' ;
141
127
```
142
128
143
-
144
-
#### [Amazon RDS for PostgreSQL](https://aws.amazon.com/rds/postgresql/)
145
-
```sql
129
+
#### PostgreSQL
130
+
```
146
131
CREATE USER monitor WITH PASSWORD '<PASSWORD>';
147
132
GRANT pg_read_all_stats TO monitor;
148
133
```
149
134
150
-
151
-
#### [Amazon RDS for SQLServer](https://aws.amazon.com/rds/sqlserver/)
152
-
```sql
135
+
#### MS SQLServer
136
+
```
153
137
USE [master]
154
138
GO
155
139
CREATE LOGIN [monitor] WITH PASSWORD=N'<PASSWORD>', DEFAULT_DATABASE=[master], CHECK_EXPIRATION=ON, CHECK_POLICY=ON
@@ -162,15 +146,14 @@ GRANT VIEW SERVER STATE TO [monitor]
162
146
GO
163
147
```
164
148
165
-
166
-
#### [Amazon RDS for Oracle](https://aws.amazon.com/rds/oracle/)
167
-
```sql
149
+
#### Oracle
150
+
```
168
151
CREATE USER monitor IDENTIFIED BY '<PASSWORD>';
169
152
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.
187
170
188
171
1. Make sure you have sign in AWS Console already.
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.
172
+
2. Download AWS Cloudformation Template (DBMonitoringSolution.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.
195
178
8. Input **AWS Linux AMI** parameter, this parameter specify AWS AMI to build App EC2 Server. Keep default value.
196
179
9. Select **Instance Type** parameter, indicate what instance size is needed.
197
180
10. Select **VPC Name** parameter, indicate VPC to be used to deploy application server.
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.
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.
199
182
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.
200
183
13. Input **CIDR** parameter, specify CIDR inbound access rule, this will grant network access for the application.
201
184
14. Click **Next**, Click **Next**, select **acknowledge that AWS CloudFormation might create IAM resources with custom names**. and Click **Submit**.
@@ -208,14 +191,8 @@ CA-signed certificate that not only encrypts, but also publicly authenticates yo
208
191
209
192
210
193
211
-
## Security
212
-
213
-
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
214
-
215
194
216
195
217
-
## License
218
196
219
-
This library is licensed under the MIT-0 License. See the [LICENSE](LICENSE.txt) file.
0 commit comments