Skip to content

Generate CherryPy thread statistics report

hwassman edited this page Apr 15, 2024 · 6 revisions

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

Example report output

User Guide

Installation

Configuration

Maintenance

Troubleshooting

Use cases

Designing dashboards

Developer Guide

Clone this wiki locally