Skip to content

Instantly share code, notes, and snippets.

@mlabouardy
Created May 27, 2018 15:23
Show Gist options
  • Save mlabouardy/9c502c1445f42565ca28fa783d572720 to your computer and use it in GitHub Desktop.
Save mlabouardy/9c502c1445f42565ca28fa783d572720 to your computer and use it in GitHub Desktop.
Install telegraf agent on Elastic Beanstalk
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