๐ 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! ๐ป๐ง
#Kubernetes #DevOps #Monitoring #Automation #Robusta #Prometheus #CloudNative
Prerequisites:
Workspace must have
Docker, Helm, Kubectl
installedKubernetes Cluster
A Prometheus installation
-
Create a sink account. I have chosen the slack My Slack and created a channel
#devops
. more on #Slack-SinkCreate a Free Registration at Robust and create an app in it My Account: My Robusta-UI . more on #robusta-ui
Install a Kind Cluster:
kind create cluster --name=robusta-demo
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
Slack Channel Name:
devops
Google/Gmail/Azure/Outlook address:
XXX.YYYY@gmail.com
Account:
naren4biz
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 crash pod:
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
Subscribe to my newsletter
Read articles from Naren P directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by