Open ybucci opened 8 months ago
Understood?
calert:
prod_alerts:
type: "google_chat"
endpoint: "https://chat.googleapis.com/v1/spaces/
dev_alerts:
type: "google_chat"
endpoint: "https://chat.googleapis.com/v1/spaces/
receivers:
The Problem is that in Kubernetes (which your configuration looks like) the rooms/receivers are always prefixed with the namespace and the name of config (namespace/config_name/receiver). You can use the query parameter room_name with the dispatch endpoint and set it to the receiver name, that should fix the error.
For example:
apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata:
name: alertas
namespace: cattle-monitoring-system
spec:
receivers:
- name: alertas
webhookConfigs:
- url: http://caalert-calert:6000/dispatch?room_name=alertas
route:
groupBy:
- job
groupInterval: 5m
groupWait: 30s
receiver: alertas
repeatInterval: 12h
Error LOG
AlertManager Config
ConfigMap