postgres_exporter/collector
Joe Adams ab33346cbd
Add the instance struct to handle connections
The intent is to use the instance struct to hold the connection to the database as well as metadata about the instance. Currently this metadata only includes the version of postgres for the instance which can be used in the collectors to decide what query to run. In the future this could hold more metadata but for now it keeps the Collector interface arguments to a reasonable number.

Signed-off-by: Joe Adams <github@joeadams.io>
2023-06-21 20:36:59 -04:00
..
collector.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
collector_test.go Move queries from queries.yaml to collectors (#801) 2023-06-08 23:28:04 +02:00
instance.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_database.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_database_test.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_postmaster.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_postmaster_test.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_process_idle.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_replication.go Fix up collector registration (#812) 2023-06-13 17:28:11 +02:00
pg_replication_slot.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_replication_slot_test.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_replication_test.go Move queries from queries.yaml to collectors (#801) 2023-06-08 23:28:04 +02:00
pg_stat_bgwriter.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_stat_bgwriter_test.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_stat_database.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_stat_statements.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_stat_statements_test.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_stat_user_tables.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_stat_user_tables_test.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_statio_user_tables.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
pg_statio_user_tables_test.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00
probe.go Add the instance struct to handle connections 2023-06-21 20:36:59 -04:00