import custom dashboard¶
This page introduces how to import customized dashboards through CRD and UI interface.
Import Dashboard via CRD¶
-
Log in to the DCE 5.0 platform, enter
Container Management
from the left navigation bar, and select the target cluster in the cluster list. -
Select
Custom Resources
on the left navigation bar, findgrafanadashboards.integreatly.org
file in the list, and enter the details. -
Click
Create with YAML
and use the following template, replacing the dashboard JSON in theJson
field.namespace
: Fill in the target namespace;name
: fill in the name of the dashboard.
apiVersion: integrally.org/v1alpha1 kind: Grafana Dashboard metadata: labels: app: insight-grafana-operator operator.insight.io/managed-by: insight name: sample-dashboard namespace: insight-system spec: json: > { "id": null, "title": "Simple Dashboard", "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": [] }
-
After clicking
Confirm
, wait for a while to view the newly imported dashboard inDashboard
.
Import Dashboard via UI¶
This section explains how to access native Grafana to build custom dashboards.
-
Click
Dashboards
>Import
on the left navigation bar. -
You can choose to import in the following ways:
- Upload the dashboard JSON file
- Paste the Grafana.com dashboard URL
- Paste the dashboard JSON into the text area
-
After clicking
Load
, fill in the following parameters:- name: set the name of the dashboard
- Floder: select the target path for dashboard storage
- Prometheus: select data source
-
Click
Import
to import the dashboard successfully.
Info
If you need to customize the dashboard, please refer to Add Dashboard Panel.