Skip to content

Instantly share code, notes, and snippets.

@hakobera
Last active April 24, 2017 05:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hakobera/897fd96ba2d3c7b112a6 to your computer and use it in GitHub Desktop.
Save hakobera/897fd96ba2d3c7b112a6 to your computer and use it in GitHub Desktop.
Setup Mackerel for AWS Elastic Beanstalk
packages:
rpm:
mackerel: "http://yum.mackerel.io/centos/x86_64/mackerel-agent-0.7.0-1.noarch.rpm"
files:
/etc/mackerel-agent/mackerel-agent.conf:
mode: "00644"
owner: root
group: root
encoding: plain
content: |
apikey = "YOUR API KEY"
roles = [ "Service:Role" ]
commands:
start_mackerel_agent:
command: "/etc/init.d/mackerel-agent restart"
ignoreErrors: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment