Monitor Portal generateToken service

727
2
Jump to solution
07-22-2021 06:30 AM
WalterSimonazzi_VicPol
New Contributor III

Is there a way to monitor how many generateToken requests Portal receives and how many tokens are being managed by portal?

https://[url]/gisportal/sharing/rest/generateToken

A bad design in a third party application using a geoprocessing service from a server federated with Portal, caused the application to request 4 tokens per second to our Portal during a long period of time. Fortunately Portal handled the "attack" pretty well.

In order to avoid another situation like this one in the future, we would like to have visibility of how many requests the token service is attending and how many tokens Portal is managing during a chosen period of time - in a similar way you can do it with any other service. 

Is this possible?

 

@AndrewSakowicz 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
DerekLaw
Esri Esteemed Contributor

Hi @WalterSimonazzi_VicPol

> Is there a way to monitor how many generateToken requests Portal receives and how many tokens are being managed by portal?

This functionality is not available in ArcGIS Monitor because this information is not available in the ArcGIS Admin API and therefore not cannot be queried by ArcGIS Monitor. Sorry.

One potential workaround option is to write a custom code extension to parse web logs for a specific request signature.

Hope this helps,

View solution in original post

2 Replies
WalterSimonazzi_VicPol
New Contributor III

Hi @DerekLaw Is the above possible?

0 Kudos
DerekLaw
Esri Esteemed Contributor

Hi @WalterSimonazzi_VicPol

> Is there a way to monitor how many generateToken requests Portal receives and how many tokens are being managed by portal?

This functionality is not available in ArcGIS Monitor because this information is not available in the ArcGIS Admin API and therefore not cannot be queried by ArcGIS Monitor. Sorry.

One potential workaround option is to write a custom code extension to parse web logs for a specific request signature.

Hope this helps,