grafana

by Flux

Helm chartv1.7.0App 7.2.0

Grafana dashboards for monitoring Flagger canary deployments

About this chart

Flagger Grafana

Grafana dashboards for monitoring progressive deployments powered by Flagger and Prometheus.

Prerequisites

  • Kubernetes >= 1.11
  • Prometheus >= 2.6

Installing the Chart

Add Flagger Helm repository:

helm repo add flagger https://flagger.app

To install the chart for Istio run:

helm upgrade -i flagger-grafana flagger/grafana \
--namespace=istio-system \
--set url=http://prometheus:9090

To install the chart for AWS App Mesh run:

helm upgrade -i flagger-grafana flagger/grafana \
--namespace=appmesh-system \
--set url=http://appmesh-prometheus:9090

The command deploys Grafana on the Kubernetes cluster in the default namespace. The configuration section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the flagger-grafana deployment:

helm delete --purge flagger-grafana

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

Configuration

The following tables lists the configurable parameters of the Grafana chart and their default values.

ParameterDescriptionDefault
image.repositoryImage repositorygrafana/grafana
image.pullPolicyImage pull policyIfNotPresent
image.tagImage tag<VERSION>
replicaCountdesired number of pods1
resourcespod resourcesnone
tolerationsList of node taints to tolerate[]
affinitynode/pod affinitiesnode
nodeSelectornode labels for pod assignment{}
service.typetype of serviceClusterIP
urlPrometheus URLhttp://prometheus:9090

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

helm install flagger/grafana --name flagger-grafana \
--set token=WEAVE-CLOUD-TOKEN

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

helm install flagger/grafana --name flagger-grafana -f values.yaml

Tip: You can use the default values.yaml

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 v1.7.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