Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

Commit 959684c

Browse files
committed
Added instructions for the creation of a cloudwatch dashboard
1 parent 50a0ffd commit 959684c

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,31 @@ python runner.py
131131

132132
### 6. Monitor the tests in CloudWatch
133133

134-
Work in progress
134+
The CloudFormation template should have created a [CloudWatch Metric Filter](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html)
135+
that will capture the average response time for each HTTP request that was issued to your system under test. You should
136+
see something like this in the template:
137+
138+
```yaml
139+
TaurusLogFilterAvgResponseTime:
140+
Type: AWS::Logs::MetricFilter
141+
Properties:
142+
FilterPattern: "[time, logType=INFO*, logTitle=Current*, numVu, vu, numSucc, succ, numFail, fail, avgRt, x]"
143+
LogGroupName: !Ref FargateTaskCloudWatchLogGroup
144+
MetricTransformations:
145+
-
146+
MetricValue: "$avgRt"
147+
MetricNamespace: "dlt-fargate/taurus"
148+
MetricName: "avgResponseTime"
149+
```
150+
151+
What this filter is doing, is parsing the Taurus logs that match that given format and assigning a variable name to each
152+
value in the log. We are going to ignore all values in the log except for `avgRt` which is captured as a new metric and
153+
stored in your CloudWatch Metrics.
154+
155+
Once the filter is in place, I recommend to centralize the metrics from the different regions into a single CloudWatch
156+
Dashboard. To pull metrics from different regions into one Dashboard [follow this steps](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cross_region_dashboard.html).
157+
The Dashboard will look something like this:
158+
159+
![CloudWatch](docs/cloudwatch.jpg)
160+
161+

docs/cloudwatch.jpg

206 KB
Loading

0 commit comments

Comments
 (0)