Created
May 27, 2018 15:23
-
-
Save mlabouardy/9c502c1445f42565ca28fa783d572720 to your computer and use it in GitHub Desktop.
Install telegraf agent on Elastic Beanstalk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
container_commands: | |
01downloadpackage: | |
command: "wget https://dl.influxdata.com/telegraf/releases/telegraf-1.6.0-1.x86_64.rpm -O /tmp/telegraf.rpm" | |
ignoreErrors: true | |
02installpackage: | |
command: "yum localinstall -y /tmp/telegraf.rpm" | |
ignoreErrors: true | |
03removepackage: | |
command: "rm /tmp/telegraf.rpm" | |
ignoreErrors: true | |
04enablereboot: | |
command: "chkconfig telegraf on" | |
ignoreErrors: true | |
05fixpermission: | |
command: "usermod -a -G docker telegraf" | |
ignoreErrors: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment