Generate dedicated token for auth_password to send email of alert output to corporate accounts

12 views
Skip to first unread message

Pravin S

unread,
May 26, 2020, 7:18:28 AM5/26/20
to Prometheus Users
Hello Guys,

Need a quick help on process of generating token for "auth_password"  for corporate official account, cannot use the gmail account. 

Please can anyone suggest the most viable, secure and easy option to generate token password for corporate email accounts.

# Your smtp server address
smarthost: smtp.gmail.com:587
auth_username: from_...@gmail.com
auth_identity: from_...@gmail.com
auth_password: 16letter_generated token # you can use gmail account password, but better create a dedicated token for this
headers:
Subject: 'Demo ALERT'

thanks
Pk
receivers:
- name: demo-alert
  email_configs:
  - to: your_...@gmail.com
    from: from_...@gmail.com
    # Your smtp server address
    smarthost: smtp.gmail.com:587
    auth_username: from_...@gmail.com
    auth_identity: from_...@gmail.com
    auth_password: 16letter_generated token # you can use gmail account password, but better create a dedicated token for this
    headers:
      From: from_...@gmail.com
      Subject: 'Demo ALERT'



Brian Candler

unread,
May 26, 2020, 4:52:05 PM5/26/20
to Prometheus Users
Google for "Gmail App-Specific Passwords" - but they can only be used on accounts which have 2FA enabled.
Reply all
Reply to author
Forward
0 new messages