You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

如何设置Grafana首页仪表盘?解决登录“Dashboard Not Found”错误

Hey there, let's sort out your two Grafana issues right away—setting a specific dashboard as your default homepage and fixing that annoying "Dashboard Not Found" error when you log in.

Set a Default Dashboard as Your Grafana Homepage

You have two ways to handle this: a quick personal setup for just your account, or a global setup that applies to all users.

Per-User Setup (Quick & Personal)

  • Click your profile avatar in the top-left corner of Grafana.
  • Select Preferences from the dropdown menu.
  • In the Home Dashboard section, use the dropdown to pick the dashboard you want as your default landing page.
  • Hit Save at the bottom of the page. Next time you log in, you’ll land straight on that dashboard.

Global Setup (For All Users)

If you want every user to see the same dashboard on login, edit Grafana’s configuration file:

  1. Locate your grafana.ini file (usually /etc/grafana/ on Linux, or conf/grafana.ini in the Grafana installation folder on Windows/macOS).
  2. Open it with a text editor and find the [auth] section.
  3. Look for the line default_home_dashboard_path—uncomment it if it’s commented out, then set its value to your target dashboard’s path. To get this path:
    • Open the dashboard you want, check your browser’s address bar. It’ll look like https://your-grafana-url/d/abc123-my-dashboard—use the part starting with /d/, e.g., /d/abc123-my-dashboard.
    • Alternatively, open the dashboard’s settings (gear icon in the top-right), go to the General tab, copy the UID, and use /d/[UID] as the path.
  4. Save the grafana.ini file and restart Grafana for changes to take effect.
Fix the "Dashboard Not Found" Login Error

This error almost always stems from the default homepage dashboard being missing or inaccessible. Here’s how to resolve it:

  • Check if the default dashboard exists: If you can manually navigate to /dashboards (append this to your Grafana URL), verify the dashboard set as default is still in your list. If it was deleted or moved, pick a new existing dashboard as your default using the steps above.
  • Verify permissions: Even if the dashboard exists, your account might lack access. Open the dashboard’s settings, go to the Permissions tab, and ensure your user (or assigned role) has at least View permissions.
  • Bypass the broken default page: If you can’t log in properly, append /dashboards to your Grafana URL to skip the error page. From there, re-set your default homepage as described earlier.
  • Check global configuration: If all users face this issue, double-check the default_home_dashboard_path in grafana.ini to confirm it points to a valid, existing dashboard that all users can access.

内容的提问来源于stack exchange,提问作者Sepehr roosta

火山引擎 最新活动