Skip to content

Commit e7e66cc

Browse files
Frapschensamzong
authored andcommitted
update import-dashboard.md
1 parent 105780d commit e7e66cc

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

docs/en/docs/insight/user-guide/dashboard/import-dashboard.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,29 @@ By using Grafana CRD, you can incorporate the management and deployment of dashb
66

77
1. Log in to the DCE 5.0 platform and go to __Container Management__ . Select the __kpanda-global-cluster__ from the cluster list.
88

9-
2. Choose __Custom Resources__ from the left navigation bar. Look for the __grafanadashboards.integreatly.org__
9+
2. Choose __Custom Resources__ from the left navigation bar. Look for the __grafana.integreatly.org__
1010
file in the list and click it to view the details.
1111

1212
3. Click __YAML Create__ and use the following template. Replace the dashboard JSON in the __Json__ field.
1313

14-
- __namespace__ : Specify the target namespace.
15-
- __name__ : Provide a name for the dashboard.
16-
- __label__ : Mandatory. Set the label as __operator.insight.io/managed-by: insight__ .
14+
- __namespace__ :填写目标命名空间;
15+
- __name__ :填写仪表盘的名称。
16+
- __spec.allowCrossNamespaceImport__ :必填,值为 __true__
17+
- __spec.instanceSelector.matchLabels__ :必填,__operator.insight.io/managed-by: insight__
1718

1819
```yaml
19-
apiVersion: integreatly.org/v1alpha1
20+
apiVersion: grafana.integreatly.org/v1beta1
2021
kind: GrafanaDashboard
2122
metadata:
2223
labels:
2324
app: insight-grafana-operator
24-
operator.insight.io/managed-by: insight
2525
name: sample-dashboard
2626
namespace: insight-system
2727
spec:
28+
allowCrossNamespaceImport: true
29+
instanceSelector:
30+
matchLabels:
31+
operator.insight.io/managed-by: insight
2832
json: >
2933
{
3034
"id": null,

docs/zh/docs/insight/user-guide/dashboard/import-dashboard.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,30 @@
66

77
1. 登录 DCE 5.0 平台,进入 __容器管理__ ,在集群列表中选择 __kpanda-global-cluster__
88

9-
2. 选择左侧导航栏的 __自定义资源__ ,在列表中查找 __grafanadashboards.integreatly.org__ 文件,进入详情。
9+
2. 选择左侧导航栏的 __自定义资源__ ,在列表中查找 __grafana.integreatly.org__ 文件,进入详情。
1010

1111
![导入仪表盘](https://docs.daocloud.io/daocloud-docs-images/docs/insight/images/importboard00.png){ width="1000"}
1212

1313
3. 点击 __Yaml 创建__ ,使用以下模板,在 __Json__ 字段中替换仪表盘 JSON。
1414

1515
- __namespace__ :填写目标命名空间;
1616
- __name__ :填写仪表盘的名称。
17-
- __label__ :必填, __operator.insight.io/managed-by: insight__
17+
- __spec.allowCrossNamespaceImport__ :必填,值为 __true__
18+
- __spec.instanceSelector.matchLabels__ :必填,__operator.insight.io/managed-by: insight__
1819

1920
```yaml
20-
apiVersion: integreatly.org/v1alpha1
21+
apiVersion: grafana.integreatly.org/v1beta1
2122
kind: GrafanaDashboard
2223
metadata:
2324
labels:
2425
app: insight-grafana-operator
25-
operator.insight.io/managed-by: insight
2626
name: sample-dashboard
2727
namespace: insight-system
2828
spec:
29+
allowCrossNamespaceImport: true
30+
instanceSelector:
31+
matchLabels:
32+
operator.insight.io/managed-by: insight
2933
json: >
3034
{
3135
"id": null,

0 commit comments

Comments
 (0)