Azure Database for PostgreSQL (Single Server, Hyperscale) monitoring

On the Azure Database for PostgreSQL (Single Server, Hyperscale) overview pages you get insights into various aspects of database performance, including CPU and memory usage, active connections, storage space, and much more.

Prerequisites

  • Dynatrace version 1.196+
  • Environment ActiveGate version 1.195+

Enable monitoring

To enable monitoring for Azure Database for PostgreSQL (Single Server, Hyperscale), you first need to set up integration with Azure Monitor.
Optionally, for OneAgent integration, see how database activity is monitored.

Add the service to monitoring

In order to view the service metrics, you must add the service to monitoring in your Dynatrace environment.

Monitor resources based on tags

You can choose to monitor resources based on existing Azure tags, as Dynatrace automatically imports them from service instances.

To monitor resources based on tags

  1. Go to Settings > Cloud and virtualization > Azure and select the Azure instance.
  2. For Resource monitoring method, select Monitor resources based on tags.
  3. Enter the Key and Value.
  4. Select Save.

Note: To import the Azure tags automatically into Dynatrace, enable Capture Azure tags automatically.

Configure service metrics

Once you add a service, Dynatrace starts automatically collecting a suite of metrics for this particular service. These are recommended metrics.

Recommended metrics:

  • Are enabled by default
  • Can't be disabled
  • Can have recommended dimensions (enabled by default, can't be disabled)
  • Can have optional dimensions (disabled by default, can be enabled).

Apart from the recommended metrics, most services have the possibility of enabling optional metrics.

Optional metrics:

  • Can be added and configured manually

View service metrics

You can view the service metrics in your Dynatrace environment either on the custom device overview page or on your Dashboards page.

View metrics on the custom device overview page

To access the custom device overview page

  1. Go to Technologies on the Dynatrace navigation menu.
  2. Filter by service name and select the relevant custom device group.
  3. Once you select the custom device group, you're on the custom device group overview page.
  4. The custom device group overview page lists all instances (custom devices) belonging to the group. Select an instance to view the custom device overview page.

View metrics on your dashboard

Once you add a service to monitoring, a preset dashboard for the respective service containing all recommended metrics is automatically created on your Dashboards page. You can look for specific dashboards by filtering by Preset and then by Name.

Note: For existing monitored services, you might need to resave your credentials for the preset dashboard to appear on the Dashboards page. To resave your credentials, go to Settings > Cloud and virtualization > Azure, select the desired Azure instance, then select Save.

You can't make changes on a preset dashboard directly, but you can clone and edit it. To clone a dashboard, open the browse menu (...) and select Clone.
To remove a dashboard from the dashboards list, you can hide it. To hide a dashboard, open the browse menu (...) and select Hide.
Note: Hiding a dashboard doesn't affect other users.
clone-hide-azure

postgres-dash hyper

Set up a management zone

To import a dashboard for Azure Database for PostgreSQL, you need to set up a management zone to limit the entities displayed on the dashboard to those relevant to this service.

When you create a management zone for this dashboard:

  1. Create a rule that identifies services based on a common property:
    • Service topology: Opaque service
    • Service type: Database
  2. Add a condition for the database name to contain the postgres string (case sensitive.)

Note: You can see whether a dashboard requires a management zone in the rules setup.

After you create the management zone, assign it to your dashboard (from the dashboard, select Edit > Settings > Default management zone). For more information, see Dashboard timeframe and management zone.

Available metrics

Azure Database for PostgreSQL (Single Server)

Name Description Unit Recommended
active_connections The number of active connections to the server Count ✔️
backup_storage_used The amount of backup storage used. This metric represents the sum of storage consumed by all the full database backups, differential backups, and log backups retained based on the backup retention period set for the server. Bytes
cpu_percent The percentage of CPU in use Percent ✔️
connections_failed The number of established connections that failed Count ✔️
io_consumption_percent The percentage of IO in use Percent ✔️
pg_replica_log_delay_in_bytes Lag in bytes of the most lagging replica Bytes
memory_percent The percentage of memory in use Percent ✔️
network_bytes_ingress Network in across active connections Bytes ✔️
network_bytes_egress Network out across active connections Bytes ✔️
pg_replica_log_delay_in_seconds The time since the last replayed transaction. This metric is available for replica servers only. Seconds ✔️
serverlog_storage_limit The maximum server log storage for this server Bytes
serverlog_storage_percent The percentage of server log storage used out of the server's maximum server log storage Percent ✔️
serverlog_storage_usage The amount of server log storage in use Bytes
storage_limit The maximum storage for this server Bytes
storage_percent The percentage of storage used out of the server's maximum Percent ✔️
storage_used The amount of storage in use. The storage used by the service may include the database files, transaction logs, and the server logs. Bytes

Azure Database for PostgreSQL Hyperscale

Name Description Unit Recommended
active_connections The number of active connections to the server Count ✔️
cpu_percent The percentage of CPU in use Percent ✔️
iops The number of requests that your application is sending to the storage disks in one second Count ✔️
memory_percent The percentage of memory in use Percent ✔️
network_bytes_egress Network out across active connections Byte ✔️
network_bytes_ingress Network in across active connections Byte ✔️
storage_percent The percentage of storage used out of the server's maximum Percent ✔️
storage_used The amount of storage in use. The storage used by the service may include the database files, transaction logs, and the server logs. Byte