Telegraf is a plugin-driven server agent written by the folks over at InfluxData for collecting & reporting metrics.
$ helm install stable/telegraf
This chart bootstraps a telegraf
deployment on a Kubernetes cluster using the Helm package manager.
- Kubernetes 1.4+ with Beta APIs enabled
To install the chart with the release name my-release
:
$ helm install --name my-release 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
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.
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 install --name my-release \
--set single.enabled=false \
stable/telegraf
The above command prevents the single telegraf instance from deploying.
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
$ helm install --name my-release -f values.yaml 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-influxdb.tick:8086"
database: "telegraf"
inputs:
- cpu:
percpu: false
totalcpu: true
- system:
Tip: You can use the default values.yaml
This chart deploys the following by default:
-
telegraf
(telegraf-ds
) running in a daemonset with the following plugins enabled -
A single
telegraf
deployment (telegraf-s
) with an associated service running the following plugins:
The following telegraf output plugins are supported for both the daemonset and the single instance. To enable them uncomment them in .Values.{{ "daemonset" | "single" }}.outputs
:
The single telegraf also supports all service plugins. To enable them uncomment the named plugin in .Values.single.inputs
section. The associated service exposes the ports if it is enabled:
To enable additional input plugins uncomment them in the .Values.single.inputs
section. The input plugins supported by the single telegraf instance are as follows:
aerospike
apache
cassandra
cloudwatch
consul
couchbase
couchdb
disque
dns_query
dovecot
elasticsearch
graylog
haproxy
influxdb
lustre2
mailchimp
memcached
mesos
mongodb
mysql
net_response
nginx
nsq
phpfpm
ping
postgresql
prometheus
rabbitmq
raindrops
redis
rethinkdb
riak
sqlserver
twemproxy
zookeeper
http_listener
statsd
tcp_listener
udp_listener
webhooks
There are a couple of additional plugins that could/should possibly be supported but are not yet: