postgres_exporter/collector
Conrad Hoffmann 552ff92f8b
Make walreceiver collector useful w/o repmgr (#1086)
In a streaming replication setup that was created without replication
manager (`repmgr`), the `stat_wal_receiver` collector does not return
any metrics, because one value it wants to export is not present.

This is rather overly opinionated. The missing metric is comparatively
uninteresting and does not justify discarding all the others. And
replication setups created without `repmgr` are not exactly rare.

This commit makes the one relevant metric optional and simply skips it
if the respective value cannot be determined.

Signed-off-by: Conrad Hoffmann <ch@bitfehler.net>
2024-11-06 18:47:30 +01:00
..
collector_test.go Gitlab Collector: Wal Receiver Collector and Test (#844) 2023-07-21 14:42:08 -04:00
collector.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
instance.go Adjust collector to use separate connection per scrape (#931) 2023-10-10 07:07:37 -04:00
pg_database_test.go Add connection limits metrics for pg_roles and pg_database (#997) 2024-02-21 21:10:17 -05:00
pg_database_wraparound_test.go Gitlab collector: Database wraparound collector and test (#834) 2023-07-14 22:42:12 +02:00
pg_database_wraparound.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_database.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_locks_test.go Migrate pg_locks to collector package (#817) 2023-06-27 15:59:30 +02:00
pg_locks.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_long_running_transactions_test.go Gitlab Collector: Long running transactions collector and test (#836) 2023-08-25 11:20:10 +02:00
pg_long_running_transactions.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_postmaster_test.go Bug fix: Make collector not fail on null values (#823) 2023-06-27 08:07:59 +02:00
pg_postmaster.go Bug Fix: Fix lingering type issues (#828) 2023-06-27 20:18:02 +02:00
pg_process_idle.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_replication_slot_test.go feat: Add safe_wal_size and wal_status to replication_slot (#1027) 2024-05-11 14:59:55 +02:00
pg_replication_slot.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_replication_test.go Cleanup collectors (#826) 2023-06-27 16:40:12 +02:00
pg_replication.go fix pg_replication_lag_seconds (#895) 2023-09-08 16:20:19 -04:00
pg_roles_test.go Add connection limits metrics for pg_roles and pg_database (#997) 2024-02-21 21:10:17 -05:00
pg_roles.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_stat_activity_autovacuum_test.go Gitlab Collector: Autovacuum collector and test (#840) 2023-07-21 14:41:25 -04:00
pg_stat_activity_autovacuum.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_stat_bgwriter_test.go Fix untyped integer overflows on 32-bit archs (#857) 2023-07-05 15:10:47 +02:00
pg_stat_bgwriter.go Bug fix: Make collector not fail on null values (#823) 2023-06-27 08:07:59 +02:00
pg_stat_database_test.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_stat_database.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_stat_statements_test.go Handle new pg_stat_statements column names (#874) 2023-07-25 16:20:37 +02:00
pg_stat_statements.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_stat_user_tables_test.go stat_user_tables: Add total size metric (#904) 2023-09-12 09:07:36 -04:00
pg_stat_user_tables.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_stat_walreceiver_test.go Fix test build failures on 32-bit arch again (#919) 2023-09-21 14:58:46 +02:00
pg_stat_walreceiver.go Make walreceiver collector useful w/o repmgr (#1086) 2024-11-06 18:47:30 +01:00
pg_statio_user_indexes_test.go Gitlab Collector: User Index io stats collector and test (#845) 2023-08-24 09:55:26 +02:00
pg_statio_user_indexes.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_statio_user_tables_test.go Bug fix: Make collector not fail on null values (#823) 2023-06-27 08:07:59 +02:00
pg_statio_user_tables.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
pg_wal_test.go Add a collector to gather metrics on WAL size 2023-07-05 11:51:57 +01:00
pg_wal.go Add a collector to gather metrics on WAL size 2023-07-05 11:51:57 +01:00
pg_xlog_location_test.go Gitlab collector: Xlog location collector and test (#849) 2023-07-21 14:42:43 -04:00
pg_xlog_location.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00
probe.go chore!: adopt log/slog, drop go-kit/log (#1073) 2024-10-26 21:44:17 +02:00