grafana

by DARK-art108

Helm chartv7.1.0App 10.2.3AGPL-3.0-only

The leading tool for querying and visualizing time series and metrics.

About this chart

Grafana Helm Chart

  • Installs the web dashboarding system Grafana

Get Repo Info

helm repo add grafana https://grafana.github.io/helm-charts
helm repo update

See helm repo for command documentation.

Installing the Chart

To install the chart with the release name my-release:

helm install my-release grafana/grafana

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Upgrading an existing Release to a new major version

A major chart version change (like v1.2.3 -> v2.0.0) indicates that there is an incompatible breaking change needing manual actions.

To 4.0.0 (And 3.12.1)

This version requires Helm >= 2.12.0.

To 5.0.0

You have to add --force to your helm upgrade command as the labels of the chart have changed.

To 6.0.0

This version requires Helm >= 3.1.0.

To 7.0.0

For consistency with other Helm charts, the global.image.registry parameter was renamed to global.imageRegistry. If you were not previously setting global.image.registry, no action is required on upgrade. If you were previously setting global.image.registry, you will need to instead set global.imageRegistry.

Configuration

ParameterDescriptionDefault
replicasNumber of nodes1
podDisruptionBudget.minAvailablePod disruption minimum availablenil
podDisruptionBudget.maxUnavailablePod disruption maximum unavailablenil
podDisruptionBudget.apiVersionPod disruption apiVersionnil
deploymentStrategyDeployment strategy{ "type": "RollingUpdate" }
livenessProbeLiveness Probe settings{ "httpGet": { "path": "/api/health", "port": 3000 } "initialDelaySeconds": 60, "timeoutSeconds": 30, "failureThreshold": 10 }
readinessProbeReadiness Probe settings{ "httpGet": { "path": "/api/health", "port": 3000 } }
securityContextDeployment securityContext{"runAsUser": 472, "runAsGroup": 472, "fsGroup": 472}
priorityClassNameName of Priority Class to assign podsnil
image.registryImage registrydocker.io
image.repositoryImage repositorygrafana/grafana
image.tagOverrides the Grafana image tag whose default is the chart appVersion (Must be >= 5.0.0)``
image.shaImage sha (optional)``
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsImage pull secrets (can be templated)[]
service.enabledEnable grafana servicetrue
service.typeKubernetes service typeClusterIP
service.portKubernetes port where service is exposed80
service.portNameName of the port on the serviceservice
service.appProtocolAdds the appProtocol field to the service``
service.targetPortInternal service is port3000
service.nodePortKubernetes service nodePortnil
service.annotationsService annotations (can be templated){}
service.labelsCustom labels{}
service.clusterIPinternal cluster service IPnil
service.loadBalancerIPIP address to assign to load balancer (if supported)nil
service.loadBalancerSourceRangeslist of IP CIDRs allowed access to lb (if supported)[]
service.externalIPsservice external IP addresses[]
service.externalTrafficPolicychange the default externalTrafficPolicynil
headlessServiceCreate a headless servicefalse
extraExposePortsAdditional service ports for sidecar containers[]
hostAliasesadds rules to the pod's /etc/hosts[]
ingress.enabledEnables Ingressfalse
ingress.annotationsIngress annotations (values are templated){}
ingress.labelsCustom labels{}
ingress.pathIngress accepted path/
ingress.pathTypeIngress type of pathPrefix
ingress.hostsIngress accepted hostnames["chart-example.local"]
ingress.extraPathsIngress extra paths to prepend to every host configuration. Useful when configuring custom actions with AWS ALB Ingress Controller. Requires ingress.hosts to have one or more host entries.[]
ingress.tlsIngress TLS configuration[]
ingress.ingressClassNameIngress Class Name. MAY be required for Kubernetes versions >= 1.18""
resourcesCPU/Memory resource requests/limits{}
nodeSelectorNode labels for pod assignment{}
tolerationsToleration labels for pod assignment[]
affinityAffinity settings for pod assignment{}
extraInitContainersInit containers to add to the grafana pod{}
extraContainersSidecar containers to add to the grafana pod""
extraContainerVolumesVolumes that can be mounted in sidecar containers[]
extraLabelsCustom labels for all manifests{}
schedulerNameName of the k8s scheduler (other than default)nil
persistence.enabledUse persistent volume to store datafalse
persistence.typeType of persistence (pvc or statefulset)pvc
persistence.sizeSize of persistent volume claim10Gi
persistence.existingClaimUse an existing PVC to persist data (can be templated)nil
persistence.storageClassNameType of persistent volume claimnil
persistence.accessModesPersistence access modes[ReadWriteOnce]
persistence.annotationsPersistentVolumeClaim annotations{}
persistence.finalizersPersistentVolumeClaim finalizers[ "kubernetes.io/pvc-protection" ]
persistence.extraPvcLabelsExtra labels to apply to a PVC.{}
persistence.subPathMount a sub dir of the persistent volume (can be templated)nil
persistence.inMemory.enabledIf persistence is not enabled, whether to mount the local storage in-memory to improve performancefalse
persistence.inMemory.sizeLimitSizeLimit for the in-memory local storagenil
initChownData.enabledIf false, don't reset data ownership at startuptrue
initChownData.image.registryinit-chown-data container image registrydocker.io
initChownData.image.repositoryinit-chown-data container image repositorybusybox
initChownData.image.taginit-chown-data container image tag1.31.1
initChownData.image.shainit-chown-data container image sha (optional)""
initChownData.image.pullPolicyinit-chown-data container image pull policyIfNotPresent
initChownData.resourcesinit-chown-data pod resource requests & limits{}
schedulerNameAlternate scheduler namenil
envExtra environment variables passed to pods{}
envValueFromEnvironment variables from alternate sources. See the API docs on EnvVarSource for format details. Can be templated{}
envFromSecretName of a Kubernetes secret (must be manually created in the same namespace) containing values to be added to the environment. Can be templated""
envFromSecretsList of Kubernetes secrets (must be manually created in the same namespace) containing values to be added to the environment. Can be templated[]
envFromConfigMapsList of Kubernetes ConfigMaps (must be manually created in the same namespace) containing values to be added to the environment. Can be templated[]
envRenderSecretSensible environment variables passed to pods and stored as secret. (passed through [tpl](https://helm.sh/docs/howto/charts_tips_and_tricks/#using-the-t

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 v7.1.0 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