Enhancing Kubernetes Monitoring & Automation with Robusta!
Find a comprehensive setup for Kubernetes monitoring, notifications, troubleshooting, and automation using Robusta. This powerful tool integrates seamlessly with Prometheus, enabling real-time monitoring and instant alerts via Slack and Robusta UI.
Key Highlights:
- Deployed a Kubernetes cluster and Prometheus stack.
- Integrated Slack for instant alert notifications in the #devops channel.
- Set up Robusta for advanced monitoring and automated issue resolution.
- Monitoring has never been easier or more effective. Excited to see how this enhances our DevOps processes! π»π§
Prerequisites:
- Workspace must have
Docker, Helm, Kubectlinstalled - Kubernetes Cluster
- A Prometheus installation
- Set up a Sink
- Create a sink account. I have chosen the slack My Slack and created a channel
#devops. more on #Slack-Sink - Create a Free Registration at Robust and create an app in it My Account: My Robusta-UI . more on #robusta-ui
Installation:
Let's Create a KIND Kubernetes Cluster
Setup of Prometheus stack
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts && helm repo update
cat<<EOF >robusta-demo-values.yaml
prometheus: # collect rules from all namespaces and ignore label filters
ruleNamespaceSelector: {}
ruleSelector: {}
ruleSelectorNilUsesHelmValues: false
defaultRules: # those rules are now managed by Robusta
rules:
alertmanager: false
etcd: false
configReloaders: false
general: false
kubeApiserverSlos: false
kubeControllerManager: false
kubeProxy: false
kubernetesApps: false
kubernetesResources: false
kubernetesStorage: false
kubernetesSystem: false
kubeSchedulerAlerting: false
kubeStateMetrics: false
network: false
nodeExporterAlerting: false
prometheus: false
prometheusOperator: false
EOF
helm upgrade --install prometheus prometheus-community/kube-prometheus-stack -f robusta-demo-values.yaml --namespace monitoring --create-namespace
Setup the Sink
curl -fsSL -o robusta https://docs.robusta.dev/master/_static/robusta
chmod +x robusta
./robusta gen-config --no-enable-prometheus-stack --cluster-name=robusta-demo --slack-channel=devops
Install robusta forwarder & Runner
helm repo add robusta https://robusta-charts.storage.googleapis.com && helm repo update
helm upgrade --install robusta robusta/robusta -f ./generated_values.yaml --set clusterName=robusta-demo --set isSmallCluster=true --set enabledManagedConfiguration=true
Let's Deploy a crashpod
kubectl apply -f https://gist.githubusercontent.com/robusta-lab/283609047306dc1f05cf59806ade30b6/raw
Check the Channel
My Slack: My Slack
Check the Robusta UI
My Account: Robusta-UI