On Thursday, October 13, 2016 at 7:47:57 AM UTC-4, [email protected] wrote: > On Wednesday, October 12, 2016 at 6:33:18 PM UTC+3, [email protected] wrote: > > Hi, > > > > I am using Telegraf in my current production environment to read the > > jolokia for JVM Stats and saves it in Influxdb. In the same way I would > > like to use the same telegraf plugin to post the Docker Stats to InfluxDb. > > We are using docker to deploy our APIs. Telegraf is installed within the > > Docker Container. I prefer to use the same telegraf plugin within the > > docker to collect metrics rather than installing one on host. Please advice. > > > > Telegraf version is 0.13. > > > > Regards > > Karthik > > Hi, > > We strongly suggest using the latest Telegraf version 1.0.1 > > I am not sure I understand the question correctly. When installed inside a > container, Telegraf will normally collect data for the container itself. > > It is possible to collect host metrics from inside the container though, by > exposing etc,sys,proc,var volumes. See the following example: > > docker run -d --hostname=name -e "HOST_PROC=/rootfs/proc" -e > "HOST_SYS=/rootfs/sys" -e "HOST_ETC=/rootfs/etc" -v > /var/run/docker.sock:/var/run/docker.sock:ro -v /sys:/rootfs/sys:ro -v > /proc:/rootfs/proc:ro -v /etc:/rootfs/etc:ro telegraf
Hi, Thanks for your reply. Great to know that telegraf can collect data within container. I have another question here, Within my docker container I have a telegraf agent to collect metrics from Jolokia and post to InfluxDB. Within the same telegraf configuration, can I collect the Docker stats and send it only to AWS Cloudwatch? How do I pair the Input to Output like Jolokia to Influxdb and docker Stats -> AWS Cloudwatch. Appreciate your help. Regards Karthik -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/cdda951e-83a1-4db6-a8ac-2567646ad99d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
