feat(monitoring): add prometheus-operator monitoring & alerts for n8n, influxdb, and home-assistant
- Enable Prometheus metrics endpoint in n8n, InfluxDB, and Home Assistant. - Add ServiceMonitor configs for scraping metrics, including token authentication for Home Assistant. - Define native PrometheusRules for health checks, restarts, volume capacities, and n8n event loop lag to prevent login freezes. - Deploy AlertmanagerConfigs to route alerts from the new namespaces to Telegram.
This commit is contained in:
+1
-1
@@ -365,7 +365,7 @@ helm repo add prometheus-community https://prometheus-community.github.io/helm-c
|
||||
helm repo update
|
||||
helm upgrade --install --create-namespace prometheus-operator prometheus-community/kube-prometheus-stack -n monitoring -f monitoring/prometheus-operator.secret.yml --version 56.6.1
|
||||
# alert configuration
|
||||
NAMESPACES_TO_ALERT=( kube-system monitoring cert-manager datalab ingress-nginx mailu minio velero web openebs )
|
||||
NAMESPACES_TO_ALERT=( kube-system monitoring cert-manager datalab ingress-nginx mailu minio velero web openebs n8n influxdb home-assistant )
|
||||
for i in "${NAMESPACES_TO_ALERT[@]}"; do
|
||||
kubectl apply -f monitoring/alertmanagerconfig.secret.yaml -n $i
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user