Monitor WEKA clusters in Kubernetes with Prometheus and Grafana
Deploy Prometheus and Grafana to monitor the health and performance of WEKA clusters in Kubernetes.
Use Prometheus and Grafana to monitor the health and performance of WEKA clusters deployed in Kubernetes, including metrics such as throughput, CPU utilization, IOPS, and API requests. Starting with version v1.7.0, the WEKA Operator exposes these metrics by default, allowing Prometheus to scrape them and Grafana to visualize them. No additional installation flags or service monitor configurations are required.
Related topic
WEKA Operator day-2 operations
Before you begin
You have
helmandkubectlcommand-line tools installed and configured to interact with your Kubernetes cluster.(Optional) WEKA
storageClassesare configured to provide persistent storage for Prometheus and Grafana.
Related information
WEKA Operator v1.7.0 release notes
Workflow
Step 1: Install Prometheus and Grafana
Step 2: Install or upgrade the WEKA Operator
Step 3: Access Prometheus server
Step 4: Access Grafana landing page
Step 1: Install Prometheus and Grafana
Use Helm to install Prometheus and Grafana in your Kubernetes cluster.
Create separate namespaces for Prometheus and Grafana.
Add and update the Helm repositories for Prometheus and Grafana.
Install Prometheus. To configure persistent storage, add the flag:
--set server.persistentVolume.storageClass=<your-storage-class>.
Sample output of Prometheus Helm installation
Install Grafana. To configure persistent storage, add the flag:
--set persistence.enabled=true,persistence.storageClassName=<your-storage-class>.
Sample output of Grafana Helm installation
Step 2: Install or upgrade the WEKA Operator
Install the WEKA Operator Helm chart, or upgrade to version v1.7.0 or later if already installed.
This ensures proper configuration of podMonitors, which is a custom resource defined by the Prometheus for scraping WEKA statistics. The WEKA Operator can only deploy podMonitors if the Prometheus is installed beforehand. When the CRD is available, the WEKA Operator Helm chart installs the podMonitors automatically.
Related topic
Step 3: Access Prometheus server
After installation, access the Prometheus web UI to verify that it is scraping metrics from the WEKA Operator.
Port-forward to the Prometheus server to access its web UI from your local machine.
In a web browser, navigate to
http://localhost:9090.Verify that WEKA metrics are available.
In the query field, type
weka_. All WEKA metrics follow this naming convention.
Step 4: Access Grafana landing page
Access the Grafana UI to configure the Prometheus data source and import the pre-built WEKA dashboard.
Retrieve the admin password for Grafana.
Get the URL to access the Grafana UI.
In a web browser, navigate to the Grafana URL and log in. Use the username
adminand the password retrieved in the previous step.Add Prometheus as a data source in Grafana.
On Grafana, select Data sources.
Select prometheus.
In the Connection setting, add the URL
http://prometheus-server.prometheus.svc.cluster.local.

Import the WEKA dashboard.
Navigate to the WEKA GitHub repository and copy the
weka-dashboard.jsoncontent.On Grafana, select Dashboards.
Select WEKA.
Select New > Import.
Paste the
weka-dashboard.jsoncontent to the import box, and select Load.Select Import.

Last updated