Skip to main content
Skip table of contents

C-Alerts

This document illustrates the procedure and steps to enable calert. The calert uses the Alertmanager webhook receiver to receive alerts payload and push this data to the Google Chat webhook endpoint. Setting up an alerting system in Kubernetes is vital for proactive issue detection, fault isolation, resource optimization, capacity planning, SLA enforcement, and security monitoring. It helps teams detect problems early, troubleshoot efficiently, optimize resources, plan for scalability, maintain service levels, and enhance security.

Pre-requisites for calert

  1. create a google chat group

  2. get the webhook for google chat group

Step 1: Create a space for webhook integeration.

  1. In the first step, you need to create space with a organization name.

image-20240422-035613.png

2. Go to the Apps and integrations

image-20240422-035729.png
  1. now you need to create incoming webhook and save it.

image-20240422-035936.png

Step 2: change the directory

CODE
cd cim-solution/kubernetes/monitoring

Step 3: Update group name and webhook

CODE
sed -i 's/<group-name>/<enter-your-group-name>/g'  calert/*

and

CODE
sed -i 's/<gogle-chat-webhook>/<enter-your-web-hook>/g' calert/*

Setup calert

CODE
helm upgrade --install=true --wait=true --timeout=10m0s --debug --namespace=monitoring --values=calert/values.yaml calert  calert/

Setup kube stack prometheus

update the group name

CODE
sed -i 's/<group-name>/<type-your-group-name>/g'  kube-prometheus-stack/values-alert.yaml

Run the following helm command to install the monitoring solution.

CODE
helm upgrade --namespace monitoring --install=true kube-stack-prometheus --values=kube-prometheus-stack/values-alert.yaml  kube-prometheus-stack
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.