Grafana
Customize Verrazzano Grafana settings
By default, Verrazzano automatically installs and configures a Grafana database. However, you can use your own external database.
If you prefer to use your own Grafana database, complete the following steps:
-
Create a secret named
grafana-db
in theverrazzano-install
namespace which contains the login credentials. For example:$ # Load the login credentials into variables $ ROOT_SECRET=$(echo <database root user secret> | base64) $ USER=$(echo <database user> | base64) $ USER_SECRET=$(echo <database user secret> | base64) $ # $ # Create the secret $ kubectl apply -f - <<-EOF apiVersion: v1 kind: Secret metadata: name: grafana-db namespace: verrazzano-install type: Opaque data: root-password: $ROOT_SECRET username: $USER password: $USER_SECRET EOF
-
Configure the Grafana component of the Verrazzano custom resource. For example:
apiVersion: install.verrazzano.io/v1beta1 kind: Verrazzano metadata: name: grafana-db-example spec: profile: dev components: grafana: database: host: mysql.verrazzano-install.svc.cluster.local name: grafana
For more information about the component definition, see Grafana component in the Verrazzano custom resource.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.