Skip to content

Commit 65f1894

Browse files
committed
Add netdata monitoring system and configure it's nginx collector.
1 parent b46c3a3 commit 65f1894

File tree

10 files changed

+71
-3
lines changed

10 files changed

+71
-3
lines changed

docker-compose.netdata.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ services:
77
depends_on:
88
- netdata-netdata
99
netdata-netdata:
10-
image: netdata/netdata
11-
hostname: sopoc.duckdns.org
10+
build: netdata/netdata
11+
hostname: netdata-sopoc.duckdns.org
1212
cap_add:
1313
- SYS_PTRACE
1414
security_opt:

netdata/netdata-proxy/server.conf

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ server {
22
listen 80;
33
server_name netdata-proxy;
44

5-
# Netdata
65
location / {
76
proxy_pass http://netdata-netdata:19999;
87
}
8+
9+
# Nginx status page
10+
location /stub_status {
11+
stub_status;
12+
access_log off;
13+
}
914
}

netdata/netdata/Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM netdata/netdata
2+
COPY conf/ /etc/netdata/

netdata/netdata/conf/go.d.conf

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Enable/disable the whole go.d.plugin.
2+
enabled: yes
3+
4+
# Enable/disable default value for all modules.
5+
default_run: yes
6+
7+
# Maximum number of used CPUs. Zero means no limit.
8+
max_procs: 0
9+
10+
# Enable/disable specific g.d.plugin module
11+
modules:
12+
nginx: yes

netdata/netdata/conf/go.d/nginx.conf

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
jobs:
2+
- name: netdata-proxy
3+
url : http://netdata-proxy/stub_status
4+
5+
- name: so-manager-proxy
6+
url : http://so-manager-proxy/stub_status
7+
8+
- name: so-vm-proxy
9+
url : http://so-vm-proxy/stub_status
10+
11+
- name: thehive-proxy-thehive
12+
url : http://thehive-proxy-thehive/stub_status
13+
14+
- name: thehive-proxy-cortex
15+
url : http://thehive-proxy-cortex/stub_status
16+
17+
- name: ntop-proxy
18+
url : http://ntop-proxy/stub_status

ntop/ntop-proxy/server.conf.template

+7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
server {
22
listen 80;
33
server_name ntop-proxy;
4+
45
location / {
56
proxy_pass http://${DOCKER_GATEWAY}:5000;
67
}
8+
9+
# Nginx status page
10+
location /stub_status {
11+
stub_status;
12+
access_log off;
13+
}
714
}

so-manager/so-manager-proxy/server.conf

+6
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,10 @@ server {
2626
proxy_redirect off;
2727
proxy_pass http://so-manager-gotty-so/;
2828
}
29+
30+
# Nginx status page
31+
location /stub_status {
32+
stub_status;
33+
access_log off;
34+
}
2935
}

so-vm/so-vm-proxy/server.conf

+6
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ server {
55
location / {
66
proxy_pass https://192.168.101.2;
77
}
8+
9+
# Nginx status page
10+
location /stub_status {
11+
stub_status;
12+
access_log off;
13+
}
814
}

thehive/thehive-proxy-cortex/server.conf

+6
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@ server {
1515
proxy_http_version 1.1;
1616
proxy_pass http://thehive-cortex:9001/;
1717
}
18+
19+
# Nginx status page
20+
location /stub_status {
21+
stub_status;
22+
access_log off;
23+
}
1824
}

thehive/thehive-proxy-thehive/server.conf

+6
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,10 @@ server {
1515
proxy_http_version 1.1;
1616
proxy_pass http://thehive-thehive:9000/;
1717
}
18+
19+
# Nginx status page
20+
location /stub_status {
21+
stub_status;
22+
access_log off;
23+
}
1824
}

0 commit comments

Comments
 (0)