Azure Database for MySQL - Flexible Server is a fully managed production-ready database service designed for more granular control and flexibility over database management functions and configuration settings. The flexible server architecture allows users to opt for high availability within a single availability zone and across multiple availability zones.

Flexible servers provide better cost optimization controls with the ability to stop/start server and burstable compute tier, ideal for workloads that do not need full-compute capacity continuously. Flexible Server also supports reserved instances allowing you to save up to 63% cost, ideal for production workloads with predictable compute capacity requirements.

Setup

To set up the Azure integration and discover the MySQL flexible server resources, do the following:

  1. Create an Azure Integration if not available in your installed integrations. For more information on how to install the Azure Integration, refer to Install Azure integration.

  2. Create a discovery profile. For more information on how to create a discovery profile, refer to Create Discovery Profile..

  3. Select MySQL flexible server under the Filter Criteria in the Edit Discovery Profile page.

    Azure Integration Discovery Profile

    Azure Integration Discovery Profile

  4. Save the discovery profile to make them available in the list of Discovery Profiles.

  5. Scan to discover the resources at any time independent of the predefined schedule.

  6. Once the scan is completed, you can view the MySQL flexible server resources under Infrastructure > Resources > Microsoft Azure category.

  7. Create a template with collector type Azure and applicable for MySQL flexible server. See Create a Template for more information on how to create a template.

  8. Refer to Assign a Template on how to assign a template to a resource.

  9. Click the Metrics tab to view the monitoring data of MySQL flexible server as shown below:

Event support

OpsRamp supports Azure events for DB for MySQL flexible servers. Configure Azure Events in OpsRamp Azure integration discovery profile.

See Process Azure Events for more information on how to configure Azure events.

Supported metrics

OpsRamp MetricAzure MetricMetric Display NameUnitAggregation TypeDescription
azure_mysql_flexibleservers_aborted_connectionsaborted_connectionsAborted ConnectionsCountTotalAborted Connections
azure_mysql_flexibleservers_active_connectionsactive_connectionsActive ConnectionsCountAverageActive Connections
azure_mysql_flexibleservers_active_transactionsactive_transactionsActive TransactionsCountTotalNumber of active transactions
azure_mysql_flexibleservers_backup_storage_usedbackup_storage_usedBackup Storage UsedBytesAverageBackup Storage Used
azure_mysql_flexibleservers_binlog_storage_usedbinlog_storage_usedBinlog Storage UsedBytesAverageStorage used by Binlog files
azure_mysql_flexibleservers_Com_alter_tableCom_alter_tableCom Alter TableCountTotalThe number of times ALTER TABLE statement has been executed
azure_mysql_flexibleservers_Com_create_dbCom_create_dbCom Create DBCountTotalThe number of times CREATE DB statement has been executed
azure_mysql_flexibleservers_Com_create_tableCom_create_tableCom Create TableCountTotalThe number of times CREATE TABLE statement has been executed
azure_mysql_flexibleservers_Com_deleteCom_deleteCom DeleteCountTotalThe number of times DELETE statement has been executed
azure_mysql_flexibleservers_Com_drop_dbCom_drop_dbCom Drop DBCountTotalThe number of times DROP DB statement has been executed
azure_mysql_flexibleservers_Com_drop_tableCom_drop_tableCom Drop TableCountTotalThe number of times DROP TABLE statement has been executed
azure_mysql_flexibleservers_Com_insertCom_insertCom InsertCountTotalThe number of times INSERT statement has been executed
azure_mysql_flexibleservers_Com_selectCom_selectCom SelectCountTotalThe number of times SELECT statement has been executed
azure_mysql_flexibleservers_Com_updateCom_updateCom UpdateCountTotalThe number of times UPDATE statement has been executed
azure_mysql_flexibleservers_cpu_credits_consumedcpu_credits_consumedCPU Credits ConsumedCountAverageCPU Credits Consumed
azure_mysql_flexibleservers_cpu_credits_remainingcpu_credits_remainingCPU Credits RemainingCountAverageCPU Credits Remaining
azure_mysql_flexibleservers_cpu_percentcpu_percentHost CPU PercentPercentAverageHost CPU Percent
azure_mysql_flexibleservers_data_storage_useddata_storage_usedData Storage UsedBytesAverageStorage used by data files
azure_mysql_flexibleservers_HA_IO_statusHA_IO_statusHA IO StatusCountMaximumStatus for replication IO thread running
azure_mysql_flexibleservers_HA_replication_lagHA_replication_lagHA Replication LagSecondsAverageHA Replication lag in seconds
azure_mysql_flexibleservers_HA_SQL_statusHA_SQL_statusHA SQL StatusCountMaximumStatus for replication SQL thread running
azure_mysql_flexibleservers_ibdata1_storage_usedibdata1_storage_usedIbdata1 Storage UsedBytesAverageStorage used by ibdata1 files
azure_mysql_flexibleservers_Innodb_buffer_pool_pages_dataInnodb_buffer_pool_pages_dataInnoDB Buffer Pool Pages DataCountTotalThe number of pages in the InnoDB buffer pool containing data
azure_mysql_flexibleservers_Innodb_buffer_pool_pages_dirtyInnodb_buffer_pool_pages_dirtyInnoDB Buffer Pool Pages DirtyCountTotalThe current number of dirty pages in the InnoDB buffer pool
azure_mysql_flexibleservers_Innodb_buffer_pool_pages_flushedInnodb_buffer_pool_pages_flushedInnodb Buffer Pool Pages FlushedCountAverageThe number of requests to flush pages from the InnoDB buffer pool
azure_mysql_flexibleservers_Innodb_buffer_pool_pages_freeInnodb_buffer_pool_pages_freeInnoDB Buffer Pool Pages FreeCountTotalThe number of free pages in the InnoDB buffer pool
azure_mysql_flexibleservers_Innodb_buffer_pool_read_requestsInnodb_buffer_pool_read_requestsInnoDB Buffer Pool Read RequestsCountTotalThe number of logical read requests
azure_mysql_flexibleservers_Innodb_buffer_pool_readsInnodb_buffer_pool_readsInnoDB Buffer Pool ReadsCountTotalThe number of logical reads that InnoDB could not satisfy from the buffer pool, and had to read directly from disk
azure_mysql_flexibleservers_Innodb_data_writesInnodb_data_writesInnodb Data WritesCountTotalThe total number of data writes
azure_mysql_flexibleservers_Innodb_row_lock_timeInnodb_row_lock_timeInnodb Row Lock TimeMillisecondsAverageThe total time spent in acquiring row locks for InnoDB tables, in milliseconds
azure_mysql_flexibleservers_Innodb_row_lock_waitsInnodb_row_lock_waitsInnodb Row Lock WaitsCountTotalThe number of times operations on InnoDB tables had to wait for a row lock
azure_mysql_flexibleservers_io_consumption_percentio_consumption_percentStorage IO PercentPercentAverageStorage I/O consumption percent
azure_mysql_flexibleservers_lock_deadlockslock_deadlocksMySQL Lock DeadlocksCountTotalNumber of deadlocks
azure_mysql_flexibleservers_lock_timeoutslock_timeoutsMySQL Lock TimeoutsCountTotalNumber of lock timeouts
azure_mysql_flexibleservers_memory_percentmemory_percentMemory PercentPercentAverageMemory Percent
azure_mysql_flexibleservers_network_bytes_egressnetwork_bytes_egressHost Network OutBytesTotalHost Network egress in bytes
azure_mysql_flexibleservers_network_bytes_ingressnetwork_bytes_ingressHost Network InBytesTotalHost Network ingress in bytes
azure_mysql_flexibleservers_others_storage_usedothers_storage_usedOthers Storage UsedBytesAverageStorage used by other files
azure_mysql_flexibleservers_QueriesQueriesQueriesCountTotalQueries
azure_mysql_flexibleservers_Replica_IO_RunningReplica_IO_RunningReplica IO StatusCountMaximumStatus for replication IO thread running
azure_mysql_flexibleservers_Replica_SQL_RunningReplica_SQL_RunningReplica SQL StatusCountMaximumStatus for replication SQL thread running
azure_mysql_flexibleservers_replication_lagreplication_lagReplication Lag In SecondsSecondsAverageReplication lag in seconds
azure_mysql_flexibleservers_serverlog_storage_limitserverlog_storage_limitServerlog Storage LimitBytesMaximumServerlog Storage Limit
azure_mysql_flexibleservers_serverlog_storage_percentserverlog_storage_percentServerlog Storage PercentPercentAverageServerlog Storage Percent
azure_mysql_flexibleservers_serverlog_storage_usageserverlog_storage_usageServerlog Storage UsedBytesAverageServerlog Storage Used
azure_mysql_flexibleservers_Slow_queriesSlow_queriesSlow QueriesCountTotalThe number of queries that have taken more than long_query_time seconds
azure_mysql_flexibleservers_Sort_merge_passesSort_merge_passesSort Merge PassesCountTotalThe number of merge passes that the sort algorithm has had to do. If this value is large, you should consider increasing the value of the sort_buffer_size system variable
azure_mysql_flexibleservers_storage_io_countstorage_io_countStorage IO CountCountTotalThe number of storage I/O consumed
azure_mysql_flexibleservers_storage_limitstorage_limitStorage LimitBytesMaximumStorage Limit
azure_mysql_flexibleservers_storage_percentstorage_percentStorage PercentPercentAverageStorage Percent
azure_mysql_flexibleservers_storage_usedstorage_usedStorage UsedBytesAverageStorage Used
azure_mysql_flexibleservers_Threads_runningThreads_runningThreads RunningCountTotalThe number of threads that are not sleeping
azure_mysql_flexibleservers_total_connectionstotal_connectionsTotal ConnectionsCountTotalTotal Connections
azure_mysql_flexibleservers_trx_rseg_history_lentrx_rseg_history_lenMySQL History List LengthCountTotalLength of the TRX_RSEG_HISTORY list
azure_mysql_flexibleservers_UptimeUptimeMySQL UptimeSecondsTotalThe number of seconds that the server has been up

External reference

Azure Database for MySQL - Flexible Server