diff --git a/README.md b/README.md index b8e8624..161f4a7 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ * [Deploying a LE-certificate with ingress](#cert-manager-ingress) * [Deploying a LE-certificate by CRD](#cert-manager-crd) * [Troubleshooting](#cert-manager-troubleshooting) +* [Cluster monitoring with Prometheus/Grafana](#prometheus-grafana) +* [Log correlation with Loki-stack/Grafana](#loki-stack) * [HELM charts](#helm) * [Create a chart](#helm-create) * [Install local chart without packaging](#helm-install-without-packaging) @@ -557,6 +559,30 @@ After successfull setup perform a TLS-test: * https://testssl.sh/ (`apt install testssl.sh`) * https://www.ssllabs.com/ssltest/index.html +# Cluster monitoring with Prometheus/Grafana +``` +helm repo add prometheus-community https://prometheus-community.github.io/helm-charts +helm repo update +kubectl create ns prom +helm install --namespace prom -f values.yaml prom-stack prometheus-community/kube-prometheus-stack + +# access web ui at http://localhost:8080 OR configure an ingress instance +kubectl -n prom port-forward service/prom-stack-grafana 8080:80 +``` + +# Log correlation with Loki-stack/Grafana +Docs: https://github.com/grafana/helm-charts/tree/main/charts/loki-stack +``` +helm repo add grafana https://grafana.github.io/helm-charts +helm repo update +kubectl create ns loki-stack +helm upgrade --install loki --namespace=loki-stack grafana/loki-stack --set grafana.enabled=true + +# access web ui at http://localhost:8888 OR configure an ingress instance +kubectl get secret -n loki-stack loki-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo +kubectl -n loki-stack port-forward service/loki-grafana 8888:80 +``` + # HELM charts Docs: * https://helm.sh/docs/intro/using_helm/