Azure Database for MySQL

The Azure Database for MySQL overview page serves as a comprehensive overview of your MySQL servers and database instances. From here you can gain full visibility and check if your database is healthy, under-performing, or if there are any failed connections.

Prerequisites

  • Dynatrace version 1.196+
  • Environment ActiveGate version 1.195+

Enable monitoring

To enable monitoring for Azure Database for MySQL, 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.

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

Once you add the service to monitoring, you can view the service metrics in your Dynatrace environment either on your dashboard page or on the custom device overview page.

Import preset dashboards

Dynatrace provides preset Azure dashboards that you can import from GitHub to your environment's dashboard page. Once you download a preset dashboard locally, there are two ways to import it.

mysql-dash

Set up a management zone

To import a dashboard for Azure Database for MySQL, 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 type equals Database
    • Service topology equals Opaque service
  2. Add a condition for the database name to contain the mysql string (case sensitive.)

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

Name Description Dimensions Unit Recommended
active_connections Active connections None Count ✔️
backup_storage_used Backup storage used None Bytes
cpu_percent CPU percent None Percent ✔️
connections_failed Failed connections None Count ✔️
io_consumption_percent IO percent None Percent ✔️
memory_percent Memory percent None Percent ✔️
network_bytes_ingress Network In across active connections None Bytes ✔️
network_bytes_egress Network Out across active connections None Bytes ✔️
seconds_behind_master Replication lag in seconds None Count ✔️
serverlog_storage_limit Server log storage limit None Bytes
serverlog_storage_percent Server log storage percent None Percent ✔️
serverlog_storage_usage Server log storage used None Bytes
storage_limit Storage limit None Bytes
storage_percent Storage percent None Percent ✔️
storage_used Storage used None Bytes