telegraf-ds

by Helm

Helm chartv1.1.58App 1.40.4

Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.

About this chart

Telegraf-DS (DaemonSet) Helm chart

Telegraf is a plugin-driven server agent used for collecting and reporting metrics. This chart runs a DaemonSet of Telegraf instances to collect host-level metrics for your cluster. To poll individual instances of infrastructure or APIs, use the Telegraf chart.

The Telegraf-DS Helm chart uses the Helm package manager to bootstrap a Telegraf-DS (DaemonSet) on a Kubernetes cluster. You cannot customize Telegraf inputs for this chart being the goal is to provide an opinionated configuration for monitoring Kubernetes nodes and global Kubernetes monitoring.

Prerequisites

  • Helm v2 or later
  • Kubernetes 1.11+ with Beta APIs enabled

QuickStart

helm repo add influxdata https://helm.influxdata.com/
helm upgrade --install telegraf-ds influxdata/telegraf-ds

Tip: helm upgrade --install [RELEASE] [CHART] [FLAGS] is idempotent and can be run multiple times. If chart hasn't been installed, Helm installs it. If chart is installed, Helm redeploys the same version or upgrades the chart if a new version is available.

Install the chart

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

helm upgrade --install my-release influxdata/telegraf-ds

The command deploys a Telegraf DaemonSet on the Kubernetes cluster in the default configuration. The configuration section as well as the values.yaml file lists the parameters that can be configured during installation.

Tip: To view all Helm chart releases, run helm list.

Uninstall the chart

To uninstall/delete the my-release deployment:

helm uninstall my-release

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

Configure the chart

The default configuration parameters are listed in values.yaml. To change the defaults, specify each parameter using the --set key=value[,key=value] argument to helm install. For example:

helm upgrade --install my-release \
  --set outputs.influxdb.urls=["http://foo.bar:8086"] \
    influxdata/telegraf-ds

This command lets the chart deploy by setting the InfluxDB URL for Telegraf to write to.

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

helm upgrade --install my-release -f values.yaml influxdata/telegraf-ds

Tip: helm upgrade --install [RELEASE] [CHART] [FLAGS] can be shortened : helm upgrade -i [RELEASE] [CHART] [FLAGS]

Telegraf configuration

This chart deploys the following by default:

The following plugin can be enable through the configuration:

Docker metrics

To enable Docker monitoring (if Docker runtime is available):

config:
  docker_endpoint: "unix:///var/run/docker.sock"

Deploy telegraf-ds with OpenTenant

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