Automatically add alert for new published service

774
3
Jump to solution
04-22-2020 06:42 PM
VictorTey
Esri Contributor

Hi is it possible to automatically add a alert for a newly published service? Perhaps somewhere along the line where

  • User publish new service
  • trigger webhook
  • create a alert in arcgis monitor

From the monitor rest API, I can only see the retrieval of alert data.

Alternatively is there a way to monitor all the map service and if any of them takes too long to response, flag a warning. 

The use case here is to ensure none of the map service that have been published takes no longer than x amount of time to response for any request at any scale.

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

You can use the HTTP counter to add the URL for a service you specifically want to monitor. A default alert for a response time greater than 3 seconds is available.  See example image below.   

Add an HTTP counter—ArcGIS Monitor Administrator | Documentation d’ArcGIS Enterprise 

 To monitor "all the map services" to determine if any of service is taking longer than expected to execute, there are several ways to check the performance of services.  One way is to use the ArcGIS Monitor web browser interface and go to REPORTS > ArcGIS Server; select "Busy Time per Tr (sec)" and click execute to get the busy timer per transaction (in seconds) for the services being monitored.  Look for any services where the average response times are too long.  Another way is to use the Excel Report Task Add-On which generated a detailed report of ArcGIS service performance.HTTP counter

View solution in original post

0 Kudos
3 Replies
by Anonymous User
Not applicable

You can use the HTTP counter to add the URL for a service you specifically want to monitor. A default alert for a response time greater than 3 seconds is available.  See example image below.   

Add an HTTP counter—ArcGIS Monitor Administrator | Documentation d’ArcGIS Enterprise 

 To monitor "all the map services" to determine if any of service is taking longer than expected to execute, there are several ways to check the performance of services.  One way is to use the ArcGIS Monitor web browser interface and go to REPORTS > ArcGIS Server; select "Busy Time per Tr (sec)" and click execute to get the busy timer per transaction (in seconds) for the services being monitored.  Look for any services where the average response times are too long.  Another way is to use the Excel Report Task Add-On which generated a detailed report of ArcGIS service performance.HTTP counter

0 Kudos
VictorTey
Esri Contributor

Thank you Michael Reither looking at the rest api, it doesn't look like the alerts can be created dynamically. Only retrieval of results

Access the ArcGIS Monitor API—ArcGIS Monitor Server application | Documentation for ArcGIS Enterpris... 

I will see if the second approach of using the rest api to access the report is feasible. Issue we have is that the client wants a hands off approach where if they publish a map service, they want that map service to automatically be monitored without having to login to monitor to create alert.

0 Kudos
by Anonymous User
Not applicable

For a best practice, you don't need to set a specific response time alert for every service you publish (that is not practical).  The idea is to pick a couple key services(commonly used) that represent the health of the ArcGIS Server and add those 2 or 3 services to the HTTP counter where they will have the default alert for the response time.   For all other services, you can use the Excel Report Add-on Task to generate a detailed report where you can identify services where the average response time does meet your requirements.