alertmanager icon indicating copy to clipboard operation
alertmanager copied to clipboard

Alertmanagerconfig with Azure communication service

Open sureshkachwa opened this issue 11 months ago • 4 comments

I am trying to set Alertmanagerconfig with "Azure Communication Service" and through this service, you get the endpoint, key, and a connection string (combination of endpoint and key). Below is the alertmanagerconfig manifest, does this need to be modified?

apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata:
  name: prometheus-alertmanager-config
  namespace: prometheus
spec:
  route:
    receiver: alert-email-pagerduty-config
    groupBy: ['alertname', 'priority','severity']
    groupWait: 30s
    groupInterval: 5m
    repeatInterval: 15m
    continue: true
  receivers:
    - name: alert-email-azure-config
     emailConfigs:
    - to: {{.to_email}}
      sendResolved: true
      from: {{.az_from_email}}         ##sender user address created in azure email communication service
      smarthost: {{.az_smarthost}}  ## endpoint exposed by azure communication service
      authUsername: {{.az_mail_username}}  ##sender user address created in azure email communication service
      authPassword:
        name: 'az_alert-smtp-password'
        key: 'password'
      requireTLS: true
      
      ---
apiVersion: v1
kind: Secret
type: Opaque
metadata:
  name: az_alert-smtp-password
  namespace: prometheus
stringData:
  password: {{.az_mail_password}}   ##key exposed by azure communication service

sureshkachwa avatar Mar 02 '24 09:03 sureshkachwa

I'm looking into if it's possible to set up alertmanager with Azure Communication Services. Did the above solution work for you?

Ron-NPX avatar Jul 03 '24 19:07 Ron-NPX

I'm also curious about this topic...

ruimartinsptl avatar Jul 14 '24 12:07 ruimartinsptl

I'm looking into if it's possible to set up alertmanager with Azure Communication Services. Did the above solution work for you?

I haven't tested it yet, will surely let you know

sureshkachwa avatar Jul 16 '24 01:07 sureshkachwa

We are using that in production, using the SMTP interface at Azure Communication Services. It just worked.

jkroepke avatar Jul 31 '24 06:07 jkroepke