1
0

Netdata: add monitoring for postgresql databases

This commit is contained in:
2025-07-29 12:58:01 +03:00
parent 791caab704
commit 61c757646a
6 changed files with 186 additions and 155 deletions

View File

@@ -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:

View File

@@ -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:

View 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'

View File

@@ -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 }}'