tfy-grafana

by TrueFoundry

Helm chartv0.1.22-rc.2Verified publisher

Truefoundry grafana provisioner

About this chart

Grafana helm chart powered by truefoundry

Tfy-grafana is a helm chart to power monitoring via grafana

Upgrade Guide

From 1.3 to 1.4

  • Default dashboards are now included with the grafana charts
  • You can add the dashboards in the dashboards/ folder
  • Apply a label to the configmap via .grafana.sidecar.dashboards.label and .grafana.sidecar.dashboards.labelValue.

Parameters

grafana Configuration for Grafana deployment.

NameDescriptionValue
grafana.replicasStatefulSet configuration for Grafana.1
grafana.useStatefulSetReplicas configuration for Grafana.true
grafana.resources.limits.cpuCPU limit for Grafana.100m
grafana.resources.limits.memoryMemory limit for Grafana.128Mi
grafana.resources.requests.cpuCPU request for Grafana.100m
grafana.resources.requests.memoryMemory request for Grafana.128Mi
grafana.adminUserAdmin user for Grafana.""
grafana.adminPasswordAdmin password for Grafana.""
grafana.initChownData.resources.limits.cpuCPU limit for initializing chown data.100m
grafana.initChownData.resources.limits.memoryMemory limit for initializing chown data.128Mi
grafana.initChownData.resources.requests.cpuCPU request for initializing chown data.100m
grafana.initChownData.resources.requests.memoryMemory request for initializing chown data.128Mi
grafana.sidecar.resources.limits.cpuCPU limit for Grafana sidecar.100m
grafana.sidecar.resources.limits.memoryMemory limit for Grafana sidecar.100Mi
grafana.sidecar.resources.requests.cpuCPU request for Grafana sidecar.50m
grafana.sidecar.resources.requests.memoryMemory request for Grafana sidecar.50Mi
grafana.sidecar.dashboards.enabledWhether to enable/disable dashboardsfalse
grafana.sidecar.dashboards.labelLabel key for grafana dashboard configmaptruefoundry_truevisibility
grafana.sidecar.dashboards.labelValueLabel value for grafana dashboard configmapowner
grafana.datasources.datasources.yaml.apiVersionAPI version for the datasource configuration.1
grafana.datasources.datasources.yaml.datasources[0].nameName of the first datasource.Prometheus
grafana.datasources.datasources.yaml.datasources[0].typeType of the first datasource.prometheus
grafana.datasources.datasources.yaml.datasources[0].urlURL for the first datasource.http://prometheus-kube-prometheus-prometheus.prometheus.svc.cluster.local:9090
grafana.datasources.datasources.yaml.datasources[0].accessAccess type for the first datasource.proxy
grafana.datasources.datasources.yaml.datasources[0].isDefaultSpecify if the first datasource is the default.true
grafana.datasources.datasources.yaml.datasources[1].nameName of the second datasource.Loki
grafana.datasources.datasources.yaml.datasources[1].typeType of the second datasource.loki
grafana.datasources.datasources.yaml.datasources[1].urlURL for the second datasource.http://loki.loki.svc.cluster.local:3100
grafana.datasources.datasources.yaml.datasources[1].accessAccess type for the second datasource.proxy
grafana.datasources.datasources.yaml.datasources[1].isDefaultSpecify if the second datasource is the default.false
grafana.persistence.enabledEnable or disable persistence for Grafana.true
grafana.persistence.sizeSize of the persisted storage for Grafana.10Gi

Deploy tfy-grafana with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tfy-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 charttfy-grafana is pinned at v0.1.22-rc.2 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