- Configure AlloyDB Instance Flags
- Setup Database Access for the Agent
- Configure Atatus Infrastructure Agent
Before You Begin
Configure AlloyDB Instance Flags
In the Google Cloud Console, open your AlloyDB instance and edit its Database flags, then restart the instance.Setup Database Access for the Agent
Connect to the primary instance as a superuser:-
Create the
atatususer and grant monitoring access. Run these commands in every database on the instance:To collect data or custom metrics that require querying additional tables, grant the SELECT permission on those tables: GRANT SELECT ON TABLE_NAME TO atatus;. -
Create the explain function in every database:
Verify
Confirm theatatus user can connect and read the core tables:
Configure Atatus Infrastructure Agent
- Install the Atatus Infrastructure agent on a host that can reach your AlloyDB primary instance.
-
Copy the PostgreSQL example configuration file:
-
Update the PostgreSQL configuration file at
/etc/atatus-infra-agent/conf.d/postgresql.d/postgresql.yml:Replace<INSTANCE_ADDRESS>with your AlloyDB primary instance’s private IP. For accurate metrics, connect directly to the primary and avoid load balancers and connection poolers. -
Restart the Atatus Infra Agent: