All Products
Search
Document Center

Managed Service for Grafana:Generate a link to share a Grafana dashboard

Last Updated:Jan 24, 2025

This topic describes how to generate a link for a Grafana dashboard that allows users to view the dashboard without the need to log on to Grafana.

Important
  • After enabling logon-free (anonymous) access, your dashboard will be in an open state. Please confirm whether the open-state dashboard contains any confidential data to prevent data leakage.

  • If you want to restrict access to Grafana links to specific customers or to within your corporate intranet or VPC, you can limit the source IPs by setting up a whitelist through the Whitelists and Security Groups page.

Step 1: Log on to Grafana

  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, find the workspace that you want to manage and click the URL in the URL column to go to Grafana.

    Note

    You can log on to Grafana with the administrator account of Grafana and the password that you configured when you created the workspace. You can also click Sign in with Alibaba Cloud to log on to Grafana with the current Alibaba Cloud account.

Step 2: (Optional) Create a Grafana organization

Sharing dashboards that can be viewed without logon requires opening the Grafana organization where the dashboard resides, which will make all dashboards under that organization publicly accessible. For the security of your data, we recommend that you create a new organization specifically for sharing dashboards.

Grafana 9.0.x

Important
  • Admin permissions do not include the ability to create organizations; only the Admin account has the permission to create organizations. If you log on to Grafana with the Admin account, you can see the 盾牌图标 icon in the left-side navigation pane of Grafana.

  • The password of the Admin account has been set when creating a workspace. You can reset the password on the Account Management page of the workspace in the Managed Service for Grafana console.

  1. In the left-side navigation pane, choose 盾牌图标 > Orgs.

  2. On the Orgs tab, click New org.

  3. On the New organization page, enter an organization name and click Create.

Grafana 10.0.x

Important
  • Admin permissions do not include the ability to create organizations; only the Admin account has the permission to create organizations.

  • The password of the Admin account has been set when creating a workspace. You can reset the password on the admin page of Grafana. To go to the admin page of Grafana, click the More icon in the upper-left corner of Grafana and choose Administration > Users. On the All users tab of the Users page, click admin in the Login column.

  1. On the Grafana homepage, click the image icon.

  2. In the left-side navigation pane, click Administration. Then, click Organizations.

  3. On the Organizations page, click New org.

  4. On the New organization page, enter an organization name and click Create.

Step 3: Enable anonymous access for the 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 auth.anonymous.

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

    Parameter

    Description

    enabled

    Set the value to true, which indicates that anonymity is enabled.

    org_name

    Enter the name of the organization to which the dashboard you want to share belongs.

    org_role

    Optional. Default value: viewer, which specifies the read-only permissions.

    Note

    You can set the org_role parameter to editor or admin. However, we recommend that you do not grant edit or management permissions to viewers.

Step 4: (Optional) Create a dashboard

Create the dashboard that you want to share in your organization.

  1. Check whether the current organization is used to share the dashboard.

    Grafana 9.0.x

    Move the pointer over the avatar in the lower-left corner of the Grafana page to check whether the current organization is used to share dashboards. If not, click Switch organization and switch organizations in the Switch Organization dialog box.

    image

    Grafana 10.0.x

    In the upper-left corner of the Grafana page, check whether the current organization is used to share dashboards. If not, select the organization from the drop-down list.

    image

  2. Add a data source.

  3. Create a dashboard. For more information, see Grafana documentation.

Step 5: Obtain the sharable link of the dashboard

Grafana 9.0.x

  1. In the left-side navigation pane of Grafana, choose image > Browse, and then select the dashboard directory.

  2. Select the dashboard and click 分享图标. On the Link tab, obtain the sharable link.

    image

  3. Log off from the current Grafana account, use a browser to access the link obtained in the previous step, and then check whether the link is valid.

  4. (Optional) Set a network whitelist.

    If you want to restrict access to Grafana links to specific customers or to within your corporate intranet or VPC, you can limit the source IPs by setting up a whitelist through the Whitelists and Security Groups page. For more information, see Data security management.

Grafana 10.0.x

  1. On the Grafana homepage, click the image icon.

  2. In the left-side navigation pane, click Dashboards.

  3. On the Dashboards page, select the dashboard directory.

  4. Select the dashboard and click 分享图标. On the Link tab, obtain the sharable link.

    image

  5. Log off from the current Grafana account, use a browser to access the link obtained in the previous step, and then check whether the link is valid.

  6. (Optional) Set a network whitelist.

    If you want to restrict access to Grafana links to specific customers or to within your corporate intranet or VPC, you can limit the source IPs by setting up a whitelist through the Whitelists and Security Groups page. For more information, see Data security management.