- Configure PostgreSQL Server Parameters
- Setup Database Access for the Agent
- Configure Atatus Infrastructure Agent
Before You Begin
Configure PostgreSQL Server Parameters
In the Azure Portal, open your PostgreSQL instance and edit its Server parameters.For Single Server
For Flexible Server
In addition to the parameters above, allow thepg_stat_statements extension:
Restart the instance after applying these changes.
Setup Database Access for the Agent
Connect to thepostgres database as the admin user:
atatus user:
Postgres ≥ 16
Execute in every database:Postgres 15
Execute in every database:Postgres 10 to 14
Execute in every database:Postgres 9.6
Execute in every database:pg_stat_activity and pg_stat_statements:
Explain Plan Function (All Versions)
Create the explain function in every database:Verify
For PostgreSQL ≥ 10:Configure Atatus Infrastructure Agent
- Install the Atatus Infrastructure agent on an Azure VM (or other host) that can reach your PostgreSQL endpoint.
-
Copy the PostgreSQL example configuration file:
-
Update the PostgreSQL configuration file at
/etc/atatus-infra-agent/conf.d/postgresql.d/postgresql.yml:Single Server note: Azure Single Server typically requires the username in the form
atatus@<servername>. Adjust theusername:value accordingly if your instance enforces that format. -
Restart the Atatus Infra Agent: