Monitoring with Prometheus and Grafana
Streaming Data Manager deploys Prometheus to scrape and store all the metrics, and monitor the health of your cluster. You can easily monitor and explore the health using a Grafana dashboard.
In this article, you can learn how to open a Prometheus and Grafana dashboard for the Streaming Data Manager by utilizing the Kubernetes port forwarding feature.
Install Calisti with Streaming Data Manager.
Note: To install Streaming Data Manager on an existing Service Mesh Manager installation, the cluster must run Service Mesh Manager version 1.11.0 or later. If your cluster is running an earlier Service Mesh Manager version, you must upgrade it first.
- Set up Prometheus AlertManager for alerting in Streaming Data Manager.
Open Prometheus dashboard
Open your terminal, and use the following command to open the Prometheus dashboard.
kubectl port-forward -n supertubes-system svc/prometheus-operator-prometheus 9090
Open the port 9090 in your browser.
Once you open the localhost you can see the Streaming Data Manager metrics.
Open Grafana dashboard
Open your terminal, and use the following command to open the Grafana dashboard.
kubectl port-forward -n supertubes-system deployment/prometheus-operator-grafana 3000
Open the port 3000 in your browser.
By default, the login credentials for the Grafana dashboard are, Username:admin Password:grafana
You can configure the password in ApplicationManifest custom resource as shown in this example.
Once you login you can see the Streaming Data Manager metrics.