Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alertmanagerconfig with Azure communication service #3756

Open
sureshkachwa opened this issue Mar 2, 2024 · 0 comments
Open

Alertmanagerconfig with Azure communication service #3756

sureshkachwa opened this issue Mar 2, 2024 · 0 comments

Comments

@sureshkachwa
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant