modified: services/fluxcd-system/README.md
modified: services/monitoring/README.md modified: services/monitoring/deploy/prometheus/prometheus-agent.yaml
This commit is contained in:
@@ -27,6 +27,6 @@ helm upgrade flux-operator oci://ghcr.io/controlplaneio-fluxcd/charts/flux-opera
|
||||
**Allow prometheus scrapping:**
|
||||
|
||||
```bash
|
||||
kubectl apply -f deploy/monitoring
|
||||
kubectl apply -f deploy/monitoring.yaml
|
||||
kubectl label ns flux-system prometheus-monitoring=enabled
|
||||
```
|
||||
|
||||
@@ -20,3 +20,9 @@ Using flux for reconciliation.
|
||||
``` bash
|
||||
sops -e deploy/promtail/helm-values.private.dec.yaml > deploy/promtail/helm-values.private.yaml
|
||||
```
|
||||
|
||||
**Check agent:**
|
||||
|
||||
``` bash
|
||||
http://localhost:9090/agent
|
||||
```
|
||||
|
||||
@@ -8,22 +8,10 @@ spec:
|
||||
matchLabels:
|
||||
prometheus-monitoring: enabled
|
||||
|
||||
podMonitorSelector:
|
||||
matchExpressions:
|
||||
- key: release
|
||||
operator: In
|
||||
values: ["prometheus"]
|
||||
- key: prometheus.io/scrape
|
||||
operator: In
|
||||
values: ["true"]
|
||||
|
||||
serviceMonitorNamespaceSelector:
|
||||
matchLabels:
|
||||
prometheus-monitoring: enabled
|
||||
|
||||
serviceMonitorSelector:
|
||||
matchLabels:
|
||||
release: prometheus
|
||||
|
||||
replicas: 1
|
||||
remoteWrite:
|
||||
|
||||
Reference in New Issue
Block a user