Monitoring the Connection Manager v6.0.0
Available tables and views
The Connection Manager provides a number of tables and views that can be used to monitor the status of the Connection Manager and its connections. These include:
bdr.stat_activity
— which is information frompg_stat_activity
enhanced with addition columns regarding theconnection_manager_client_addr
andconnection_manager_client_port
is the connection has come through the connection manager, andsession_read_only
if it has connected through the read-only port.bdr.stat_connection_manager
— which is a view that provides statistics about the Connection Manager's status.bdr.stat_connection_manager_connections
— which is a view that provides statistics about the Connection Manager's connections.bdr.stat_connection_manager_nodes_stats
— which is a view that provides statistics about the Connection Manager on each of the data nodes.bdr.stat_connection_manager_hba_file_rules
— which is a view that shows which HBA file rules for the connection manager are being used on this node.
Monitoring the Connection Manager
The Connection Manager can be monitored through the HTTP API. The following endpoints are available:
TODO
Logging
All Connection Manager log messages are written to the PostgreSQL log.
The behavior of %r
and %h
escape sequences in log_line_prefix has been altered to log "proxy_address/client_address" and "proxy_port/client_port" respectively.
This is achieved by the proxy setting a GUC for the server connections it uses. As users can override this GUC, any security context derived from the client_address will need to be verified by referring to the full session logs.