diff --git a/docs/managed-victoriametrics/how-to-monitor-k8s.md b/docs/managed-victoriametrics/how-to-monitor-k8s.md
index 71e667438e..cc6142b9d0 100644
--- a/docs/managed-victoriametrics/how-to-monitor-k8s.md
+++ b/docs/managed-victoriametrics/how-to-monitor-k8s.md
@@ -25,6 +25,7 @@ In this guide we will be using [victoria-metrics-k8s-stack](https://github.com/V
This chart will install `VMOperator`, `VMAgent`, `NodeExporter`, `kube-state-metrics`, `grafana` and some service scrape configurations to start monitoring kubernetes cluster components
## Prerequisites
+
- Active Managed VictoriaMetrics instance. You can learn how to signup for Managed VictoriaMetrics [here](https://docs.victoriametrics.com/managed-victoriametrics/quickstart.html#how-to-register).
- Access to your kubernetes cluster
- Helm binary. You can find installation [here](https://helm.sh/docs/intro/install/)
@@ -34,27 +35,33 @@ Install the Helm chart in a custom namespace
1. Create a unique Kubernetes namespace, for example `monitoring`
+
```bash
kubectl create namespace monitoring
```
+
1. Create kubernetes-secrets with token to access your dbaas deployment
+
```bash
kubectl --namespace monitoring create secret generic dbaas-write-access-token --from-literal=bearerToken=your-token
kubectl --namespace monitoring create secret generic dbaas-read-access-token --from-literal=bearerToken=your-token
```
+
You can find your access token on the "Access" tab of your deployment
1. Set up a Helm repository using the following commands:
+
```bash
helm repo add grafana https://grafana.github.io/helm-charts
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add vm https://victoriametrics.github.io/helm-charts
helm repo update
```
+
1. Create a YAML file of Helm values called dbaas.yaml with following content
@@ -96,12 +103,15 @@ Install the Helm chart in a custom namespace
grafana:
enabled: true
```
+
1. Install VictoriaMetrics-k8s-stack helm chart
+
```bash
helm --namespace monitoring install vm vm/victoria-metrics-k8s-stack -f dbaas.yaml -n monitoring
```
+
## Connect grafana
@@ -112,15 +122,19 @@ Connect to grafana and create your datasource
1. Get grafana password
+
```bash
kubectl --namespace monitoring get secret vm-grafana -o jsonpath="{.data.admin-password}" | base64 -d
```
+
1. Connect to grafana
+
```bash
kubectl --namespace monitoring port-forward service/vm-grafana 3000:80
```
+
1. Open grafana in your browser [http://localhost:3000/datasources](http://localhost:3000/datasources)