New Relic Infrastructure Agent for Balena Cloud
Docker image with New Relic Infrastructure Agent working with Balena Cloud
How to run?
version: '2'
services:
new_relic:
image: bartoszadamczyk/newrelic-infrastructure-for-balena:latest
restart: unless-stopped
privileged: true
pid: host
cap_add:
- SYS_PTRACE
network_mode: host
environment:
NRIA_LICENSE_KEY: NRIA_LICENSE_KEY
NRIA_OVERRIDE_HOSTNAME_SHORT: HOSTNAME
labels:
io.balena.features.dbus: '1'
io.balena.features.sysfs: '1'
io.balena.features.procfs: '1'
io.balena.features.balena-socket: '1'
Remember to use your NRIA_LICENSE_KEY
and NRIA_OVERRIDE_HOSTNAME_SHORT
.
Read more:
- Docker container for infrastructure monitoring
- Balena Cloud docker labels
- Infrastructure agent settings
- newrelic-infra-template.yml.example
Useful
NRIA_OVERRIDE_HOST_ROOT: /host
- can be passed to change the root path that is used by newrelic agent inside the container.NRIA_METRICS_STORAGE_SAMPLE_RATE: -1
- can be pass to stop StorageAgent reporting.