AnsweredAssumed Answered

ArcGIS server does not report any ServiceActiveInstances report usage

Question asked by plinio on Oct 25, 2016
Latest reply on Jan 12, 2017 by plinio

I'm writing scripts to collect usage data from ArcGIS Server in order to generate reports. I used this Esri suport page to develop such scripts.

For simplicity, suppose the following json as my REST data to create an usage report:

{
"reportname": "my_debug_report",
"since": "LAST_DAY",
"queries": [{
"metrics": ["RequestCount", "ServiceActiveInstances"],
"resourceURIs": ["services/MOSAICO/MOSAICO_ORTOFOTO_OESTE_2010.ImageServer"]
}]
}

I receive then the following data:

TimestampRequestCount of services/MOSAICO/MOSAICO_ORTOFOTO_OESTE_2010.ImageServerServiceActiveInstances of services/MOSAICO/MOSAICO_ORTOFOTO_OESTE_2010.ImageServer
147731760000015NO SUCH METRIC SUPPORTED: ServiceActiveInstances
147731940000019NO SUCH METRIC SUPPORTED: ServiceActiveInstances
14773212000000NODATA
14773230000000NODATA
14773248000000NODATA
14773266000000NODATA
14773284000000NODATA
147733020000042NO SUCH METRIC SUPPORTED: ServiceActiveInstances
14773320000000NODATA
147733380000036NO SUCH METRIC SUPPORTED: ServiceActiveInstances
14773356000000NODATA
14773374000000NODATA
14773392000000NODATA
147734100000032NO SUCH METRIC SUPPORTED: ServiceActiveInstances
14773428000000NODATA
14773446000000NODATA
14773464000000NODATA
14773482000000NODATA
14773500000000NODATA
14773518000000NODATA
14773536000000NODATA
14773554000000NODATA
14773572000000NODATA
14773590000000NODATA
14773608000000NODATA
14773626000000NODATA
14773644000000NODATA
14773662000000NODATA
14773680000000NODATA
14773698000000NODATA
14773716000000NODATA
14773734000000NODATA
14773752000000NODATA
14773770000000NODATA
14773788000000NODATA
14773806000000NODATA
14773824000000NODATA
14773842000000NODATA
14773860000000NODATA
14773878000000NODATA
14773896000000NODATA
14773914000000NODATA
14773932000000NODATA
14773950000000NODATA
14773968000000NODATA
14773986000000NODATA
14774004000000NODATA
14774022000000NODATA

 

----

Updates from 2016/10/26

Using the server manager, I could generate the following report:

Despite of the Portuguese stuff, this report is from the same service witch I requested the json at the beginning of this post. In order to learn more about how the web manager do its job, I sniffed the network to capture the json request that generated this manage report and for my surprise I got this json:

{
"reportname": 1477487802255,
"since": "LAST_DAY",
"queries": [{
"resourceURIs": ["services/SISGEOPOLIS/LinhaTrecho23.MapServer"],
"metrics": ["ServiceRunningInstancesMax"]
}],
"metadata": {
"temp": true,
"tempTimer": 1477488074129
}
}

A strange thing here. Please take attention to the metrics array: I don't even know about the ServiceRunningInstancesMax. This official esri doc page was supposed to mention that but it does not.

 

Question 1: since there were service usage, why is ServiceActiveInstances not supported ?

Question 2: Where can I find an up to date documentation about admin usage reports which mentions all metrics, including ServiceRunningInstancesMax ?

Outcomes