APIGateway
.PetAdoptionStatusUpdater
by clicking the name.Stages
, then select Prod
.Logs/Tracing
tab.Log full requests/responses data
. This will send detailed log data to CloudWatch which we will use in this exercise.The above is a temporary action to get detailed log data to learn about CloudWatch Contributor Insights.
Create rule
. You will see a screen like the one below.You can see that there are numerous sample rules readily available for us to use. However, we will create our own rule.
Custom rule
.PetTypes
in the name field.API-Gateway-Execution-Logs
from the drop down for the Log group
field.JSON
.pettype
in the first textbox under Contribution
. Leave COUNT
as selected for Aggregate on
.create
.You have just created a Contributor Insights rule, which will automatically create a Top ‘N’ report based on the rule. If the traffic generator app is running, you should be able to see a graph like the one below in a few minutes time.
If you leave it long enough, you will see a report similar to the one below:
APIGateway
.PetAdoptionStatusUpdater
by clicking the name.Stages
, then select Prod
.Logs/Tracing
tab.Log full requests/responses data
.You can also see your Contributor Insights Rules from within CloudWatch Logs console as shown below.
You can also see your Contributor Insights Rules and Graphs from within the DynamoDB console as shown below.
This concludes the Contributor Insights module.