Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 639 Bytes

README.md

File metadata and controls

37 lines (31 loc) · 639 Bytes

Deployment

Prepare server

See: https://gist.github.com/mrpatiwi/de1b929785347cd1a22e

New Relic

export NEW_RELIC_LICENSE_KEY="KEY"

To create a monitoring container:

docker run -d \
  -v /var/run/docker.sock:/var/run/docker.sock:ro \
  -e NEW_RELIC_LICENSE_KEY=$NEW_RELIC_LICENSE_KEY \
  --privileged \
  --pid="host" \
  --net="host" \
  --ipc="host" \
  -v /sys:/sys \
  -v /dev:/dev \
  --restart=always \
  --name newrelic \
  uzyexe/newrelic

Or just import analytics.yml:

newrelic:
  extends:
    file: ./../analytics.yml
    service: newrelic
  environment:
    - NEW_RELIC_LICENSE_KEY