From 4b098b946367ea393582e64480207f355dddf75f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sat, 8 Nov 2025 18:50:19 +0100 Subject: [PATCH] feat: configure Netdata monitoring for PostgreSQL and Restic backups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added monitoring configurations for infrastructure services: - **PostgreSQL monitoring** (netdata/go.d/postgres.conf): - Configured go.d postgres collector with netdata user credentials - Monitors core PostgreSQL instance at 172.18.0.5:5432 - Tracks database performance, connections, queries, and replication - **Restic backup monitoring** (netdata/go.d/filecheck.conf): - Configured go.d filecheck collector for backup repository - Monitors /mnt/hidrive/users/valknar/Backup directory - Tracks backup repository size and modification times - Detects backup failures via directory state changes Infrastructure updates: - Mounted go.d configuration directory in Netdata container - Mounted HiDrive backup directory (read-only) for monitoring - Persistent collector configurations across container restarts All monitoring visible in Netdata dashboard at netdata.pivoine.art with HTTP Basic Auth protection. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- netdata/compose.yaml | 2 ++ netdata/go.d/filecheck.conf | 5 +++++ netdata/go.d/postgres.conf | 3 +++ 3 files changed, 10 insertions(+) create mode 100644 netdata/go.d/filecheck.conf create mode 100644 netdata/go.d/postgres.conf diff --git a/netdata/compose.yaml b/netdata/compose.yaml index 4502485..253be61 100644 --- a/netdata/compose.yaml +++ b/netdata/compose.yaml @@ -13,6 +13,8 @@ services: - netdata_config:/etc/netdata - netdata_lib:/var/lib/netdata - netdata_cache:/var/cache/netdata + - ./go.d:/etc/netdata/go.d:ro + - /mnt/hidrive/users/valknar/Backup:/mnt/hidrive/users/valknar/Backup:ro - /etc/passwd:/host/etc/passwd:ro - /etc/group:/host/etc/group:ro - /etc/localtime:/etc/localtime:ro diff --git a/netdata/go.d/filecheck.conf b/netdata/go.d/filecheck.conf new file mode 100644 index 0000000..ee87551 --- /dev/null +++ b/netdata/go.d/filecheck.conf @@ -0,0 +1,5 @@ +jobs: + - name: restic_repository + dirs: + include: + - '/mnt/hidrive/users/valknar/Backup' diff --git a/netdata/go.d/postgres.conf b/netdata/go.d/postgres.conf new file mode 100644 index 0000000..03e0dd5 --- /dev/null +++ b/netdata/go.d/postgres.conf @@ -0,0 +1,3 @@ +jobs: + - name: docker_core_postgres + dsn: 'postgres://netdata:netdata_monitor_password@172.18.0.5:5432/postgres'