Articles in this section
Category / Section

Configure Robusta for Alerting and Monitoring Bold BI

Published:
Deploy Robusta in Kubernetes Cluster using Helm Chart:

Follow the below steps for configuring Robusta.

  1. Connect the Bold BI installed Kubernetes cluster you want to monitor.
  2. Refer to the helm for configuring helm in your machine, If the helm is not installed.
  3. Download the helm chart and install Robusta-CLI.
    helm repo add Robusta https://Robusta-charts.storage.googleapis.com 
    helm repo update
    pip install -U Robusta-cli --no-cache
    
  4. Generate a Robusta configuration. This will set up Slack and other integrations that will be highly recommended to enable the cloud UI so that you can see all features in action. This will generate the generated_values.yaml.
    Robusta gen-config
    
  5. Save the generated_values.yaml somewhere safe, this is your Helm values.yaml file.
  6. Verifying that Robusta is running two pods with no errors in the logs.
    kubectl get pods
    Robusta logs
    
  7. After completing your Robusta installation click here and log in to your account.
Monitoring Bold BI:
  1. After logging into the Robusta, a setup like the following will start.

    sshot-21.png

  2. Then run the following command in Bold BI installed cluster.

    helm install robusta robusta/robusta -f ./generated_values.yaml --set clusterName=BoldBI
    
  3. Click here for accessing the Robusta monitoring environment.

  4. You can monitor the Bold BI as follows.

    sshot-23.png

  5. We can see the particular pod events by clicking on the pod name.

    sshot-24.png

    sshot-25.png

Configure alerting for Bold BI:

Follow the below steps for creating an alert in Robusta.

  1. By default, Robusta sends some warnings like the one below.

    sshot-26.png

  2. You can also create a custom alert based on your requirement. Here, I’m going to create a custom alert for pod scaling in the upcoming steps.

  3. Add the following script to your generated_value.yaml for pod scaling alerting.

    groups:
       - name: Pod CPU Scaling Rules
     rules:
     - alert: HighPodCPUUsage
    expr: sum by (namespace, deployment, pod) (rate(container_cpu_usage_seconds_total{namespace="robusta", pod!="", container!="", deployment!="", image!="", container!="POD"}[5m])) * 100 > 80
    for: 5m
    labels:
     severity: warning
    annotations:
     summary: "High CPU usage for pod {{ $labels.pod }} in deployment {{ $labels.deployment }}"
     description: "CPU usage is {{ printf \"%.2f\" $value }}%, which is above the threshold of 80%. Scaling up additional pods may be necessary."
    
  4. Perform an upgrade with Helm to apply the new configuration.

    helm upgrade Robusta Robusta/Robusta --values=generated_values.yaml
    
  5. Scale one of your deployments manually.

    kubectl scale --replicas NEW_REPLICAS_COUNT deployments/DEPLOYMENT_NAME
    
  6. Check the slack channel you configured when installing Robusta.

    sshot-1.png

  7. Refer to here for adding more custom alerting rules.

Uninstall Robusta:
  1. Use the following command to remove robusta from the cluster.
    helm uninstall Robusta
    
Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
RC
Written by Ranjithkumar Chinnadurai
Updated
Comments (0)
Please  to leave a comment
Access denied
Access denied