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
-
-
var-<variable_name>
: Used to set the value of a variable in the dashboard. For example.var-server=example
Will set the name of theserver
The value of the variable ofexample
。
-
from
cap (a poem)to
: Used to set the time range. For example.from=1577836800&to=1577923200
Will set the timeframe from 1/1/2020 to 2/1/2020.
-
panelId
: Used to specify the ID of the particular panel to be displayed.
-
fullscreen
: Used to display the instrument panel in full screen mode.
-
kiosk
: Used to display the dashboard as a borderless Kiosk mode.
-
theme
: Used to set the theme of the dashboard, which can belight
maybedark
。
-
refresh
: Used to set the time interval for auto refresh in seconds.
-
edit
: Used to load the dashboard into edit mode for modification and editing.
-
viewPanel
var-<variable_name>
: Used to set the value of a variable in the dashboard. For example.var-server=example
Will set the name of theserver
The value of the variable ofexample
。
from
cap (a poem)to
: Used to set the time range. For example.from=1577836800&to=1577923200
Will set the timeframe from 1/1/2020 to 2/1/2020.
panelId
: Used to specify the ID of the particular panel to be displayed.
fullscreen
: Used to display the instrument panel in full screen mode.
kiosk
: Used to display the dashboard as a borderless Kiosk mode.
theme
: Used to set the theme of the dashboard, which can belight
maybedark
。
refresh
: Used to set the time interval for auto refresh in seconds.
edit
: Used to load the dashboard into edit mode for modification and editing.
viewPanel
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.