From a0c5ffc8698275711cf3cbe39900644e55285d6e Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 13 Oct 2024 20:01:19 -0500 Subject: [PATCH] postgresql: Collect Wal-G metrics with statsd_exporter _wal-g_ can send StatsD metrics when it completes an upload/backup/etc. task. Using the `statsd_exporter`, we can capture these metrics and make them available to Victoria Metrics. --- group_vars/postgresql.yml | 1 + postgresql.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/group_vars/postgresql.yml b/group_vars/postgresql.yml index eb80182..8ceab3a 100644 --- a/group_vars/postgresql.yml +++ b/group_vars/postgresql.yml @@ -59,3 +59,4 @@ wal_g_pg_config: WALG_S3_PREFIX: s3://pgbackup/pyrocufflink/main/15 AWS_ENDPOINT: https://s3.backups.pyrocufflink.blue PGHOST: /run/postgresql + WALG_STATSD_ADDRESS: localhost:9125 diff --git a/postgresql.yml b/postgresql.yml index dd65d9d..c55b042 100644 --- a/postgresql.yml +++ b/postgresql.yml @@ -8,6 +8,9 @@ - role: wal-g-pg tags: - wal-g + - role: statsd-exporter + tags: + - statsd-exporter - postgresql-server - role: postgres-exporter tags: postgres-exporter