-
Notifications
You must be signed in to change notification settings - Fork 22
Grafana bridge fails to start with Python3.8
hwassman edited this page Jun 5, 2024
·
1 revision
# python3.8 zimonGrafanaIntf.py -c 10
2024-03-01 00:00 - MainThread - INFO - *** IBM Storage Scale bridge for Grafana - Version: 7.1.2 ***
2024-03-01 00:00 - MainThread - ERROR - Failed to initialize connection to pmcollector: name 'requests' is not defined, quitting
This issue has been experienced on a RHEL8 system while running the Grafana bridge with Python 3.8. See #187 for more details.
-
Verify the Python and RHEL version on your system
# python3.8 Python 3.8.16 (default, Dec 21 2022, 10:58:32) [GCC 8.5.0 20210514 (Red Hat 8.5.0-17)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> # cat /etc/redhat-release Red Hat Enterprise Linux release 8.8 (Ootpa)
-
Verify the Python packages are installed on your system
# pip3.8 list Package Version ------------------- --------- annotated-types 0.6.0 autocommand 2.2.2 cheroot 10.0.0 CherryPy 18.9.0 importlib-resources 6.1.2 inflect 7.0.0 jaraco.collections 5.0.0 jaraco.context 4.3.0 jaraco.functools 4.0.0 jaraco.text 3.12.0 more-itertools 10.2.0 pip 19.3.1 portend 3.2.0 pydantic 2.6.3 pydantic-core 2.16.3 pytz 2024.1 setuptools 41.6.0 tempora 5.5.1 typing-extensions 4.10.0 zc.lockfile 3.0.post1 zipp 3.17.0
If the package is not present, install it using the following command
# pip3.8 install requests
-
Verify after installing requests package the grafana-bridge starts properly
Example output:
# python3.8 zimonGrafanaIntf.py -c 10 2024-03-01 00:02 - MainThread - INFO - *** IBM Storage Scale bridge for Grafana - Version: 7.1.2 *** 2024-03-01 00:02 - MainThread - INFO - Successfully retrieved MetaData 2024-03-01 00:02 - MainThread - INFO - Received sensors:CPU, DiskFree, GPFSBufMgr, GPFSFilesystem, GPFSFilesystemAPI, GPFSNSDDisk, GPFSNSDFS, GPFSNSDPool, GPFSNode, GPFSNodeAPI, GPFSRPCS, GPFSVFSX, GPFSWaiters, IPFIX, Load, , Netstat, Network, TopProc, CTDBDBStats, CTDBStats, SMBGlobalStats, SMBStats, GPFSFileset, GPFSPool 2024-03-01 00:02 - MainThread - INFO - Initial cherryPy server engine start have been invoked. Python version: 3.8.16 (default, Dec 21 2022, 10:58:32) [GCC 8.5.0 20210514 (Red Hat 8.5.0-17)], cherryPy version: 18.9.0. 2024-03-01 00:02 - MainThread - INFO - server started
Visit the IBM Storage Scale Knowledge Center for getting more info about the latest product updates
-
- Setup classic Grafana
- Make usage of Grafana Provisioning feature
-
- Installing RedHat community-powered Grafana operator from OperatorHub
- Creating Grafana instance using the RedHat community-powered Grafana-operator
- Creating Grafana Datasorce instance from Custom Resource managed by the RedHat community powered Grafana operator
- Importing the predefined dashboard from the example dashboards collection
- Exploring Grafana WEB interface for CNSA project in a k8s OCP environment
- How to setup Grafana instance to monitor multiple IBM Storage Scale clusters running in a cloud or mixed environment
- API key authentication
- Configurable bridge settings
- CherryPy builtin HTTP server settings
- How to setup HTTPS(SSL) connection
- Start and stop grafana-bridge with systemd
- Refresh IBM Storage Scale cluster configuration data cached by grafana bridge
- Accelerate the PrometheusExporter data retrieval time
- Grafana Dashboard Panel shows no metric values for a particular entity
- Missing Grafana-Operator on an OpenShift cluster
- Missing CherryPy packages
- What to do if your system is on Python < 3.8
- Grafana-bridge fails to start with Python3.8
- Grafana-bridge container time is different from a host time
- Verify that the grafana-bridge returns data as expected