prom install

This commit is contained in:
baschno
2024-12-28 19:50:13 +01:00
parent 61eee639da
commit fc3af3dee4
2 changed files with 191 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack#configuration
```
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
```
Use for `helm` values:
https://github.com/cablespaghetti/k3s-monitoring/blob/master/kube-prometheus-stack-values.yaml
```
helm upgrade --install prometheus prometheus-community/kube-prometheus-stack --create-namespace --namespace monitoring --values kube-prometheus-stack-values.yaml
```
Accessing UIs via PortForwarding
```
kubectl port-forward svc/prometheus-grafana 8080:80 -n monitoring
kubectl port-forward svc/prometheus-kube-prometheus-prometheus 9090 -n monitoring
kubectl port-forward svc/prometheus-kube-prometheus-alertmanager 9093 -n monitoring
```
This will make Grafana accessible on http://localhost:8080, Prometheus on http://localhost:9090 and Alert Manager on http://localhost:9093
Login for Grafana:
**User:** admin
**Pwd:** prom-operator