Skip to content
Install the CLI

Reference Package catalog

grafana

These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.

Grafana: observability and data visualization

This page is generated from kix/packages/stable/grafana.

StabilityStable
package valuepackages.grafana
Default software version13.3.1
Default aliasesgrafana

Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set deps.<name> in your cluster definition. See Declaring dependencies for how required and optional dependencies work.

DependencyRequirement
grafanaAdminRequired
alertmanagerOptional
clusterIssuerOptional
gatewayOptional
ingressNginxOptional
lokiOptional
oidcOptional
prometheusOptional
prometheusServerOptional
smtpOptional
storageOptional
tempoOptional

Name and uid of the Alertmanager datasource wired from the alertmanager dependency.

  • Type: submodule
  • Default: { }

Display name in the datasource picker.

  • Type: string
  • Default: "Alertmanager"

Stable identifier that dashboards refer to.

  • Type: string
  • Default: "alertmanager"

Datasources provisioned after the wired ones, in Grafana’s provisioning format. Under default deny Grafana gets no automatic egress to their URLs; add a network policy that allows it. Because entries land in a ConfigMap, credentials in secureJsonData, password, or basicAuthPassword must use a reference Grafana expands ($VAR from env or $__file{<path>}); literal strings are refused.

  • Type: list of (open submodule of attribute set of anything)

  • Default: [ ]

  • Example:

    [
    {
    access = "proxy";
    name = "Pyroscope";
    type = "grafana-pyroscope-datasource";
    uid = "pyroscope";
    url = "https://pyroscope.example.com";
    }
    ]

Display name in the datasource picker.

  • Type: non-empty string

Datasource plugin id, such as prometheus, loki, or postgres.

  • Type: non-empty string

Datasources Grafana deletes from its database by name before provisioning. Grafana matches provisioned datasources by name, so renaming one while keeping its uid fails unless the old name is listed here. Deleting a nonexistent name is a no-op.

  • Type: list of (submodule)

  • Default: [ ]

  • Example:

    [
    {
    name = "Prometheus";
    }
    ]

Name of the datasource to delete before provisioning.

  • Type: string

Organization ID of the datasource to delete.

  • Type: signed integer
  • Default: 1

Extra environment variables for Grafana, such as GF_<SECTION>_<KEY> settings: a string, a fieldRef source, or a secretKeyRef source naming a Secret managed outside Kix with kix.untrackedRef. The GF_PATHS_* variables and the administrator login from grafanaAdmin are refused.

  • Type: attribute set of (null or string or env var source with `valueFrom`)
  • Default: { }

Container image for this instance. Set it from a pin file (kix.pins) so the deployed reference is committed and resolved.

  • Type: submodule

  • Default:

    {
    digest = "sha256:0615ec4fbd4072004b7d86b46ded63013a74b7d6eb1119273dd89e8fa25c13cf";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/grafana/grafana";
    tag = "13.3.1";
    }

Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.

  • Type: null or string
  • Default: the package’s digest while tag is the package’s tag, otherwise null

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

  • Type: null or string
  • Default: null

Who resolved this pin, for the record. Null when unknown.

  • Type: null or string
  • Default: null

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

  • Type: null or string
  • Default: "IfNotPresent"

Image repository, registry host included.

  • Type: string
  • Default: "docker.io/grafana/grafana"

When this pin was resolved, RFC 3339. Null when unknown.

  • Type: null or string
  • Default: null

Revision of the source the image was built from, when Kix built it. Null for upstream images.

  • Type: null or string
  • Default: null

Image tag. What was asked for.

  • Type: string
  • Default: "13.3.1"

Annotations added to the generated Ingress or HTTPRoute (for example, external-dns annotations). Keys set here override package defaults.

  • Type: attribute set of string
  • Default: { }

Additional hostnames added to the Ingress or HTTPRoute alongside host. In Gateway mode, a listener must accept each hostname or evaluation fails. The instance’s public URL (self.exposure.url) still uses host.

  • Type: list of string

  • Default: [ ]

  • Example:

    [
    "www.example.com"
    ]

Public hostname of Grafana’s route. Null means no route: Grafana does not default to <instance>.<cluster.domain> because the route also serves unauthenticated /metrics.

  • Type: null or string
  • Default: null

Gateway API HTTPRoute rule timeouts for this instance. When set, replaces any default timeouts set by the package; null keeps the package defaults. Ignored in Ingress mode.

  • Type: null or (submodule)

  • Default: null

  • Example:

    {
    request = "0s";
    }

Maximum duration for a single request from the Gateway to a backend, as a Gateway API duration string such as 10s.

  • Type: null or string
  • Default: null

Maximum duration for the entire client request, as a Gateway API duration string such as 30s. Set 0s to disable the timeout.

  • Type: null or string
  • Default: null

Run a root init container that chowns /var/lib/grafana to 472:472 before Grafana starts. Enable only when the storage driver ignores fsGroup. Carries CHOWN and DAC_READ_SEARCH so root can traverse mode-0700 directories Grafana created on prior starts.

  • Type: boolean
  • Default: false

Image of the init-chown-data container.

  • Type: submodule

  • Default:

    {
    digest = "sha256:fd7dc98638c8e305f4dc34e979f1c0fdfdcaeb0fbf8fcff77ae834b6da3d7e6e";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/library/busybox";
    tag = "1.38.0";
    }

Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.

  • Type: null or string
  • Default: the package’s digest while tag is the package’s tag, otherwise null

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

  • Type: null or string
  • Default: null

Who resolved this pin, for the record. Null when unknown.

  • Type: null or string
  • Default: null

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

  • Type: null or string
  • Default: "IfNotPresent"

Image repository, registry host included.

  • Type: string
  • Default: "docker.io/library/busybox"

When this pin was resolved, RFC 3339. Null when unknown.

  • Type: null or string
  • Default: null

Revision of the source the image was built from, when Kix built it. Null for upstream images.

  • Type: null or string
  • Default: null

Image tag. What was asked for.

  • Type: string
  • Default: "1.38.0"

Name and uid of the Loki datasource wired from the loki dependency.

  • Type: submodule
  • Default: { }

Display name in the datasource picker.

  • Type: string
  • Default: "Loki"

Stable identifier that dashboards refer to.

  • Type: string
  • Default: "loki"

Sender address for this instance’s mail. Null uses the smtp instance’s out.from.

  • Type: null or string matching the pattern [^@[:space:]]+@[^@[:space:]]+
  • Default: null
  • Example: "[email protected]"

Enable metrics endpoint and monitoring resources (ServiceMonitor, PrometheusRules) when prometheus is available.

  • Type: boolean
  • Default: true

Scrape interval (e.g. ”30s”). Null = use Prometheus default.

  • Type: null or string
  • Default: null

Send users straight to the provider instead of showing the application’s login page (auth.generic_oauth.auto_login).

  • Type: boolean
  • Default: false

OAuth scopes the application requests. OpenID Connect needs openid, so a list without it is refused.

  • Type: list of scopes without spaces or commas that includes "openid"

  • Default:

    [
    "openid"
    "profile"
    "email"
    ]

Name and uid of the Prometheus datasource wired from the prometheusServer dependency.

  • Type: submodule
  • Default: { }

Display name in the datasource picker.

  • Type: string
  • Default: "Prometheus"

Stable identifier that dashboards refer to.

  • Type: string
  • Default: "prometheus"

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

  • Type: submodule

  • Default:

    {
    limits = {
    cpu = "1";
    memory = "1Gi";
    };
    requests = {
    cpu = "100m";
    memory = "128Mi";
    };
    }

Dynamic resource claims the container uses. Null leaves it unset.

  • Type: null or (list of (submodule))
  • Default: null

Name of an entry in the pod’s resourceClaims.

  • Type: string

Request within the claim to use. Null uses the whole claim.

  • Type: null or string
  • Default: null

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "1"

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "1Gi"

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "100m"

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "128Mi"

grafana.ini sections and keys, merged over the package defaults. The package disables calls to grafana.com (analytics.reporting_enabled, analytics.check_for_updates, analytics.check_for_plugin_updates, plugins.public_key_retrieval_disabled, plugins.preinstall_disabled, and news.news_feed_enabled), sets log.mode = "console", sets data proxy timeouts, and sets server.root_url from the route. A null value removes a key. The paths section, server.http_port, security.admin_user, and security.admin_password are refused because the mounts, Service, and grafanaAdmin dependency own them. Pass credentials through env (secretKeyRef) or $__file{...} rather than writing them into this ConfigMap.

  • Type: attribute set of attribute set of (null or boolean or signed integer or floating point number or string)

  • Default: { }

  • Example:

    {
    "auth.generic_oauth" = {
    client_id = "grafana";
    enabled = true;
    };
    server = {
    root_url = "https://grafana.example.com";
    };
    }

Run the k8s-sidecar container that loads dashboards from labelled ConfigMaps or Secrets.

  • Type: boolean
  • Default: true

Label key that marks a ConfigMap or Secret as holding dashboards.

  • Type: non-empty string
  • Default: "grafana_dashboard"

Value of label that the sidecar matches.

  • Type: string
  • Default: "1"

Namespace the sidecar searches (k8s-sidecar’s NAMESPACE): ALL or one namespace name. Null leaves NAMESPACE unset, so the sidecar searches Grafana’s own namespace.

  • Type: null or non-empty string
  • Default: "ALL"

Run the k8s-sidecar container that loads datasources from labelled ConfigMaps or Secrets.

  • Type: boolean
  • Default: true

Label key that marks a ConfigMap or Secret as holding datasources.

  • Type: non-empty string
  • Default: "grafana_datasource"

Value of label that the sidecar matches.

  • Type: string
  • Default: "1"

Namespace the sidecar searches (k8s-sidecar’s NAMESPACE): ALL or one namespace name. Null leaves NAMESPACE unset, so the sidecar searches Grafana’s own namespace.

  • Type: null or non-empty string
  • Default: null

Image for the k8s-sidecar containers that load dashboards and datasources from labelled ConfigMaps and Secrets.

  • Type: submodule

  • Default:

    {
    digest = "sha256:52d311dcedd587421a236c4d6c621f05614c40a51386e955e0699dca97ec0880";
    pullPolicy = "IfNotPresent";
    repository = "quay.io/kiwigrid/k8s-sidecar";
    tag = "2.14.3";
    }

Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.

  • Type: null or string
  • Default: the package’s digest while tag is the package’s tag, otherwise null

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

  • Type: null or string
  • Default: null

Who resolved this pin, for the record. Null when unknown.

  • Type: null or string
  • Default: null

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

  • Type: null or string
  • Default: "IfNotPresent"

Image repository, registry host included.

  • Type: string
  • Default: "quay.io/kiwigrid/k8s-sidecar"

When this pin was resolved, RFC 3339. Null when unknown.

  • Type: null or string
  • Default: null

Revision of the source the image was built from, when Kix built it. Null for upstream images.

  • Type: null or string
  • Default: null

Image tag. What was asked for.

  • Type: string
  • Default: "2.14.3"

Resources for each k8s-sidecar container.

  • Type: submodule

  • Default:

    {
    limits = {
    cpu = "100m";
    memory = "256Mi";
    };
    requests = {
    cpu = "50m";
    memory = "96Mi";
    };
    }

Dynamic resource claims the container uses. Null leaves it unset.

  • Type: null or (list of (submodule))
  • Default: null

Name of an entry in the pod’s resourceClaims.

  • Type: string

Request within the claim to use. Null uses the whole claim.

  • Type: null or string
  • Default: null

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "100m"

sidecar.resources.limits.ephemeral-storage

Section titled “sidecar.resources.limits.ephemeral-storage”

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "256Mi"

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "50m"

sidecar.resources.requests.ephemeral-storage

Section titled “sidecar.resources.requests.ephemeral-storage”

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "96Mi"

Load dashboards and datasources from ConfigMaps matching sidecar.dashboards and sidecar.datasources labels. Grants Grafana cluster-wide ConfigMap read access regardless of searchNamespace.

  • Type: boolean
  • Default: true

Also load dashboards and datasources from labelled Secrets. Grants Grafana cluster-wide Secret read access; enable only when a datasource definition cannot read its credential from Grafana’s environment.

  • Type: boolean
  • Default: false

Name and uid of the Tempo datasource wired from the tempo dependency.

  • Type: submodule
  • Default: { }

Display name in the datasource picker.

  • Type: string
  • Default: "Tempo"

Stable identifier that dashboards refer to.

  • Type: string
  • Default: "tempo"