Custom dashboard folder
This example shows how to add assign a dashboard to a folder through the dashboard resource, avoiding the use of the GrafanaFolder resource.
---
apiVersion: grafana.integreatly.org/v1beta1
kind: Grafana
metadata:
name: grafana
labels:
dashboards: "grafana"
spec:
client:
preferIngress: true
config:
log:
mode: "console"
auth:
disable_login_form: "false"
security:
admin_user: root
admin_password: secret
---
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
name: grafanadashboard-with-custom-folder
spec:
folder: "Custom Folder"
instanceSelector:
matchLabels:
dashboards: "grafana"
url: "https://raw.githubusercontent.com/grafana-operator/grafana-operator/master/examples/dashboard_from_url/dashboard.json"