grafana
by DARK-art108
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
| Parameter | Description | Default |
|---|---|---|
replicas | Number of nodes | 1 |
podDisruptionBudget.minAvailable | Pod disruption minimum available | nil |
podDisruptionBudget.maxUnavailable | Pod disruption maximum unavailable | nil |
podDisruptionBudget.apiVersion | Pod disruption apiVersion | nil |
deploymentStrategy | Deployment strategy | { "type": "RollingUpdate" } |
livenessProbe | Liveness Probe settings | { "httpGet": { "path": "/api/health", "port": 3000 } "initialDelaySeconds": 60, "timeoutSeconds": 30, "failureThreshold": 10 } |
readinessProbe | Readiness Probe settings | { "httpGet": { "path": "/api/health", "port": 3000 } } |
securityContext | Deployment securityContext | {"runAsUser": 472, "runAsGroup": 472, "fsGroup": 472} |
priorityClassName | Name of Priority Class to assign pods | nil |
image.registry | Image registry | docker.io |
image.repository | Image repository | grafana/grafana |
image.tag | Overrides the Grafana image tag whose default is the chart appVersion (Must be >= 5.0.0) | `` |
image.sha | Image sha (optional) | `` |
image.pullPolicy | Image pull policy | IfNotPresent |
image.pullSecrets | Image pull secrets (can be templated) | [] |
service.enabled | Enable grafana service | true |
service.type | Kubernetes service type | ClusterIP |
service.port | Kubernetes port where service is exposed | 80 |
service.portName | Name of the port on the service | service |
service.appProtocol | Adds the appProtocol field to the service | `` |
service.targetPort | Internal service is port | 3000 |
service.nodePort | Kubernetes service nodePort | nil |
service.annotations | Service annotations (can be templated) | {} |
service.labels | Custom labels | {} |
service.clusterIP | internal cluster service IP | nil |
service.loadBalancerIP | IP address to assign to load balancer (if supported) | nil |
service.loadBalancerSourceRanges | list of IP CIDRs allowed access to lb (if supported) | [] |
service.externalIPs | service external IP addresses | [] |
service.externalTrafficPolicy | change the default externalTrafficPolicy | nil |
headlessService | Create a headless service | false |
extraExposePorts | Additional service ports for sidecar containers | [] |
hostAliases | adds rules to the pod's /etc/hosts | [] |
ingress.enabled | Enables Ingress | false |
ingress.annotations | Ingress annotations (values are templated) | {} |
ingress.labels | Custom labels | {} |
ingress.path | Ingress accepted path | / |
ingress.pathType | Ingress type of path | Prefix |
ingress.hosts | Ingress accepted hostnames | ["chart-example.local"] |
ingress.extraPaths | Ingress 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.tls | Ingress TLS configuration | [] |
ingress.ingressClassName | Ingress Class Name. MAY be required for Kubernetes versions >= 1.18 | "" |
resources | CPU/Memory resource requests/limits | {} |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Toleration labels for pod assignment | [] |
affinity | Affinity settings for pod assignment | {} |
extraInitContainers | Init containers to add to the grafana pod | {} |
extraContainers | Sidecar containers to add to the grafana pod | "" |
extraContainerVolumes | Volumes that can be mounted in sidecar containers | [] |
extraLabels | Custom labels for all manifests | {} |
schedulerName | Name of the k8s scheduler (other than default) | nil |
persistence.enabled | Use persistent volume to store data | false |
persistence.type | Type of persistence (pvc or statefulset) | pvc |
persistence.size | Size of persistent volume claim | 10Gi |
persistence.existingClaim | Use an existing PVC to persist data (can be templated) | nil |
persistence.storageClassName | Type of persistent volume claim | nil |
persistence.accessModes | Persistence access modes | [ReadWriteOnce] |
persistence.annotations | PersistentVolumeClaim annotations | {} |
persistence.finalizers | PersistentVolumeClaim finalizers | [ "kubernetes.io/pvc-protection" ] |
persistence.extraPvcLabels | Extra labels to apply to a PVC. | {} |
persistence.subPath | Mount a sub dir of the persistent volume (can be templated) | nil |
persistence.inMemory.enabled | If persistence is not enabled, whether to mount the local storage in-memory to improve performance | false |
persistence.inMemory.sizeLimit | SizeLimit for the in-memory local storage | nil |
initChownData.enabled | If false, don't reset data ownership at startup | true |
initChownData.image.registry | init-chown-data container image registry | docker.io |
initChownData.image.repository | init-chown-data container image repository | busybox |
initChownData.image.tag | init-chown-data container image tag | 1.31.1 |
initChownData.image.sha | init-chown-data container image sha (optional) | "" |
initChownData.image.pullPolicy | init-chown-data container image pull policy | IfNotPresent |
initChownData.resources | init-chown-data pod resource requests & limits | {} |
schedulerName | Alternate scheduler name | nil |
env | Extra environment variables passed to pods | {} |
envValueFrom | Environment variables from alternate sources. See the API docs on EnvVarSource for format details. Can be templated | {} |
envFromSecret | Name of a Kubernetes secret (must be manually created in the same namespace) containing values to be added to the environment. Can be templated | "" |
envFromSecrets | List of Kubernetes secrets (must be manually created in the same namespace) containing values to be added to the environment. Can be templated | [] |
envFromConfigMaps | List of Kubernetes ConfigMaps (must be manually created in the same namespace) containing values to be added to the environment. Can be templated | [] |
envRenderSecret | Sensible 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgrafana is pinned at v7.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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