# Kubernetes Cluster Monitoring

> Monitor your Kubernetes cluster with Last9 for comprehensive metrics collection

Source: https://last9.io/docs/integrations/containers-and-k8s/kubernetes-cluster-monitoring/

Monitor your Kubernetes cluster with Last9 — node metrics, pod metrics, kube-state-metrics, and cAdvisor all included.

## Prerequisites

- A running Kubernetes cluster (v1.19+)
- [helm](https://helm.sh/) v3.9+ installed
- Cluster admin access
- Prometheus remote write credentials from the [Integrations](https://app.last9.io/integrations) page

## Installation

```bash
curl -O https://raw.githubusercontent.com/last9/last9-k8s-observability/main/last9-otel-setup.sh
chmod +x last9-otel-setup.sh

./last9-otel-setup.sh monitoring-only \
  monitoring-endpoint="$last9_remote_write_url" \
  username="$last9_remote_write_username" \
  password="$last9_remote_write_password"
```

## Verification

```bash
kubectl get pods -n last9
```

Metrics appear in [Metrics Explorer](https://app.last9.io/metrics).

## Uninstall

```bash
./last9-otel-setup.sh uninstall function="uninstall_last9_monitoring"
```

---

## Operating across multiple clusters

If you are running this setup across more than a handful of clusters, see the guide on [Managing OpenTelemetry Collector Configuration Across Multiple Clusters](https://last9.io/guides/opentelemetry/managing-otel-collector-configuration-across-clusters/) for directory layout, per-tenant overrides, secrets handling, and apply workflow patterns.

---

## Troubleshooting

Please get in touch with us on [Discord](https://discord.com/invite/Q3p2EEucx9) or [Email](mailto:support@last9.io) if you have any questions.
