Configure Grafana

Configure GrafanaΒΆ

The configuration of Grafana is stored in the grafana section of the Reclass model.

To configure Grafana:

  1. Log in to the Salt Master node.

  2. Configure the grafana section in the classes/cluster/<cluster_name>/stacklight/server.yml file of the Reclass model as required.

  3. Apply the Salt formulas:

    salt -C 'I@grafana:server' state.sls grafana.server
    salt -C 'I@grafana:client' state.sls grafana.client
    

Example configuration:

grafana:
  server:
    enabled: true
    bind:
      address: 127.0.0.1
      port: 3000
    database:
      engine: mysql
      host: 127.0.0.1
      port: 3306
      name: grafana
      user: grafana
      password: db_pass
    auth:
      basic:
        enabled: true
    admin:
      user: admin
      password: admin_pass
    dashboards:
      enabled: false
      path: /var/lib/grafana/dashboards