Last active
January 31, 2016 13:05
-
-
Save uzyexe/bc943d6099a8fbaa9cd7 to your computer and use it in GitHub Desktop.
This is newrelic clouc-config.yml for coreos. https://registry.hub.docker.com/u/uzyexe/newrelic-for-onboot-coreos/
This file contains 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
coreos: | |
units: | |
- name: newrelic.service | |
command: start | |
content: | | |
[Unit] | |
Description=newrelic | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Restart=always | |
RestartSec=300 | |
TimeoutStartSec=10m | |
ExecStartPre=-/usr/bin/docker stop newrelic | |
ExecStartPre=-/usr/bin/docker rm -f newrelic | |
ExecStartPre=-/usr/bin/docker pull uzyexe/newrelic:latest | |
ExecStart=/usr/bin/docker run \ | |
--rm \ | |
--name="newrelic" \ | |
--memory="64m" \ | |
--memory-swap="-1" \ | |
--net="host" \ | |
--pid="host" \ | |
--env="NEW_RELIC_LICENSE_KEY=YOUR_NEW_RELIC_LICENSE_KEY" \ | |
--volume="/var/run/docker.sock:/var/run/docker.sock:ro" \ | |
--volume="/sys/fs/cgroup/:/sys/fs/cgroup:ro" \ | |
--volume="/dev:/dev" \ | |
uzyexe/newrelic | |
ExecStop=/usr/bin/docker stop newrelic | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment