🕶️Monitoring User
Version >= 10
create user datasentinel password 'myPassword';
grant pg_monitor,pg_read_all_settings,pg_read_all_stats to datasentinel;If you intend to use the option for terminating a session directly from the User Interface
grant pg_signal_backend to datasentinel;The default setting for the PostgreSQL search_path variable is "$user", public.
If the search_path has been modified at the instance level, it's essential to ensure that the user account, typically datasentinel, includes the public schema in its search_path.
If the public schema is not included, you will need to update it accordingly.
ALTER USER datasentinel SET search_path TO "$user", public;
// Connect with datasentinel user
SHOW search_path;File pg_hba.conf
pg_hba.confAdd authorization for the monitoring user to connect to all databases with a password
# TYPE DATABASE USER ADDRESS METHOD
host all datasentinel 127.0.0.1/0 md5Reload the configuration
SSL connection
Only Available when using the Agentless method
You can configure the monitoring user to use SSL connections to your PostgreSQL instances
Here are the steps to follow:
Navigate to the Agentless Settings section of the UI
Ensure that your connection name starts with ssl (for instance, "ssl_crm_production").
Transfer the certificates to the
/datasentinel/ssldirectory on the platform.The name of the certificate files must be standardized starting with the name of the connection, as below
/datasentinel/ssl/ssl_crm_production_root.crt
/datasentinel/ssl/ssl_crm_production_postgresql.crt
/datasentinel/ssl/ssl_crm_production_postgresql.keyChange the access permissions:
chmod 600
Last updated