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:**
|
**Allow prometheus scrapping:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl apply -f deploy/monitoring
|
kubectl apply -f deploy/monitoring.yaml
|
||||||
kubectl label ns flux-system prometheus-monitoring=enabled
|
kubectl label ns flux-system prometheus-monitoring=enabled
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -20,3 +20,9 @@ Using flux for reconciliation.
|
|||||||
``` bash
|
``` bash
|
||||||
sops -e deploy/promtail/helm-values.private.dec.yaml > deploy/promtail/helm-values.private.yaml
|
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:
|
matchLabels:
|
||||||
prometheus-monitoring: enabled
|
prometheus-monitoring: enabled
|
||||||
|
|
||||||
podMonitorSelector:
|
|
||||||
matchExpressions:
|
|
||||||
- key: release
|
|
||||||
operator: In
|
|
||||||
values: ["prometheus"]
|
|
||||||
- key: prometheus.io/scrape
|
|
||||||
operator: In
|
|
||||||
values: ["true"]
|
|
||||||
|
|
||||||
serviceMonitorNamespaceSelector:
|
serviceMonitorNamespaceSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
prometheus-monitoring: enabled
|
prometheus-monitoring: enabled
|
||||||
|
|
||||||
serviceMonitorSelector:
|
|
||||||
matchLabels:
|
|
||||||
release: prometheus
|
|
||||||
|
|
||||||
replicas: 1
|
replicas: 1
|
||||||
remoteWrite:
|
remoteWrite:
|
||||||
|
|||||||
Reference in New Issue
Block a user