|
15 | 15 | helm repo update
|
16 | 16 | ```
|
17 | 17 |
|
18 |
| -2. Save **[these Prometheus values](https://github.com/microsoft/retina/blob/main/deploy/legacy/prometheus/values.yaml)** below to `deploy/legacy/prometheus/values.yaml` |
19 |
| - |
20 |
| -3. Install the Prometheus chart |
| 18 | +2. Install the Prometheus chart |
21 | 19 |
|
22 | 20 | ```shell
|
23 |
| - helm install prometheus -n kube-system -f deploy/prometheus/values.yaml prometheus-community/kube-prometheus-stack |
| 21 | + helm install prometheus -n kube-system -f deploy/legacy/prometheus/values.yaml prometheus-community/kube-prometheus-stack |
24 | 22 | ```
|
25 | 23 |
|
26 | 24 | Or if you already have the chart installed, upgrade how you see fit, providing the new job name as an additional scrape config, ex:
|
27 | 25 |
|
28 | 26 | ```shell
|
29 |
| - helm upgrade prometheus -n kube-system -f deploy/prometheus/values.yaml prometheus-community/kube-prometheus-stack |
| 27 | + helm upgrade prometheus -n kube-system -f deploy/legacy/prometheus/values.yaml prometheus-community/kube-prometheus-stack |
30 | 28 | ```
|
31 | 29 |
|
32 | 30 | Note: Grafana and kube-state metrics may schedule on Windows nodes, the current chart doesn't have node affinity for those components. Some manual intervention may be required.
|
33 | 31 |
|
34 |
| -6. Verify that the Retina Pods are being scraped by port-forwarding the Prometheus server: |
| 32 | +3. Verify that the Retina Pods are being scraped by port-forwarding the Prometheus server: |
35 | 33 |
|
36 | 34 | ```shell
|
37 | 35 | kubectl port-forward --namespace kube-system svc/prometheus-operated 9090
|
38 | 36 | ```
|
39 | 37 |
|
40 |
| -7. Then go to [http://localhost:9090/targets](http://localhost:9090/targets) to see the Retina Pods being discovered and scraped: |
| 38 | +4. Then go to [http://localhost:9090/targets](http://localhost:9090/targets) to see the Retina Pods being discovered and scraped: |
41 | 39 |
|
42 | 40 | 
|
43 | 41 |
|
44 | 42 | ## Configuring Grafana
|
45 | 43 |
|
46 | 44 | Create a Grafana instance at [grafana.com](https://www.grafana.com) and follow [Configuring Grafana](./grafana.md), or use the one installed from above.
|
47 | 45 |
|
48 |
| -8. Get the Grafana password: |
| 46 | +1. Get the Grafana password: |
49 | 47 |
|
50 | 48 | ```shell
|
51 | 49 | kubectl get secret -n kube-system prometheus-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
|
52 | 50 | ```
|
53 | 51 |
|
54 |
| -9. Import the new dashboard from **[here](https://grafana.com/grafana/dashboards/18814/)**. |
| 52 | +2. Import the new dashboard from **[here](https://grafana.com/grafana/dashboards/18814/)**. |
55 | 53 |
|
56 |
| -10. Metrics should be visible: |
| 54 | +3. Metrics should be visible: |
57 | 55 |
|
58 | 56 | 
|
0 commit comments