Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Kubernetes-Networking/Section4/lab.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@

## Configuring Grafana and Prometheus

```bash
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts

helm repo update

helm install kube-prometheus -n monitoring prometheus-community/kube-prometheus-stack --create-namespace
```

Forward the port of the UI so you can log into Prometheus and see the Metrics.

```
kubectl --namespace monitoring port-forward svc/prometheus-k8s 9090
```bash
kubectl --namespace monitoring port-forward svc/prometheus-operated 9090
```

Forward the port of the Grafana UI so you can log in and see the graphs


```
```bash
kubectl --namespace monitoring port-forward svc/kube-prometheus-grafana 3000:80
```

Expand Down Expand Up @@ -81,4 +82,4 @@ spec:
maxReplicas: 10
targetCPUUtilizationPercentage: 50
EOF
```
```