All Products
Search
Document Center

Managed Service for Grafana:Invite users by using an SMTP-enabled email account

Last Updated:Jan 06, 2025

If you want to create Grafana user accounts for multiple users or O&M engineers, you can directly create the user accounts and then inform the users of the usernames and passwords. However, this setting requires much time and efforts. You can use an email account for which Simple Mail Transfer Protocol (SMTP) is enabled to send invitation emails to users. Users who receive the invitation emails can create user accounts by themselves. This topic uses a NetEase email account as an example to describe how to invite users to a specified Grafana organization by using an email account for which SMTP is enabled.

Step 1: Enable SMTP for your email account

Note

The email account is used to send invitation emails.

  1. In the top navigation bar of your NetEase email account homepage, choose Settings > POP3/SMTP/IMAP.

  2. In the POP3/SMTP/IMAP section, click Enable next to POP3/SMTP.

    Important

    When you enable SMTP, you must complete the security verification as prompted and save the returned authorization password.

  3. After you enable SMTP, obtain the SMTP server address in the Tips section.

    Note

    You can also obtain the SMTP server address and port number from the NetEase email service documentation.

Step 2: Set parameters for the Grafana organization

  1. Log on to the Managed Service for Grafana console. In the left-side navigation pane, click Workspace Management.

  2. On the Workspace Management page, click the ID of the workspace that you want to manage.

  3. In the left-side navigation pane, click Parameter Settings.

  4. On the Parameter Settings page, click Modify parameters and then select smtp.

  5. Modify the following parameters of smtp, and then click Save and Take Effect.

    • enabled: Set this parameter to true.

    • host: Enter the SMTP server address smtp. 163.com:465.

      Note

      The SMTP server address and port number for the NetEase email service is used in this example. Replace the information based on your business requirements.

    • user: Enter your email address.

    • password: Enter the authorization password that is obtained in Step 1.

    • from_address: Enter your email address.

    • from_name: Ignore this parameter.

    Configure SMTP parameters

Step 3: Invite users in Grafana

  1. In the left-side navigation pane of the Managed Service for Grafana console, click Workspace information. In the Connection information section, click Log In in the Operation column.

    Note

    You can log on to Grafana by using the administrator account of Grafana and the password that you set when you create the workspace, or click Sign in with Alibaba Cloud to log on to Grafana by using the Alibaba Cloud account that is used to create the workspace.

  2. (Optional)Click the avatar in the lower-left corner of the Grafana page, click Switch organization, and switch to the organization that you want to manage.

  3. In the left-side navigation pane, choose Settings > Users.

  4. On the Users tab, click Invite.

  5. On the Invite user page, enter the email address of the user that you want to invite in the Email or username field, configure the role of the user, and then click Submit.

    The user will receive an invitation email from the email account that you specify in Step 1. Invite users

  6. After the user clicks Accept Invitation in the email, the user is redirected to Grafana.

    Invitation email

  7. In Grafana, the user can configure the password and click Sign Up.

    Configure the password