Skip to content

Commit bfe9aac

Browse files
Merge pull request #39 from CircleCI-Public/ONPREM-1864/edit-dashboards
Add docs on adding and modifying dashboards
1 parent c67868e commit bfe9aac

File tree

2 files changed

+44
-4
lines changed

2 files changed

+44
-4
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,13 @@ Secure Grafana by configuring credentials:
9090
```yaml
9191
grafana:
9292
credentials:
93+
# Directly set these for quick setups
9394
adminUser: "admin"
9495
adminPassword: "<your-secure-password-here>"
96+
97+
# For production, use a Kubernetes secret to manage credentials securely
9598
existingSecretName: "<your-secret-here>"
9699
```
97-
> **_NOTE:_** Consider using Kubernetes secrets for dynamic credential management.
98100
99101
#### Expose Grafana Externally
100102
@@ -118,7 +120,25 @@ grafana:
118120
enabled: true
119121
storageClass: <your-custom-storage-class>
120122
```
121-
> **_NOTE:_** Use a custom storage class with a 'Retain' policy to secure data integrity.
123+
> **_NOTE:_** Use a custom storage class with a 'Retain' policy to allow for data retention even after uninstalling the chart.
124+
125+
### 8. Modifying or Adding Grafana Dashboards
126+
127+
The default dashboards are located in the `dashboards` directory of the reference chart. To add new dashboards or modify existing ones, follow these steps.
128+
129+
Dashboards are provisioned directly from CRDs, which means any manual edits will be lost upon a refresh. As such, the workflow outlined below is recommended for making changes:
130+
131+
1. Create a copy of the dashboard by selecting **Edit** in the upper right corner, then **Save dashboard** -> **Save as copy**. After saving, navigate to the copy.
132+
2. Make your edits to the copy and exit edit mode.
133+
3. Select **Export** in the upper right corner and then **Export as JSON**. **Ensure that `Export the dashboard to use in another instance` is toggled on.**
134+
4. Download the file and replace the `./dashboards/server-slis.json` file with the updated copy. Ensure to update the title and UID of the updated dashboard to match the original:
135+
```json
136+
{
137+
"title": "Server SLIs",
138+
"uid": "beg3u6ond4ydcb"
139+
}
140+
```
141+
5. Commit the result and open a PR for the On-Prem team to review.
122142

123143
## Values
124144

README.md.gotmpl

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,13 @@ Secure Grafana by configuring credentials:
8484
```yaml
8585
grafana:
8686
credentials:
87+
# Directly set these for quick setups
8788
adminUser: "admin"
8889
adminPassword: "<your-secure-password-here>"
90+
91+
# For production, use a Kubernetes secret to manage credentials securely
8992
existingSecretName: "<your-secret-here>"
9093
```
91-
> **_NOTE:_** Consider using Kubernetes secrets for dynamic credential management.
9294

9395
#### Expose Grafana Externally
9496

@@ -112,7 +114,25 @@ grafana:
112114
enabled: true
113115
storageClass: <your-custom-storage-class>
114116
```
115-
> **_NOTE:_** Use a custom storage class with a 'Retain' policy to secure data integrity.
117+
> **_NOTE:_** Use a custom storage class with a 'Retain' policy to allow for data retention even after uninstalling the chart.
118+
119+
### 8. Modifying or Adding Grafana Dashboards
120+
121+
The default dashboards are located in the `dashboards` directory of the reference chart. To add new dashboards or modify existing ones, follow these steps.
122+
123+
Dashboards are provisioned directly from CRDs, which means any manual edits will be lost upon a refresh. As such, the workflow outlined below is recommended for making changes:
124+
125+
1. Create a copy of the dashboard by selecting **Edit** in the upper right corner, then **Save dashboard** -> **Save as copy**. After saving, navigate to the copy.
126+
2. Make your edits to the copy and exit edit mode.
127+
3. Select **Export** in the upper right corner and then **Export as JSON**. **Ensure that `Export the dashboard to use in another instance` is toggled on.**
128+
4. Download the file and replace the `./dashboards/server-slis.json` file with the updated copy. Ensure to update the title and UID of the updated dashboard to match the original:
129+
```json
130+
{
131+
"title": "Server SLIs",
132+
"uid": "beg3u6ond4ydcb"
133+
}
134+
```
135+
5. Commit the result and open a PR for the On-Prem team to review.
116136

117137
{{ template "chart.valuesSection" . }}
118138

0 commit comments

Comments
 (0)