Skip to content

Commit

Permalink
Documentation updates (#502)
Browse files Browse the repository at this point in the history
Add documentation about Nested Folder in yaml and fix references to incorrect `Dashboards`/`DashboardFolders` targets
  • Loading branch information
xinity authored Oct 16, 2024
1 parent 6e2a3ff commit d736558
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ wish to use all of these types. It is possible to set a list of "target" resourc
with:

```
grr config set targets Dashboards,DashboardFolders
grr config set targets Dashboard,DashboardFolder
```

These can be overriden on the command line with the `-t` or `--target` flag.
Expand Down
16 changes: 16 additions & 0 deletions docs/content/grafana.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ spec:

A folder simply has a name and a title.

## Nested Folders
Grizzly supports the creation of nested folders.
To create one, specify the *uid* of the parent folder to a `DashboardFolder` definition:

```yaml
apiVersion: grizzly.grafana.com/v1alpha1
kind: DashboardFolder
metadata:
name: nestedFolderSample
spec:
parentUid: sample
title: Nested folder
```
This will create a new folder "Nested folder" under the `sample` folder.

### Placing Dashboards in Folders
Dashboards can be placed into folders using the `folder` metadata field. Here, a
dashboard is placed into the folder defined above:
Expand Down

0 comments on commit d736558

Please sign in to comment.