grafana

by QuenchWorks

Helm chartv0.0.25App 13.1.9AGPL-3.0-onlyVerified publisher

Dashboards and visualization for metrics, logs, and traces across many data sources. Hardened by QuenchWorks as a minimal, nonroot, CVE-gated image, cosign-signed and pinned by digest.

About this chart

Quenchworks Grafana

Hardened Grafana OSS on a minimal, nonroot, CVE-gated image pinned by digest. Grafana is a single self-contained static Go binary; the official OSS release artifact (AGPL-3.0) is hardened on Wolfi and gated CVE-gated. The dashboard UI and HTTP API are both served on port 3000. Single replica (state in a local SQLite database on the PVC).

Pairs with the Quenchworks Prometheus and VictoriaMetrics charts as datasources.

Install

helm install dash oci://ghcr.io/quenchworks/charts/grafana

The admin password is stored in a Secret (generated if you do not supply one). There is no anonymous access by default.

Connect

# admin password
kubectl get secret dash-grafana -o jsonpath="{.data.admin-password}" | base64 -d

# reach the UI
kubectl port-forward svc/dash-grafana 3000:3000
# open http://127.0.0.1:3000  (user: admin)

Health check:

curl -fsS http://dash-grafana:3000/api/health
# -> {"database":"ok","version":"13.0.2"}

Provision a datasource

Point Grafana at the Quenchworks Prometheus (or VictoriaMetrics) service. Set the datasources value; it is rendered into a ConfigMap mounted into the provisioning directory and wired on boot:

datasources:
  - name: Prometheus
    type: prometheus
    access: proxy
    url: http://prometheus:9090
    isDefault: true
  - name: VictoriaMetrics
    type: prometheus
    access: proxy
    url: http://victoriametrics:8428

Configuration

Grafana ships grafana.ini read-only at /etc/grafana/grafana.ini. Override any setting via GF_<SECTION>_<KEY> env using config.extraIni:

config:
  extraIni:
    GF_SERVER_ROOT_URL: "https://grafana.example.com"
    GF_USERS_ALLOW_SIGN_UP: "false"

Verify the image

cosign verify ghcr.io/quenchworks/images/grafana \
  --certificate-identity-regexp 'https://github.com/quenchworks/.+' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Each image also ships an SPDX SBOM and SLSA build provenance as attestations. Verify them with the GitHub CLI:

gh attestation verify oci://ghcr.io/quenchworks/images/grafana \
  --owner quenchworks

Values

KeyDefaultNotes
image.repositoryghcr.io/quenchworks/images/grafana
image.digest(CI-written)Required. Charts pin by digest, never a tag.
replicaCount1Single replica (SQLite state on the PVC).
auth.adminUseradminAdmin user (GF_SECURITY_ADMIN_USER).
auth.adminPassword(generated)24-char random if empty; stored in the Secret.
auth.existingSecret""Use an existing Secret for the admin user + password.
config.extraIni{}Map of GF_<SECTION>_<KEY> env overrides.
datasources[]Provisioned datasources (e.g. Prometheus/VictoriaMetrics).
persistence.enabledtrue8Gi PVC at /var/lib/grafana.
service.port3000Dashboard UI + HTTP API.
service.httpsPort443Service port for the TLS listener (container 8443) when tls.enabled.
tls.enabledfalseServe the dashboard UI and HTTP API over HTTPS on the app's own listener; the certificate is mounted at /tls.
tls.existingSecret""Use this kubernetes.io/tls Secret (1st choice).
tls.certManager.enabledfalseRequest a cert-manager Certificate from tls.certManager.issuerRef (2nd choice).
tls.selfSigned.validityDays365Otherwise Helm generates a CA + certificate, kept across upgrades.
networkPolicy.enabledtrueIngress on port 3000.
networkPolicy.allowExternaltrueA dashboard UI is usually reached externally; set false to restrict to the namespace.
podDisruptionBudget.enabledtrueminAvailable: 1.
ingress.enabledfalseCreate an Ingress. With tls.enabled it routes to 443: set the backend protocol to HTTPS.
ingress.className""IngressClass to claim it. Empty leaves it unset, so the cluster default applies.
ingress.annotations{}Controller annotations (rewrite targets, body size, cert-manager issuer, ...).
ingress.servicePortnullBackend port. Unset: service.httpsPort with tls.enabled, else service.port.
ingress.hosts[]e.g. [{host: app.example.com}]. A host with no paths gets a single / Prefix path.
ingress.tls[]Standard Ingress TLS list, e.g. [{hosts: [app.example.com], secretName: app-tls}].

Plus the shared quench-common knobs (scheduling, probes, sidecars, extra env/volumes, security contexts).

Security

Runs nonroot (uid 1001) on a read-only root filesystem with all capabilities dropped. The SQLite database and plugins live on the writable /var/lib/grafana volume; logs (/var/log/grafana), the provisioning tree (/etc/grafana/provisioning), and /tmp are emptyDir. Admin credentials live in a Kubernetes Secret, and there is no anonymous access by default.

Notes

Single replica (Grafana OSS keeps state in a local SQLite database; HA needs an external Postgres/MySQL backend, a tracked follow-up). Depends on the quench-common library chart, pulled from oci://ghcr.io/quenchworks/charts/quench-common.

Deploy grafana with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has grafana on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgrafana is pinned at v0.0.25 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply