telegraf
Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
About this chart
Telegraf
Telegraf is a plugin-driven server agent written by the folks over at InfluxData for collecting & reporting metrics.
TL;DR
$ helm install <helm-repo>/telegraf
$ helm install stable/telegraf
Introduction
This chart bootstraps a telegraf deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.4+ with Beta APIs enabled
Installing the Chart
To install the chart with the release name telegraf:
$ helm install --name telegraf --namespace monitoring <helm-repo>/telegraf
$ helm install --name telegraf --namespace monitoring stable/telegraf The command deploys Telegraf on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the telegraf deployment:
$ helm delete telegraf
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The default configuration parameters are listed in values.yaml.
$ helm install --name telegraf <helm-repo>/telegraf
$ helm install --name telegraf stable/telegraf Outputs and inputs are configured as arrays of key/value dictionaries. Additional examples and defaults can be found in values.yaml Example:
outputs:
- influxdb:
urls: []
# - "http://influxdb.monitoring:8086"
database: "telegraf"
inputs:
- cpu:
percpu: false
totalcpu: true
- system:
Tip: You can use the default values.yaml
Please see https://github.com/influxdata/telegraf/tree/master/plugins/ and checkout the contents of the inputs and outputs folders.
Deploy telegraf with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has telegraf 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charttelegraf is pinned at v1.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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