Cloud Fortgeschritten
Kubernetes Monitoring Stack¶
MonitoringPrometheusGrafana 3 Min. Lesezeit
Vollständiges Monitoring für Kubernetes. Prometheus, Grafana, Alerting.
Stack¶
Standard: Prometheus (Metriken) + Grafana (Visualisierung) + Alertmanager (Alerts).
Installation¶
# kube-prometheus-stack Helm chart
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm install monitoring prometheus-community/kube-prometheus-stack \
--namespace monitoring --create-namespace \
--set grafana.adminPassword=admin
ServiceMonitor¶
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: myapp
spec:
selector:
matchLabels: {app: myapp}
endpoints:
- port: metrics
path: /metrics
interval: 15s
Zusammenfassung¶
kube-prometheus-stack = One-Click-Monitoring. Fügen Sie den /metrics-Endpoint in Ihre Anwendungen ein und einen ServiceMonitor für das Scraping.
Brauchen Sie Hilfe bei der Implementierung?¶
Unser Team hat Erfahrung mit dem Entwurf und der Implementierung moderner Architekturen. Wir helfen Ihnen gerne.