Location>code7788 >text

Dashboard URL parameterization for Grafana

Popularity:861 ℃/2024-08-14 10:01:01

Reprinted with attribution:

When debugging grafana, you need to make some custom settings for the url charts that grafana shares, summarized in the following common parameters

Reference site:/docs/grafana/latest/dashboards/share-dashboards-panels/#dashboard-share-url-parameters

1. Parameter list
  1. orgId: Specifies the organization ID for loading organization-specific dashboards.

  2. var-<variable_name>: Used to set the value of a variable in the dashboard. For example.var-server=exampleWill set the name of theserverThe value of the variable ofexample

  3. fromcap (a poem)to: Used to set the time range. For example.from=1577836800&to=1577923200Will set the timeframe from 1/1/2020 to 2/1/2020.

  4. panelId: Used to specify the ID of the particular panel to be displayed.

  5. fullscreen: Used to display the instrument panel in full screen mode.

  6. kiosk: Used to display the dashboard as a borderless Kiosk mode.

  7. theme: Used to set the theme of the dashboard, which can belightmaybedark

  8. refresh: Used to set the time interval for auto refresh in seconds.

  9. edit: Used to load the dashboard into edit mode for modification and editing.

  10. viewPanel: Used to load dashboards into panel view mode, hide editing and navigation bars

2. Common Parameters

In Grafana, the following parameters can be used to restrict user modifications to panel parameters:

1. `kiosk`: As mentioned above, this parameter can be used to enable full-screen mode to hide the browser's address bar and toolbars, preventing users from accessing and modifying panel parameters.
2. `edit`: This parameter is used to disable the user from editing the panel. When the `edit` parameter is used, the user will not be able to modify the panel's layout, queries and other configuration options.
3. `viewPanel`: This parameter is used to set the panel to read-only mode to prevent the user from editing the panel. When the `viewPanel` parameter is used, the user cannot modify any of the panel's settings and can only view the panel's contents.

Attribute Usage Notes

kiosk=tv Does not show settings and sharing actions:

&kiosk=tv mode will keep the time interval conditional query that comes with the time, but not the others

 

kiosk mode: removes the menu bar and upper toolbar, doesn't show the time and buttons for settings and sharing actions