Parameters

The parent key for all of the following parameters is grafana_helm.

namespace

type

string

default

syn-grafana

The namespace in which to deploy this component.

createNamespace

type

boolean

default

true

Whether to create the namespace specified in namespace.

namespaceLabels

type

object

default

{}

Additional labels to add to the namespace specified in namespace.

namespaceAnnotations

type

object

default

{}

Additional annotations to add to the namespace specified in namespace.

secrets

type

object

default

{}

example
secrets:
  grafana-admin-user:
    stringData:
      admin-user: admin
      admin-password: password

helm_values:
  admin:
    existingSecret: grafana-admin-user

A dictionary holding secrets for use with Grafana. Each key in the dictionary is used as the name of a secret. The value of the key is merged directly into an empty Kubernetes Secret resource. By default, secrets are created in the namespace in which Grafana is deployed.

dashboards

type

object

default

{}

An object with dashboards to provision.

datasources

type

object

default

{}

An object with datasources to provision.

extraConfigMap

type

object

default

{}

An object with extra ConfgiMaps to be deployed

Example

namespace: example-namespace
dashboards:
  dashboard-crossplane: |-
    {
      "annotations": {
        "list": [
          {
            "builtIn": 1,
            "datasource": "-- Grafana --",
            "enable": true,
            "hide": true,
            "iconColor": "rgba(0, 211, 255, 1)",
            "name": "Annotations & Alerts",
            "type": "dashboard"
          }
        ]
      },
      [...]
datasources:
    'datasource.yaml': |-
        apiVersion: 1
        datasources:
        - name: Prometheus
            type: prometheus
            url: http://prometheus-svc
            access: proxy
            isDefault: true
extraConfigMap:
  'nginx.conf': "# My NGINX config File"