Netdata: add monitoring for postgresql databases
This commit is contained in:
@@ -38,6 +38,7 @@ services:
|
||||
- POSTGRES_DB={{ miniflux_postgres_database }}
|
||||
networks:
|
||||
- "miniflux_network"
|
||||
- "{{ web_proxy_network }}"
|
||||
volumes:
|
||||
- {{ postgres_data_dir }}:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
|
@@ -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:
|
||||
|
6
files/netdata/go.d/postgres.conf
Normal file
6
files/netdata/go.d/postgres.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
autodetection_retry: 0
|
||||
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'
|
@@ -58,8 +58,7 @@ services:
|
||||
container_name: outline_redis
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- "outline_network"
|
||||
|
||||
- "outline_network"
|
||||
|
||||
outline_postgres:
|
||||
image: postgres:16.3-bookworm
|
||||
@@ -69,6 +68,7 @@ services:
|
||||
- {{ postgres_data_dir }}:/var/lib/postgresql/data
|
||||
networks:
|
||||
- "outline_network"
|
||||
- "{{ web_proxy_network }}"
|
||||
environment:
|
||||
POSTGRES_USER: '{{ outline_postgres_user }}'
|
||||
POSTGRES_PASSWORD: '{{ outline_postgres_password }}'
|
||||
|
Reference in New Issue
Block a user