metricbeat

by joaquinito2051

Helm chartv1.6.1App 6.7.0

A Helm chart to collect Kubernetes logs with metricbeat

About this chart

Metricbeat

metricbeat is used to ship Kubernetes and host metrics to multiple outputs.

Prerequisites

  • Kubernetes 1.9+

Installing the Chart

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

$ helm install --name my-release <helm-repo>/metricbeat

$ helm install --name my-release stable/metricbeat

Tip: List all releases using helm list

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.

Configuration

The following table lists the configurable parameters of the metricbeat chart and their default values.

ParameterDescriptionDefault
image.repositoryThe image repository to pull fromdocker.elastic.co/beats/metricbeat
image.tagThe image tag to pull6.7.0
image.pullPolicyImage pull policyIfNotPresent
rbac.createIf true, create & use RBAC resourcestrue
rbac.pspEnabledIf true, create & use PSP resourcesfalse
serviceAccount.createIf true, create & use ServiceAccounttrue
serviceAccount.nameThe name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template
configThe content of the configuration file consumed by metricbeat. See the metricbeat.reference.yml for full details
pluginsList of beat plugins
extraEnvAdditional environment
extraVolumes, extraVolumeMountsAdditional volumes and mounts, for example to provide other configuration files
resources.requests.cpuCPU resource requests
resources.limits.cpuCPU resource limits
resources.requests.memoryMemory resource requests
resources.limits.memoryMemory resource limits
daemonset.enabledIf true, enable daemonset
daemonset.argsCustom arguments for the docker command
daemonset.overrideConfigIf overrideConfig is not empty, metricbeat chart's default config won't be used at all.{}
daemonset.modules.<name>.configThe content of the modules configuration file consumed by metricbeat deployed as daemonset, which is assumed to collect metrics in each nodes. See the metricbeat.reference.yml for full details
daemonset.modules.<name>.enabledIf true, enable configuration
daemonset.overrideModulesIf overrideModules is not empty, metricbeat chart's default modules won't be used at all.{}
daemonset.podAnnotationsPod annotations for daemonset
daemonset.priorityClassNamePod priority class name for daemonset (e.g system-node-critical)""
daemonset.nodeSelectorPod node selector for daemonset{}
daemonset.tolerationsPod taint tolerations for daemonset[{"key": "node-role.kubernetes.io/master", "operator": "Exists", "effect": "NoSchedule"}]
daemonset.resources.requests.cpuCPU resource requests for daemonset
daemonset.resources.limits.cpuCPU resource limits for daemonset
deployment.enabledIf true, enable deployment
deployment.argsCustom arguments for the docker command
deployment.overrideConfigIf overrideConfig is not empty, metricbeat chart's default config won't be used at all.

Deploy metricbeat with OpenTenant

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