Cloud Pokročilý
Kubernetes Monitoring Stack¶
MonitoringPrometheusGrafana 3 min čtení
Kompletní monitoring pro Kubernetes. Prometheus, Grafana, alerting.
Stack¶
Standard: Prometheus (metriky) + Grafana (vizualizace) + Alertmanager (alerty).
Instalace¶
# 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
Shrnutí¶
kube-prometheus-stack = one-click monitoring. Přidejte /metrics endpoint do aplikací a ServiceMonitor pro scraping.
Potřebujete pomoct s implementací?¶
Náš tým má zkušenosti s návrhem a implementací moderních architektur. Rádi vám pomůžeme.