Hi, my name is Ashish. And in this video we will see how to monitor published API's and as your API Management instance, so let me just quickly log on to the portal and take it from there. I'm inside the portal. And if you would see the, if you want to view the metrics of your API's, so API Management emits metrics every minute, giving the real time visibility into the state and health of the API's. And it handles the capacity total gateway, request, successful gateway request, failure rate per request, unauthorized request and other kind of request, as well. So if you would, if you are under your management section, and if you would see the monitoring options.
Here it is click metrics maybe later. This is your metric from the drop down, and a few would go terribly Drop, click on the drop Event Hub. So these are the different metrics that you might be interested in to check for this API's. And the chart also would show the number of the API calls the chart can be filtered using the dimensions of the request metric. You want to if you want to set up an alert rule for the unauthorized access, so just click on the alert option here click on the new alert rule. This is the resource that we are adding a resource alert for.
Then you can add the condition here. Signal type later come up with metrics. Go for unauthorized get depreciated. duration of the backend request over the last six hours, aggregated click on done here. threshold value one. One minute aggregation grantee period defines the interval over which data points are grouped using the aggregation function.
Frequency of evaluation every one minute you can set it as per your needs click Done. The action group name Action Group allows you to define actions at scale. Do it in detail severity three alert rule name test here. We create a new alert rule. An action group would let you select the name of the Action Group we're in the email notification would be sent to you Click on refresh if you do not see your result. My alert rule has been created.
Okay, nice. And if you want to access the activity logs in your API, you can any time go on top, click on activity log here, this is the activity logs. This is all what we know which would show the logs of what is the activity lack of your API Management Services. And the diagnostic logs provide the rich information about operations and errors that are important for auditing as well as troubleshooting purposes. And if you would want to configure the diagnostic logs you can right in here in the monitoring section, you see the diagnostic settings you want to under diagnostic settings. Click on here.
We want to name our diagnostic settings. Name it like test, you can archive to this to storage account, send it to log analytics, send it to stream here dub. This is how you enable the monitoring on your API Management Services. You can play around with all of these options as per your needs. And if you have any queries, please mention them in the comment section. I hope you like this video.
I see you guys in the next video. Thank you. Have a great day ahead. Bye.