Skip to content

Monitoring Cassandra

ragsns edited this page Oct 6, 2021 · 13 revisions

2. Monitoring Cassandra

✅ Step 1: Monitor your system

K8ssandra takes monitoring and observability very seriously and provides us with built-in Grafana and Prometheus (but of course you can use external - batteries are included but swappable).

For Local and Civo installs: setup port forwarding with the following command

kubectl port-forward svc/k8ssandra-grafana 9191:80 &
kubectl port-forward svc/prometheus-operated 9292:9090 &
kubectl port-forward svc/k8ssandra-reaper-reaper-service 9393:8080 &

To find the UI for Grafana and Prometheus use the links page in your instance and click on the corresponding Grafana and Prometheus.

For Local and Civo installs: Use the links for Prometheus: http://127.0.0.1:9292 and Grafana: http://127.0.0.1:9191

OR

For Datastax provided VMs: Use the links (NOTE: The trailing slash is required)<YOURADDRESS>:8080/prometheus/ and <YOURADDRESS>:8080/grafana/ respectively. .

For Prometheus, From the Status menu, choose Targets. Verify that the stargate/0 and k8ssandra/0 are in the state UP:

images

For Grafana the credentials are:

username: admin
password: admin

(Note: If you wanted to retrieve the values using kubectl, you could have used the commands below)

helm show values k8ssandra/k8ssandra | grep "adminUser"
helm show values k8ssandra/k8ssandra | grep "adminPassword"

Click the home button indicated by the arrow:

images

and the Cassandra Overview dashboard to see the dashboard as below.

images

images

Locate the panel on the left and pick Dashboard > Manage. Then click the ellipsis to show the available dashboards images

Cassandra Overview images

Cassandra Cluster Condenses images

Cassandra Node Metrics images

Next Step

Proceed to the Step III