Skip to content

Commit 8890825

Browse files
authored
Merge pull request #2 from trjohnson19/newrelic-monitoring
Add monitoring capabilities via New Relic
2 parents 2f1318f + 70307c8 commit 8890825

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

docker-compose-t2.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2492,6 +2492,8 @@ services:
24922492
<<: *default-tz-puid-pgid
24932493
volumes:
24942494
- $APPDIR/overseerr/config:/config
2495+
healthcheck:
2496+
test: wget "http://localhost:$OVERSEERR_PORT/api/v1/status" -qO /dev/null || exit 1 # https://github.com/sct/overseerr/issues/411#issuecomment-755083037
24952497
labels:
24962498
- "traefik.enable=true"
24972499
## HTTP Routers
@@ -2503,7 +2505,7 @@ services:
25032505
- "traefik.http.routers.overseerr-rtr.middlewares=chain-authelia0@file"
25042506
## HTTP Services
25052507
- "traefik.http.routers.overseerr-rtr.service=overseerr-svc"
2506-
- "traefik.http.services.overseerr-svc.loadbalancer.server.port=5055"
2508+
- "traefik.http.services.overseerr-svc.loadbalancer.server.port=$OVERSEERR_PORT"
25072509

25082510
## Ombi - Request Management System
25092511
ombi:
@@ -2714,3 +2716,23 @@ services:
27142716
## HTTP Services
27152717
- "traefik.http.routers.handbrake-rtr.service=handbrake-svc"
27162718
- "traefik.http.services.handbrake-svc.loadbalancer.server.port=5800"
2719+
2720+
2721+
############################## MONITORING
2722+
2723+
# New Relic - Infrastructure and container monitoring
2724+
# https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/linux-installation/container-infrastructure-monitoring/
2725+
newrelic-infra:
2726+
image: newrelic/infrastructure:latest
2727+
container_name: newrelic-infra
2728+
cap_add:
2729+
- SYS_PTRACE # Allows the agent to gather data about processes running on the host
2730+
network_mode: host # Allows the agent to collect the network metrics about the host.
2731+
pid: host # Required to monitor host processes / performance
2732+
privileged: true # Required to monitor host processes / performance
2733+
restart: unless-stopped
2734+
volumes:
2735+
- "/:/host:ro" # Allows the agent to collect process and storage metrics as well as Inventory data from the host
2736+
- "/var/run/docker.sock:/var/run/docker.sock" # Allows the agent to connect to the Engine API via the Docker daemon socket to collect the host's container data
2737+
environment:
2738+
NRIA_LICENSE_KEY: $NRIA_LICENSE_KEY

0 commit comments

Comments
 (0)