Skip to content
Snippets Groups Projects
Commit 1d43170c authored by david.truong.hes's avatar david.truong.hes
Browse files

Docs, rook-ceph: Ajout des commandes pour activer le monitoring dans Prometheus

parent eac7deda
Branches main
No related tags found
No related merge requests found
......@@ -12,6 +12,8 @@ spec:
dashboard:
enabled: true
ssl: true
prometheusEndpoint: http://10.136.126.180:30900
prometheusEndpointSSLVerify: true
mon:
count: 3
......
......@@ -15,6 +15,27 @@ kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- bash
helm get manifest rook-ceph -n rook-ceph
Monitoring - Prometheus
apt-get install git
git clone --single-branch --branch v1.17.0 https://github.com/rook/rook.git
cd rook/deploy/examples/monitoring
kubectl apply -f service-monitor.yaml
kubectl apply -f exporter-service-monitor.yaml
kubectl apply -f prometheus.yaml
kubectl apply -f prometheus-service.yaml
kubectl -n rook-ceph get pod prometheus-rook-prometheus-0
echo "http://$(kubectl -n rook-ceph -o jsonpath={.status.hostIP} get pod prometheus-rook-prometheus-0):30900"
Editer yaml CRD cluster avec :
spec:
dashboard:
prometheusEndpoint: http://192.168.61.204:30900
prometheusEndpointSSLVerify: true
echo "http://$(kubectl -n rook-ceph -o jsonpath={.status.hostIP} get pod prometheus-rook-prometheus-0):30900"
Dashboard
kubectl -n rook-ceph get secret rook-ceph-dashboard-password -o jsonpath="{.data.password}" | base64 -d && echo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment