Export cluster metrics to Prometheus
Export a set of WEKA cluster metrics from LWH directly into Prometheus without using WEKAmon.
Last updated
Export a set of WEKA cluster metrics from LWH directly into Prometheus without using WEKAmon.
Last updated
Local WEKA Home (LWH) allows exporting key cluster metrics directly to Prometheus using a custom application that follows the .
This feature is designed for customers who do not use the monitoring utility but still need to integrate essential cluster statistics into their Prometheus environments.
Key exported metrics include:
Throughput metrics
IO performance metrics
Cluster resource metrics
Cluster health and alerts
Cluster capacity metrics
To export Prometheus metrics from LWH, implement the Prometheus API call within a custom application to retrieve metrics at the required intervals. This procedure demonstrates the operation using the curl
command to extract the metrics.
Procedure
Generate the Cluster API Key
Log in to Local WEKA Home.
Select the Admin page, select the API KEYS tab.
Select Generate New Key.
Copy the generated API key for later use.
Export metrics in Prometheus format
Use the following API call, replacing <cluster_id>
with your cluster ID and <cluster_api_key>
with the API key from Step 1:
The command returns Prometheus-formatted metrics cluster information.
Import the metrics into Prometheus
Configure Prometheus to import the exported metrics.
Use the Prometheus UI to visualize and monitor the metrics.
Related information