apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: >
      {"apiVersion":"monitoring.coreos.com/v1alpha1","kind":"AlertmanagerConfig","metadata":{"annotations":{},"name":"alertmanager-config","namespace":"freeleaps-monitoring-system"},"spec":{"receivers":[{"msteamsConfigs":[{"sendResolved":true,"text":"{{
      template \"msteams.default.text\" . }}","title":"{{ if eq .Status
      \"firing\" }}🚨 [FIRING] 🔥{{- else -}}🙌 [RESOLVED] 🍻{{- end
      -}}","webhookUrl":{"key":"webhook-url","name":"freeleaps-teams-webhook"}}],"name":"ms-teams"}],"route":{"groupBy":["severity","namespace"],"groupInterval":"5m","groupWait":"30s","receiver":"ms-teams","repeatInterval":"12h"}}}
  creationTimestamp: '2025-01-13T12:26:29Z'
  generation: 5
  labels:
    k8slens-edit-resource-version: v1alpha1
  name: alertmanager-config
  namespace: freeleaps-monitoring-system
  resourceVersion: '134986306'
  uid: d97e574f-e781-4747-9f3a-1b25e02c7670
  selfLink: >-
    /apis/monitoring.coreos.com/v1alpha1/namespaces/freeleaps-monitoring-system/alertmanagerconfigs/alertmanager-config
spec:
  receivers:
    - msteamsConfigs:
        - sendResolved: true
          text: '{{ template "msteams.default.text" . }}'
          title: >-
            {{ if eq .Status "firing" }}🚨 [FIRING] 🔥{{- else -}}🙌 [RESOLVED]
            🍻{{- end -}}
          webhookUrl:
            key: webhook-url
            name: freeleaps-teams-webhook
      name: ms-teams
  route:
    groupBy:
      - severity
    groupInterval: 1s
    groupWait: 1s
    receiver: ms-teams
    repeatInterval: 12h
