calert

by joaquinito2051

Helm chartv0.0.1App 0.0.1

A Helm chart for the calert which uses Alertmanager webhook receiver to receive alerts payload, and pushes this data to Google Chat webhook endpoint.

About this chart

calert

A Helm chart for the calert which uses Alertmanager webhook receiver to receive alerts payload, and pushes this data to Google Chat webhook endpoint.

Source Code: https://github.com/mr-karan/calert

Alertmanager Integration

The Alertmanager helm chart can be found here. You can refer to the following config block to route webhook alerts to calert:

config:
  receivers:
    - name: 'calert'
      webhook_configs:
      - url: 'http://calert:6000/dispatch'

  route:
    receiver: 'calert'
    group_wait: 30s
    group_interval: 60s
    repeat_interval: 3h
    group_by: ['alertname']

Parameters

The following tables lists the configurable parameters of the chart and their default values.

Change the values according to the need of the environment in contrib/helm/calert/values.yaml file.

KeyTypeDefaultDescription
app.addressstring"0.0.0.0:6000"
app.server_timeoutstring"60s"
app.enable_request_logsbooltrue
app.logstring"info"
providersobject{}
templatesobject{}
replicaCountint1
image.repositorystring"ghcr.io/mr-karan/calert"
image.tagstring"v2.0.2"
image.pullPolicystring"Always"
args[0]string"--config=/app/static/config.toml"
nameOverridestring""
fullnameOverridestring""
service.typestring"ClusterIP"
service.portint6000
ingress.enabledboolfalse
resources.limits.cpustring"20m"
resources.limits.memorystring"48Mi"
resources.requests.cpustring"5m"
resources.requests.memorystring"24Mi"
priorityClassNamestring""
nodeSelectorobject{}
tolerationslist[]
affinityobject{}
topologySpreadConstraintslist[]
podAnnotationsobject{}

Deploy calert with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has calert on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcalert is pinned at v0.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply