move monitoring to services

This commit is contained in:
Márcio Fernandes
2026-06-07 21:43:49 +00:00
parent 8bf2f786d5
commit d8419c0e75
22 changed files with 1 additions and 0 deletions
@@ -0,0 +1,43 @@
# 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
```