Skip to content

Setup CherryPy

hwassman edited this page Jul 15, 2023 · 3 revisions

Getting CherryPy packages

The easiest way to install the CherryPy packages on your computer is using PIP (Python Package Manager)

# pip3 install cherrypy

If you are not allowed to install and use PIP on your machine, you can try to use the CherryPy package shipped with gpfs.rpms. Check on the pmcollector node, where you are going to install grafana-bridge, that the package "/usr/lpp/mmfs/lib/python_external_libs.zip" exists. Add the package location to the Python Path.

# export PYTHONPATH="${PYTHONPATH}:/usr/lpp/mmfs/lib/python_external_libs.zip"
# python3
Python 3.6.8 (default, Jan 14 2022, 11:04:20)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> from pprint import pprint as p
>>> p(sys.path)
['',
 '/usr/lpp/mmfs/lib',
 '/usr/lpp/mmfs/lib/python_external_libs.zip',           < is in Python Path
 '/usr/lib64/python36.zip',
 '/usr/lib64/python3.6',
 '/usr/lib64/python3.6/lib-dynload',
 '/usr/local/lib64/python3.6/site-packages',
 '/usr/local/lib/python3.6/site-packages',
 '/usr/lib64/python3.6/site-packages',
 '/usr/lib/python3.6/site-packages']
>>>

Establish connection to the running bridge in Grafana

Define a new data source (Data Sources -> Add New)

NOTE: Per default the IBM Spectrum Scale bridge listens on port 4242 for HTTP connections. For HTTPS(SSL) connections you need to set the appropriate protocol settings on the bridge start. Follow the instructions Generate SSL certificates to generate a private ssl key and a ssl certificate

Grafana now can talk to Spectrum Scale Performance Monitoring tool via the bridge. Follow the grafana instructions to create dashboards.

User Guide

Installation

Configuration

Maintenance

Troubleshooting

Use cases

Designing dashboards

Developer Guide

Clone this wiki locally