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.
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.
-
To restrict access from specific clients or networks, such as a corporate intranet or VPC, configure an IP address whitelist on the Whitelists and Security Groups page.
Step 1: Log on to Grafana
-
Log on to the ARMS console. In the left-side navigation pane, choose .
-
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.
NoteYou 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
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. -
You set the password for the admin account when you create the workspace. You can reset the password on the Account Management page of the workspace in the Managed Service for Grafana console.
-
In the left-side navigation pane, choose
> Orgs. -
On the Orgs page, click +New org.
-
On the New organization page, enter an organization name and click Create.
Grafana 10.0.x
Admin permissions do not include the ability to create organizations; only the Admin account has the permission to create organizations.
-
The password for the admin account is set when you create the workspace. To reset it, navigate to the Manage > Users > admin page in Grafana.
-
On the Grafana homepage, click the
icon. -
In the left-side navigation pane, click Manage, and then click Organizations.
-
On the Organizations page, click +New org.
-
On the New organization page, enter an organization name and click Create.
Step 3: Enable anonymous access for the organization
-
Log on to the ARMS console. In the left-side navigation pane, choose .
-
On the Workspace Management page, click the ID of the workspace that you want to manage.
-
In the left-side navigation pane, click Parameter Settings.
-
On the Parameter Settings page, click Modify Parameters, and then select auth.anonymous.
-
Modify the following auth.anonymous parameters and click Save and Apply.
Parameter
Description
enabled
Set to true to enable anonymous access.
org_name
Enter the name of the organization to which the dashboard you want to share belongs.
org_role
You can leave this parameter empty. The default value is viewer, which grants read-only permissions.
NoteYou can also set the org_role parameter to editor or admin. However, we do not recommend granting editor or admin permissions for public access.
Step 4: (Optional) Create a dashboard
Create the dashboard that you want to share in your organization.
-
Check whether the current organization is used to share the dashboard.
Grafana 9.0.x
Hover over your avatar in the lower-left corner of the Grafana page to see the current organization. If it is incorrect, click Switch organization and select the correct one in the Switch organization dialog box.
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.
Add a data source.
For information about how to add an Alibaba Cloud data source, see Cloud service integration.
For information about how to add other data sources, see Grafana documentation.
Create a dashboard. For more information, see Grafana documentation.
Step 5: Obtain the sharable link of the dashboard
Grafana 9.0.x
In the left-side navigation pane of Grafana, choose
> Browse, and then select the dashboard directory. -
Select the target dashboard, click the Share icon (
), and select the Link tab.At the bottom of the dialog box, under Link URL, click Copy.
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.
-
(Optional) Set a network whitelist.
To restrict access from specific clients or networks, such as a corporate intranet or VPC, configure an IP address whitelist on the Whitelists and Security Groups page. For more information, see public IP address whitelist.
Grafana 10.0.x
-
On the Grafana homepage, click the
icon. In the left-side navigation pane, click Dashboards.
On the Dashboards page, select the dashboard directory.
-
Select the target dashboard, click the Share icon (
), and go to the Link tab.Click Link URL to generate the link, and then click Copy.
-
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.
-
(Optional) Set a network whitelist.
To restrict access from specific clients or networks, such as a corporate intranet or VPC, configure an IP address whitelist on the Whitelists and Security Groups page. For more information, see public IP address whitelist.