Skip to content

Start stop and restart the IBM Storage Scale Bridge for Grafana using systemd

hwassman edited this page May 2, 2024 · 1 revision

You can use the grafana-bridge.service file to give systemd control over starting and stopping the IBM Storage Scale Bridge for Grafana.

Note: You may need to edit this file and update the WorkingDirectory path with the path where the IBM Storage Scale bridge source code is located on your machine.

Follow these steps to enable and start the grafana-bridge systemd service:

# cp <my-grafana-bridge-source-location>/grafana-bridge.service /etc/systemd/system/
# sudo systemctl daemon-reload
# sudo systemctl enable grafana-bridge.service
# sudo systemctl start grafana-bridge.service

To ensure that the IBM Storage Scale Bridge for Grafana is running, run the command:

# systemctl status grafana-bridge
● grafana-bridge.service - IBM Storage Scale bridge for Grafana
     Loaded: loaded (/etc/systemd/system/grafana-bridge.service; enabled; preset: disabled)
     Active: active (running) since Thu 2024-05-02 21:35:05 CEST; 4s ago
   Main PID: 2594419 (python3)
      Tasks: 26 (limit: 74702)
     Memory: 60.2M
        CPU: 609ms
     CGroup: /system.slice/grafana-bridge.service
             └─2594419 /usr/bin/python3 -u source/zimonGrafanaIntf.py

May 02 21:35:05 scale-11 systemd[1]: Started IBM Storage Scale bridge for Grafana.
May 02 21:35:05 scale-11 grafana-bridge[2594419]: 2024-05-02 21:35 - MainThread                 - INFO     -  *** IBM Storage Scale bridge for>
May 02 21:35:05 scale-11 grafana-bridge[2594419]: 2024-05-02 21:35 - MainThread                 - INFO     - Successfully retrieved MetaData
May 02 21:35:05 scale-11 grafana-bridge[2594419]: 2024-05-02 21:35 - MainThread                 - INFO     - Received sensors:CPU, DiskFree, G>
May 02 21:35:05 scale-11 grafana-bridge[2594419]: 2024-05-02 21:35 - MainThread                 - INFO     - Initial cherryPy server engine st>
May 02 21:35:05 scale-11 grafana-bridge[2594419]: [GCC 11.3.1 20221121 (Red Hat 11.3.1-4)], cherryPy version: 18.9.0.
May 02 21:35:06 scale-11 grafana-bridge[2594419]: 2024-05-02 21:35 - MainThread                 - INFO     - Registered applications:
May 02 21:35:06 scale-11 grafana-bridge[2594419]:  OpenTSDB Api listening on Grafana queries,
May 02 21:35:06 scale-11 grafana-bridge[2594419]:  Prometheus Exporter Api listening on Prometheus requests
May 02 21:35:06 scale-11 grafana-bridge[2594419]: 2024-05-02 21:35 - MainThread                 - INFO     - server started

User Guide

Installation

Configuration

Maintenance

Troubleshooting

Use cases

Designing dashboards

Developer Guide

Clone this wiki locally