Generate CherryPy thread statistics report - IBM/ibm-spectrum-scale-bridge-for-grafana GitHub Wiki
Generate CherryPy server threads performance statistics report
The IBM Storage Scale bridge for Grafana uses the built-in CherryPy HTTP/S server for server-to-client communication. The CherryPy engine supports the operation of multiple HTTP servers.
The IBM Storage Scale Bridge for Grafana provides an option to enable the collection and reporting of performance statistics for the CherryPy engine itself, registered servers and their child threads.
To enable statistics collection, set the cherrypy_internal_stats parameter to True in the ./source/analytics file and restart the bridge.
global cherrypy_internal_stats
cherrypy_internal_stats = True
To generate the HTML report, enter the fully qualified address of the endpoint /cherrypy_internal_stats in your browser's search bar or invoke it with a CURL command on the command line.
# curl http://<grafana_bridge_ip>:4242/cherrypy_internal_stats/ -u scale_admin:<basic_auth_pw> > /tmp/internal_report.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16188 100 16188 0 0 3161k 0 --:--:-- --:--:-- --:--:-- 3952k