Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit dab4774

Browse files
committed
described detail
1 parent bc1600c commit dab4774

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ SELECT id, name FROM tbl WHERE id IN (10, 20, 30)` => `SELECT id, name FROM tbl
1111

1212
# How to use
1313

14+
## Export Slow query logs to CloudWatch Logs
15+
1. Enable slow_query_log parameter of your RDS database instance
16+
17+
2. Modify your database instance to export slow query
18+
19+
## Create Datadog API Key secrets on Secrets Manager
20+
1. Create Datadog API Key secrets with **PLAIN TEXT** format
21+
22+
You can find your API Key here:
23+
https://app.datadoghq.com/account/settings#api
24+
25+
## Create Lambda function
1426
1. Download function.zip from github
1527

1628
https://github.com/samitani/mysql-slow-query-datadog-lambda/releases
@@ -27,7 +39,9 @@ Specify Python3 as Runtime, `main.lambda_handler` as Handler
2739
| DD_ENHANCED_METRICS | false |
2840
| DD_SITE | datadoghq.com |
2941

30-
4. Create Lambda Subscription filter against your Slow Query log CloudWatch Log groups
42+
4. Edit IAM role to allow this lambda function to get secrets
43+
44+
5. Create Lambda Subscription filter against your Slow Query log CloudWatch Log groups
3145

3246
## Datadog
3347
Generate Metrics with below Grok parser.

0 commit comments

Comments
 (0)