mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
monitoring: use netdata for internal monitoring
Change-type: patch Signed-off-by: Matthew McGinn <matthew@balena.io>
This commit is contained in:
parent
13626a534f
commit
794fcc9a60
@ -7,6 +7,8 @@ volumes:
|
||||
etcher_bash_history:
|
||||
etcher_config_electron:
|
||||
etcher_config_balena_etcher:
|
||||
netdatalib:
|
||||
netdatacache:
|
||||
services:
|
||||
influxdb:
|
||||
restart: always
|
||||
@ -54,3 +56,25 @@ services:
|
||||
tmpfs:
|
||||
- /run
|
||||
- /tmp
|
||||
netdata:
|
||||
build: ./etcher-pro-monitoring/netdata
|
||||
# this could be removed if we could simply use env vars in our configuration (only to pass in supervisor API URL)
|
||||
network_mode: 'host'
|
||||
ports:
|
||||
- '19999:19999'
|
||||
environment:
|
||||
- PGID=988
|
||||
# we get this injected as unix:///...sock, but netdata doesn't like that
|
||||
- DOCKER_HOST=/var/run/balena-engine.sock
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
||||
security_opt:
|
||||
- apparmor:unconfined
|
||||
labels:
|
||||
io.balena.features.balena-socket: 1
|
||||
io.balena.features.procfs: 1
|
||||
io.balena.features.supervisor-api: 1
|
||||
io.balena.features.sysfs: 1
|
||||
volumes:
|
||||
- netdatalib:/var/lib/netdata
|
||||
- netdatacache:/var/cache/netdata
|
||||
|
5
etcher-pro-monitoring/netdata/Dockerfile
Normal file
5
etcher-pro-monitoring/netdata/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
||||
FROM netdata/netdata
|
||||
|
||||
WORKDIR /etc/netdata
|
||||
COPY httpcheck-supervisor.yml ./go.d/httpcheck.conf
|
||||
COPY balenad.conf ./python.d/dockerd.conf
|
2
etcher-pro-monitoring/netdata/balenad.conf
Normal file
2
etcher-pro-monitoring/netdata/balenad.conf
Normal file
@ -0,0 +1,2 @@
|
||||
update_every : 1
|
||||
priority : 60000
|
3
etcher-pro-monitoring/netdata/httpcheck-supervisor.yml
Normal file
3
etcher-pro-monitoring/netdata/httpcheck-supervisor.yml
Normal file
@ -0,0 +1,3 @@
|
||||
jobs:
|
||||
- name: balena-supervisor
|
||||
url: http://localhost:48484/ping
|
Loading…
x
Reference in New Issue
Block a user