Public URL
to allow access the dashboard on the current network.
As with normal publicDashboards, the accessToken, annotations, and time selection can be controlled.
The below shows the default values, but an empty object .spec.publicSharing={} is enough to enable the sharing.
---
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
name: grafanadashboard-from-configmap
spec:
instanceSelector: {}
publicSharing:
accessToken: "" # Defaults to the value of `.metadata.UID`
enabled: true # When false, the public sharing config is still created in Grafana, but the link is disabled.
annotationsEnabled: false # Allow visitors to see annotations
timeSelectionEnabled: false # Allow visitors to alter the time range
json: >
{
"id": null,
"title": "Simple Dashboard with a public URL",
"tags": [],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": false,
"graphTooltip": 1,
"panels": [],
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"time_options": [],
"refresh_intervals": []
},
"templating": {
"list": []
},
"annotations": {
"list": []
},
"refresh": "5s",
"schemaVersion": 17,
"version": 0,
"links": []
}
Note
Grafana places strict requirements on the format of the accessToken. It must be 33 hexadecimal characters and a valid uuid. In effect, it can be a normal uuid without dashes-
9da54597-3f48-435a-93eb-89aab761958d -> 9da545973f48435a93eb89aab761958d