-
Notifications
You must be signed in to change notification settings - Fork 28
Configuring PrometheusExporter for scraping Linux sensors metrics
By default, the IBM Storage Scale bridge for Grafana PrometheusExporter plugin is configured to scrape GPFS sensor metrics. Nevertheless, the IBM Storage Scale Performance Monitoring Tool (ZiMon) also collects Linux operating system metrics-such as CPU utilization and memory usage-on every node in the cluster. You can add the endpoints for Linux sensors to the bridge configuration manually and let Prometheus pull them as well. However, please note that it is generally recommended to use the standard Prometheus NodeExporter to collect Linux-specific OS metrics instead.
By default, prometheus_endpoints.json lists only GPFS sensors (e.g. GPFSFilesystem, GPFSDisk, ...)
Two additional endpoints are available for Linux OS metrics:
| Endpoint | Sensor | Description |
|---|---|---|
/metrics_cpu |
CPU |
Per-node CPU utilisation metrics collected by ZiMon |
/metrics_memory |
Memory |
Per-node memory usage metrics collected by ZiMon |
Append the following jobs to the scrape_configs section of your prometheus.yml. Replace <grafana_bridge_ip> with the hostname or IP address of the host running the grafana-bridge.
Recommended scrape interval:
10s
A shorter interval may cause Prometheus to run into performance issues during data retrieval because each scrape issues a live ZiMon query.
- job_name: 'CPU'
scrape_interval: 10s
honor_timestamps: true
metrics_path: '/metrics_cpu'
scheme: http
basic_auth:
username: 'scale_admin'
password: 'TXlWZXJ5U3Ryb25nUGFzc3cwcmQhCg=='
static_configs:
- targets: ['<grafana_bridge_ip>:9250']
- job_name: 'Memory'
scrape_interval: 10s
honor_timestamps: true
metrics_path: '/metrics_memory'
scheme: http
basic_auth:
username: 'scale_admin'
password: 'TXlWZXJ5U3Ryb25nUGFzc3cwcmQhCg=='
static_configs:
- targets: ['<grafana_bridge_ip>:9250'] - job_name: 'CPU'
scrape_interval: 10s
honor_timestamps: true
metrics_path: '/metrics_cpu'
scheme: https
tls_config:
cert_file: /etc/prometheus/certs/cert.pem
key_file: /etc/prometheus/certs/privkey.pem
insecure_skip_verify: true
basic_auth:
username: 'scale_admin'
password_file: /etc/prometheus/certs/basic_auth
static_configs:
- targets: ['<grafana_bridge_ip>:9250']
- job_name: 'Memory'
scrape_interval: 10s
honor_timestamps: true
metrics_path: '/metrics_memory'
scheme: https
tls_config:
cert_file: /etc/prometheus/certs/cert.pem
key_file: /etc/prometheus/certs/privkey.pem
insecure_skip_verify: true
basic_auth:
username: 'scale_admin'
password_file: /etc/prometheus/certs/basic_auth
static_configs:
- targets: ['<grafana_bridge_ip>:9250']Restart the Prometheus service after modifying the prometheus.yml file:
systemctl restart prometheusAfter configuring Prometheus you can verify that the grafana-bridge exposes the new endpoints by querying them directly:
# HTTP
curl -u scale_admin:<password> http://<grafana_bridge_ip>:9250/metrics_cpu
curl -u scale_admin:<password> http://<grafana_bridge_ip>:9250/metrics_memory
# HTTPS
curl -k -u scale_admin:<password> https://<grafana_bridge_ip>:9250/metrics_cpu
curl -k -u scale_admin:<password> https://<grafana_bridge_ip>:9250/metrics_memoryA successful response will return Prometheus-format text lines beginning with # HELP and # TYPE
You can also list all registered PrometheusExporter endpoints via the REST API:
curl -u scale_admin:<password> http://<grafana_bridge_ip>:9250/exporter_metrics_endpointsVisit 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
- Configure PrometheusExporter for scraping linux sensor metrics
- Refresh IBM Storage Scale cluster configuration data cached by grafana bridge
- Accelerate the PrometheusExporter data retrieval time
- Optimize the performance of PrometheusExporter by using scrape_job params settings
- 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
- Grafana-bridge container does not return metrics for sensors restricted to a subset of nodes
- Verify that the grafana-bridge returns data as expected
- Grafana-bridge HTTP REST Api interface
- How to monitor performance of the IBM Storage Scale bridge for Grafana