diff --git a/services/fluxcd-system/README.md b/services/fluxcd-system/README.md index 4e2585d..23027b1 100644 --- a/services/fluxcd-system/README.md +++ b/services/fluxcd-system/README.md @@ -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 ``` diff --git a/services/monitoring/README.md b/services/monitoring/README.md index 5413b64..4a398d4 100644 --- a/services/monitoring/README.md +++ b/services/monitoring/README.md @@ -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 +``` diff --git a/services/monitoring/deploy/prometheus/prometheus-agent.yaml b/services/monitoring/deploy/prometheus/prometheus-agent.yaml index 09fd9d6..a9c9446 100644 --- a/services/monitoring/deploy/prometheus/prometheus-agent.yaml +++ b/services/monitoring/deploy/prometheus/prometheus-agent.yaml @@ -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: