Setup Prometheus - IBM/ibm-spectrum-scale-bridge-for-grafana GitHub Wiki

Install Prometheus

Refer to the Prometheus installation guide for instructions on how to install Prometheus. It is recommended to read the article First Steps with Prometheus also.

Configure Prometheus Server to gather performance metrics from IBM Storage Scale devices

You need to add an individual scrape job to the Prometheus configuration file (prometheus.yaml) for each IBM Storage Scale performance data collection sensor that you want to expose to Prometheus.

NOTE:

  • Only sensors listed in the grafana-bridge prometheus-endpoints.json file are supported. The scrape job metrics_path must match the endpoint name specified in the grafana-bridge prometheus-endpoints.json file.
  • The scrape job interval must also match the sensor period configured by the IBM Storage Scale performance monitoring tool.
  • The SSL key and certificate configured for the Prometheus API within the IBM Storage Scale bridge for Grafana must be accessible to the Prometheus server.

An example of the prometheus.yaml file can be found at https://github.com/IBM/ibm-spectrum-scale-bridge-for-grafana/tree/master/examples/prometheus_config_file.

Restart the Prometheus service after modifying the prometheus.yaml file.

# systemctl restart prometheus

Verify Prometheus Server is serving the IBM Storage Scale metrics

You should be able to browse to a status page about Prometheus itself at http://localhost:9090.

You can also verify that Prometheus is serving the IBM Storage Scale metrics by navigating to the Prometheus service discovery page: http://localhost:9090/service-discovery?search=.