Netdata: add monitoring for postgresql databases
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
services:
|
||||
|
||||
netdata:
|
||||
image: netdata/netdata:v2.6.0
|
||||
image: netdata/netdata:v2.6.1
|
||||
container_name: netdata
|
||||
restart: unless-stopped
|
||||
cap_add:
|
||||
@@ -11,7 +11,8 @@ services:
|
||||
security_opt:
|
||||
- apparmor:unconfined
|
||||
networks:
|
||||
- "{{ web_proxy_network }}"
|
||||
- "web_proxy_network"
|
||||
- "monitoring_network"
|
||||
volumes:
|
||||
- "{{ config_dir }}:/etc/netdata"
|
||||
- "{{ (data_dir, 'lib') | path_join }}:/var/lib/netdata"
|
||||
@@ -33,5 +34,7 @@ services:
|
||||
NETDATA_EXTRA_DEB_PACKAGES: "fail2ban"
|
||||
|
||||
networks:
|
||||
{{ web_proxy_network }}:
|
||||
web_proxy_network:
|
||||
external: true
|
||||
monitoring_network:
|
||||
external: true
|
||||
|
@@ -1,3 +1,3 @@
|
||||
jobs:
|
||||
- name: fail2ban
|
||||
update_every: 5 # Collect Fail2Ban jails statistics every 5 seconds
|
||||
update_every: 15 # Collect Fail2Ban jails statistics every 15 seconds
|
||||
|
9
files/netdata/go.d/postgres.conf
Normal file
9
files/netdata/go.d/postgres.conf
Normal file
@@ -0,0 +1,9 @@
|
||||
update_every: 15
|
||||
|
||||
jobs:
|
||||
|
||||
- name: outline_db
|
||||
dsn: 'postgresql://netdata:{{ netdata_postgres_password }}@outline_postgres:5432/outline'
|
||||
|
||||
- name: miniflux_db
|
||||
dsn: 'postgresql://netdata:{{ netdata_postgres_password }}@miniflux_postgres:5432/miniflux'
|
@@ -1,5 +1,4 @@
|
||||
update_every: 5
|
||||
autodetection_retry: 0
|
||||
update_every: 15
|
||||
|
||||
jobs:
|
||||
|
||||
|
Reference in New Issue
Block a user