Skip to content

Commit c4ccb20

Browse files
committed
feat: improve/simplify a little (KISS 🙂)
1 parent db65dae commit c4ccb20

File tree

1 file changed

+9
-22
lines changed
  • pages/platform/kubernetes-k8s/monitoring-apps-grafana-prometheus

1 file changed

+9
-22
lines changed

pages/platform/kubernetes-k8s/monitoring-apps-grafana-prometheus/guide.en-gb.md

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ slug: monitoring-apps-prometheus-grafana
44
excerpt: 'Find out how to monitor and visualize metrics with Prometheus and Grafana on an OVHcloud Managed Kubernetes Service'
55
section: Monitoring & Observability
66
order: 00
7-
updated: 2023-03-16
7+
updated: 2023-03-17
88
---
99

1010
<style>
@@ -29,7 +29,7 @@ updated: 2023-03-16
2929
}
3030
</style>
3131

32-
**Last updated March 16, 2023.**
32+
**Last updated March 17, 2023.**
3333

3434
## Objective
3535

@@ -83,39 +83,25 @@ Hang tight while we grab the latest from your chart repositories...
8383
Update Complete. ⎈Happy Helming!⎈
8484
</code></pre>
8585

86-
You need to modify some settings. To do this, inspect the chart to retrieve these values ​​in a file:
86+
To install the Prometheus Operator Helm chart in your OVHcloud Managed Kubernetes cluster, you need to customize some values.
87+
To do this, you can set parameters on the command line (`--set param.name=value`) or create a local file based on the values from the chart and pass it on the command line (`--values /tmp/kube-prometheus-stack.values`).
88+
For this tutorial we choosed the first method.
8789

88-
```bash
89-
helm inspect values prometheus-community/kube-prometheus-stack > /tmp/kube-prometheus-stack.values
90-
```
91-
92-
Open the `/tmp/kube-prometheus-stack.values` file in your favorite editor.
93-
94-
Then search into it for `adminPassword` and replace it with the password you want to use for Grafana.
95-
96-
By default, the Grafana password should be like this:
97-
98-
```yaml
99-
adminPassword: prom-operator
100-
```
101-
102-
Copy and save the Grafana admin password, you will use it later in this tutorial.
103-
104-
You are now ready to install Prometheus and Grafana.
90+
To install Prometheus and Grafana:
10591

10692
```bash
10793
helm install prometheus-community/kube-prometheus-stack \
10894
--create-namespace --namespace prometheus \
10995
--generate-name \
110-
--values /tmp/kube-prometheus-stack.values \
11196
--set prometheus.service.type=LoadBalancer \
11297
--set prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues=false \
11398
--set grafana.service.type=LoadBalancer
99+
--set grafana.adminpassword=<my cool password>
114100
```
115101

116102
> [!primary]
117103
>
118-
> You can install only prometheus without Grafana by setting the following property to false: `--set grafana.enabled=false`
104+
> You can install only Prometheus without Grafana by setting the following property to false: `--set grafana.enabled=false`
119105
>
120106
121107
As you can see, a new `prometheus` namespace will be created and we specified that we want to deploy a LoadBalancer in order to access externally to Prometheus and Grafana easily.
@@ -129,6 +115,7 @@ You should have a behavior like this:
129115
--set prometheus.service.type=LoadBalancer \
130116
--set prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues=false \
131117
--set grafana.service.type=LoadBalancer
118+
--set grafana.adminpassword=myawesomepassword
132119
NAME: kube-prometheus-stack-1647417678
133120
LAST DEPLOYED: Wed Mar 16 09:01:23 2022
134121
NAMESPACE: prometheus

0 commit comments

Comments
 (0)