Sign inSign up

sk8r776/docker-telegraf

By sk8r776

•Updated over 9 years ago

Clone of appcelerator with ENV added to change DB name

Image
0

250

sk8r776/docker-telegraf repository overview

⁠docker-telegraf

Docker Image for InfluxData Telegraf⁠, based on Alpine linux.

⁠Run

You may need to replace the path to /var/run/docker.sock depending on the location of your docker socket.

Most basic form:

docker run -t -v /var/run/docker.sock:/var/run/docker.sock:ro appcelerator/telegraf

Custom InfluxDB location, additional tags, and retention policy for InfluxDB 1.0.0:

docker run -t -v /var/run/docker.sock:/var/run/docker.sock:ro -v /var/run/utmp:/var/run/utmp:ro -e INFLUXDB_URL=http://influxdb:8086 -e TAG_datacenter=eu-central-1 -e TAG_type=core -e INFLUXDB_RETENTION_POLICY= appcelerator/telegraf

⁠Configuration (ENV, -e)

VariableDescriptionDefault valueSample value
HOSTNAMETo pass in the docker host's actual hostnamelocalhost
TAG_<name>Adds a tag with the given value to all measurementsTAG_datacenter=eu-central-1
METRIC_BATCH_SIZEsize of writes that Telegraf sends to output plugins1000
METRIC_BUFFER_LIMITbuffer limit for failed writes10000
DEBUG_MODERun telegraf in debug modefalsetrue
QUIET_MODERun telegraf in quiet modefalsetrue
INTERVALData collection interval10s
ROUND_INTERVALRound collection intervaltrue
COLLECTION_JITTERCollection jitter by a random amount1s
FLUSH_INTERVALDefault flushing interval for all outputs10s
FLUSH_JITTERJitter the flush interval by a random amount3s
OUTPUT_INFLUXDB_ENABLEDenable InfluxDB Outputtrue
OUTPUT_CLOUDWATCH_ENABLEDenable Amazon Cloudwatch Outputfalse
OUTPUT_KAFKA_ENABLEDenable Kafka Outputfalse
OUTPUT_NATS_ENABLEDenable NATS Outputfalse
OUTPUT_FILE_ENABLEDenable File Outputfalse
INPUT_KAFKA_ENABLEDenable Kafka Inputfalse
INPUT_NATS_ENABLEDenable Nats Inputfalse
INPUT_CPU_ENABLEDenable cpu metricstrue
INPUT_DISK_ENABLEDenable disk metricstrue
INPUT_DISKIO_ENABLEDenable disk I/O metricstrue
INPUT_KERNEL_ENABLEDenable kernel metricsfalse
INPUT_MEM_ENABLEDenable mem metricstrue
INPUT_PROCESS_ENABLEDenable process metricstrue
INPUT_SWAP_ENABLEDenable swap metricstrue
INPUT_SYSTEM_ENABLEDenable system metricstrue
INPUT_NETSTAT_ENABLEDenable netstat metricsfalse
INPUT_NET_ENABLEDenable net metricstrue
INPUT_LISTENER_ENABLEDenable generic TCP listenerfalse
INPUT_DOCKER_ENABLEDenable Docker metricstrue
INPUT_HAPROXY_ENABLEDenable haproxy metricsfalse
INFLUXDB_URLWhere is your InfluxDB running?http://localhost:8086⁠http://influxdb:8086⁠
INFLUXDB_RETENTION_POLICYSet the name of the policydefaultautogen
INFLUXDB_USERInfluxDB username
INFLUXDB_PASSInfluxDB passwordmetrics
INFLUXDB_TIMEOUTInfluxDB timetout (in seconds)5
CLOUDWATCH_REGIONAmazon regionus-east-1
CLOUDWATCH_NAMESPACENamespaceInfluxData/Telegraf
INPUT_NATS_URLUrl of NATS servernats://localhost:4222
INPUT_NATS_SUBJECTSubject to consumetelegraf
INPUT_LISTENER_PORTPort of the generic TCP listener8094
INPUT_LISTENER_DATA_FORMATData format of the generic TCP listenerjson
INPUT_HAPROXY_SERVERhaproxy address127.0.0.1:1931/haproxy?stats/var/run/haproxy/admin/sock
OUTPUT_NATS_URLURL of NATS serverlocalhost:4222
OUTPUT_NATS_SUBJECTNATS Subject for producer messagestelegraf
OUTPUT_KAFKA_BROKER_URLKafka broker URL in outputlocalhost:9092
OUTPUT_KAFKA_TOPICKafka topic on which to writetelegraf
OUTPUT_KAFKA_RETRIESNumber of retries for the connection to Kafka3
OUTPUT_FILE_PATHabsolute path to the file, would better be mountedstdout
INPUT_KAFKA_BROKER_URLKafka broker URL in inputlocalhost:9092
INPUT_KAFKA_TOPICKafka topic on which to readtelegraf
INPUT_KAFKA_ZOOKEEPER_PEERZookeeper peers used by Kafka in inputzookeeper:2181
INPUT_KAFKA_ZOOKEEPER_CHROOTZookeeper chroot path
KAFKA_DATA_FORMATKafka data formatinflux

⁠Tags

  • telegraf-0.13
  • telegraf-1.0.1, telegraf-1.0
  • telegraf-1.1.2, telegraf-1.1, latest

Tag summary

Content type

Image

Digest

Size

22.6 MB

Last updated

over 9 years ago

docker pull sk8r776/docker-telegraf