Files
casa/services/monitoring/prometheus/deploy/README.md
T
2026-06-07 21:43:49 +00:00

44 lines
972 B
Markdown

# Prometheus Setup
## helm chart
```bash
#add repo
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
```
**This helm chart, installs:**
- crd
- Operator
- kubernetes services monitors
```bash
kubectl get namespace monitoring || kubectl create namespace monitoring
helm upgrade --install prometheus-stack prometheus-community/kube-prometheus-stack \
--version=86.0.1 \
--namespace monitoring \
--values=./deploy/helm/01-only-crd-and-operator.yaml \
--values=./deploy/helm/02-kube-metrics.yaml \
--values=./deploy/helm/03-node-exporter.yaml \
--values=./deploy/helm/04-kubelet.yaml \
--values=./deploy/helm/10-testing-values.yaml
```
## deploy prometheus agent
**requirements:**
On namespaces running prometheus monitors add label `prometheus-monitoring=enabled`
**Example:**
``` bash
kubectl label namespace monitoring prometheus-monitoring=enabled --overwrite
```
```bash
kubectl apply -f ./deploy/prometheus-agent.yaml
```