fairwinds-metrics

by joaquinito2051

Helm chartv0.6.1App v0.6.0

A Helm chart for running Fairwinds Custom Metrics

About this chart

Fairwinds Custom Metrics

A controller for a collection of non-standard metrics.

A Note on Chart Version 0.4.0+

Due to the future deprecation of various extensions/v1beta1 API's, the 0.4.0 version of this chart will only work on kubernetes 1.14.0+

Disabling certain metrics

As of chart version 0.6.0 you can disable metrics by using environment variables.

If you set any of the following pod env variables to "false" then the metric will be disabled. By default they are all enabled:

  • ISTIO_ROOT_CA_EXPIRATION_DAYS_ENABLED
  • EPOCH_TIME_ENABLED
  • TERMINATING_PODS_ENABLED

For example, to disable the terminating pods metric, set the following in your values:

controller:
  env:
    TERMINATING_PODS_ENABLED: "false"

Also, if you don't need the istio root CA expire check and want to limit the RBAC permissions so that secrets are not visible to this workload, you can set controller.istio.enabled to false and the environment variable for that check will automatically get set as well.

Values

KeyTypeDefaultDescription
image.repositorystring"us-docker.pkg.dev/fairwinds-ops/oss/custom-metrics"Repository for the custom-metrics image
image.tagstring"v0.6.0"The custom-metrics image tag to use
image.pullPolicystring"Always"imagePullPolicy - Highly recommended to leave this as Always
nameOverridestring""
fullnameOverridestring""
controller.enabledbooltrueWhether or not to install the controller deployment
controller.istio.enabledbooltrue
controller.rbac.createbooltrueIf set to true, rbac resources will be created for the controller
controller.serviceAccount.createbooltrueIf true, a service account will be created for the controller. If set to false, you must set controller.serviceAccount.name
controller.serviceAccount.namestringnil
controller.datadogAnnotations.enabledbooltrueIf set to true, the controller will add datadog annotations to the pods
controller.logVerbositystring"2"The verbosity of the controller's logs
controller.envobject{}Map of environment var name and value to be set on the controller pods
controller.nodeSelectorobject{}Node selector for the controller pod
controller.tolerationslist[]Tolerations for the controller podons - List of tolerations to put on the deployment pods
controller.affinityobject{}Affinity for the controller pods
controller.resourcesobject{"limits":{"cpu":"25m","memory":"32Mi"},"requests":{"cpu":"25m","memory":"32Mi"}}The resources block for the controller pods
controller.service.enabledbooltrueIf set to true, the controller will create a service for the controller
controller.service.typestring"ClusterIP"The type of service to create.
controller.service.portint10042The port to run the dashboard service on

Deploy fairwinds-metrics with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has fairwinds-metrics 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 chartfairwinds-metrics is pinned at v0.6.1 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