Skip to content

Commit 3386459

Browse files
committed
Netdata docker and elasticsearch
1 parent a92f4de commit 3386459

File tree

5 files changed

+29
-13
lines changed

5 files changed

+29
-13
lines changed

docker-compose.netdata.yml

+11-12
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
netdata-proxy:
66
build: netdata/netdata-proxy
77
depends_on:
8-
- netdata-netdata
8+
- netdata-netdata
99
netdata-netdata:
1010
build: netdata/netdata
1111
hostname: netdata-sopoc.duckdns.org
@@ -14,15 +14,14 @@ services:
1414
security_opt:
1515
- apparmor:unconfined
1616
volumes:
17-
- /etc/passwd:/host/etc/passwd:ro
18-
- /etc/group:/host/etc/group:ro
19-
- /proc:/host/proc:ro
20-
- /sys:/host/sys:ro
17+
- /:/host:ro
18+
#- /etc/passwd:/host/etc/passwd:ro
19+
#- /etc/group:/host/etc/group:ro
20+
#- /etc/os-release:/host/etc/os-release:ro
21+
#- /dev:/host/dev:ro
22+
#- /proc:/host/proc:ro
23+
#- /sys:/host/sys:ro
24+
- /var/run/docker.sock:/var/run/docker.sock:ro
25+
- /var/run/libvirt/libvirt-sock-ro:/var/run/libvirt/libvirt-sock-ro:ro
2126
environment:
22-
- DOCKER_HOST=netdata-docker-socket-proxy:2375
23-
netdata-docker-socket-proxy:
24-
image: tecnativa/docker-socket-proxy
25-
volumes:
26-
- /var/run/docker.sock:/var/run/docker.sock:ro
27-
environment:
28-
- CONTAINERS=1
27+
- DOCKER_USR=root

netdata/netdata/Dockerfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
FROM netdata/netdata
2-
COPY conf/ /etc/netdata/
2+
3+
COPY conf/ /etc/netdata/
4+
5+
# Requirements for python.d plugins
6+
RUN apk add py2-pip
7+
RUN pip install docker
8+
RUN apk del py2-pip

netdata/netdata/conf/go.d.conf

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ max_procs: 0
1010
# Enable/disable specific g.d.plugin module
1111
modules:
1212
nginx: yes
13+
mysql: yes

netdata/netdata/conf/go.d/mysql.conf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
jobs:
2+
- name: misp-db
3+
dsn: misp:misp@tcp(misp-db:3306)/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
thehive-elasticsearch:
2+
host: 'thehive-elasticsearch'
3+
port: '9200'
4+
node_status: yes
5+
cluster_health: yes
6+
cluster_staut: yes
7+
indices_stats: no

0 commit comments

Comments
 (0)