Grafana/Prometheus monitor
... / Grafana/Prometheus monitor
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
question

Grafana/Prometheus monitor

Par
KarimF5
Créé le 2018-06-12 12:06:50 (edited on 2024-09-04 11:22:07) dans Conteneurs et Orchestration

Bonjour,

J'essaye d'implémenter un système de monitoring pour mon cluster Kubernetes en suivant la documentation officielle :
https://docs.ovh.com/gb/en/kubernetes/monitoring-apps-prometheus-grafana/

Mais cela ne marche toujours pas, fort probable vu que mon cluster est développé sur du Helm2 alors que la doc est sur du Helm3.

Avez-vous des alternatives pour installer ce type de monitoring ( ou autre ) sur les cluster Kubernetes - helm2 ?
Super merci

Erreurs rencontrées:

kubectl create ns prometheus
namespace/prometheus created

helm install prometheus-community/kube-prometheus-stack --namespace prometheus --generate-name --values /tmp/kube-prometheus-stack.values --set prometheus.service.type=LoadBalancer --set prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues=false --set grafana.service.type=LoadBalancer

Error: failed to download "prometheus-community/kube-prometheus-stack" (hint: running `helm repo update` may help)

sudo helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
"prometheus-community" has been added to your repositories

sudo helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "nginx-stable" chart repository
...Successfully got an update from the "haproxytech" chart repository
...Successfully got an update from the "grafana" chart repository
...Successfully got an update from the "prometheus-community" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈


helm install prometheus-community/kube-prometheus-stack --namespace prometheus --generate-name --values /tmp/kube-prometheus-stack.values --set prometheus.service.type=LoadBalancer --set prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues=false --set grafana.service.type=LoadBalancer
Error: failed to download "prometheus-community/kube-prometheus-stack" (hint: running `helm repo update` may help)

sudo helm install prometheus-community/kube-prometheus-stack --namespace prometheus --generate-name --values /tmp/kube-prometheus-stack.values --set prometheus.service.type=LoadBalancer --set prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues=false --set grafana.service.type=LoadBalancer

Error: Kubernetes cluster unreachable

helm version
version.BuildInfo{Version:"v3.1.2", GitCommit:"d878d4d45863e42fd5cff6743294a11d28a9abce", GitTreeState:"clean", GoVersion:"go1.13.8"}