简体   繁体   中英

API monitoring tool

I wish to monitor all the APIs that I created on one of my docker containers. That Docker container is using Django REST framework for its services.. and I am running it on Azure. I want to monitor my API by means of if it is working or if there are too many requests it will throw an alert.. what is its request per second something like that.

We are using sysdig for monitoring our containers but I don't think it has the capability to monitor all our APIs of our Django Rest Framework

To monitor your API performance and downtime, you could create custom scripts to ping your API and alert you if there's downtime, or you could use a third-party service to monitor remotely. This is the simpler option, as it doesn't require writing and maintaining code.

One third-party service you could use is mine, https://assertible.com . They provide frequent health checks (1/5/15 minute), deep data validation, integrations with other services like Slack and GitHub, and a nice way to view/manage test failures.

If you want to integrate with your own code or scripts, you can use Trigger URLs and/or the Deployments API to programatically run your tests whenever and wherever:

$ curl 'https://assertible.com/apis/{API_ID}/run?api_token=ABC'
[{
  "runId": "test_fjdmbd",
  "result": "TestPass",
  "assertions": {
      "passed": [{...}],
      "failed": [{...}]
  },
  ...
}]

Hope it helps!

You can use the monitoring functionality from Postman. For more information check out the following link [1].

[1] https://learning.getpostman.com/docs/postman/monitors/intro_monitors/

Since you're running on Azure, you should take a look at Application Insights :

Application Insights is an extensible Application Performance Management (APM) service for web developers on multiple platforms. Use it to monitor your live web application. It will automatically detect performance anomalies. It includes powerful analytics tools to help you diagnose issues and to understand what users actually do with your app. It's designed to help you continuously improve performance and usability. It works for apps on a wide variety of platforms including .NET, Node.js and J2EE, hosted on-premises or in the cloud. It integrates with your devOps process, and has connection points to a variety of development tools. Source

API monitoring is described here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM