Select to view content in your preferred language

Using ArcGIS REST API to pull Server Statistics Programatically

131
1
a week ago
emoreno
Regular Contributor

Good afternoon ESRI Community,

My organization is seeking to pull server statistics for different map services as described at the bottom of this document:

Server statistics—ArcGIS Server | Documentation for ArcGIS Enterprise

We just want to query the statistics of different services, obtain responses such as Average Response Time, Max Response Time, etc. and write that information to an internal database on a weekly basis.

Is this workflow achievable using the ArcGIS REST API? ESRI Tech Support said this document referred to pulling the json information from usagereports in the admin directory, but we had interpreted it as pulling the statistics for an individual service like so 

https://<your-server-domain>/arcgis/admin/services/<folder>/<service-name>/Statistics

emoreno_0-1750100821446.png

Any information would be appreciated. We are currently utilizing ArcGIS Monitor as well, and are on Enterprise 10.9.1. I think the key we are looking for is getting this information to an internal database on a regular schedule, without having to create reports manually. Thank you!

 

1 Reply
JakeSkinner
Esri Esteemed Contributor

Hi @emoreno,

Yes, this is possible.  Take a look at the following tool.  This associated script should get you started.