Azure Database for PostgreSQL - Flexible Server is a fully managed PostgreSQL database as a service offering that can handle mission-critical workloads with predictable performance and dynamic scalability. Develop applications with Azure Database for PostgreSQL leveraging the open-source tools and platform of your choice.

Use OpsRamp Azure Public Cloud Integration to discover and collect metrics against Azure PostgreSQL Flexible Server.

Setup

To set up the Azure integration and discover the PostgreSQL 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 Azure Resources.

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

  3. Select PostgreSQL Flexible Server under the Filter Criteria in the Edit Discovery Profile page.

  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 PostgreSQL Flexible Server resources under Infrastructure > Resources > Microsoft Azure category.

  7. Create a template with collector type Azure and applicable for PostgreSQL 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 PostgreSQL Flexible Server as shown below:

Event support

OpsRamp supports Azure events for Azure PostgreSQL Flexible Server. 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_dbforpostgresql_flexibleservers_active_connectionsactive_connectionsActive ConnectionsCountAverageActive Connections
azure_dbforpostgresql_flexibleservers_analyze_count_user_tablesanalyze_count_user_tablesAnalyze Counter User TablesCountMaximumNumber of times user only tables have been manually analyzed in this database
azure_dbforpostgresql_flexibleservers_autoanalyze_count_user_tablesautoanalyze_count_user_tablesAutoAnalyze Counter User TablesCountMaximumNumber of times user only tables have been analyzed by the autovacuum daemon in this database
azure_dbforpostgresql_flexibleservers_autovacuum_count_user_tablesautovacuum_count_user_tablesAutoVacuum Counter User TablesCountMaximumNumber of times user only tables have been vacuumed by the autovacuum daemon in this database
azure_dbforpostgresql_flexibleservers_backup_storage_usedbackup_storage_usedBackup Storage UsedBytesAverageBackup Storage Used
azure_dbforpostgresql_flexibleservers_blks_hitblks_hitDisk Blocks HitCountTotalNumber of times disk blocks were found already in the buffer cache, so that a read was not necessary
azure_dbforpostgresql_flexibleservers_blks_readblks_readDisk Blocks ReadCountTotalNumber of disk blocks read in this database
azure_dbforpostgresql_flexibleservers_bloat_percentbloat_percentBloat PercentPercentMaximumEstimated bloat percentage for user only tables in this database
azure_dbforpostgresql_flexibleservers_client_connections_activeclient_connections_activeActive client connectionsCountMaximumConnections from clients which are associated with a PostgreSQL connection
azure_dbforpostgresql_flexibleservers_client_connections_waitingclient_connections_waitingWaiting client connectionsCountMaximumConnections from clients that are waiting for a PostgreSQL connection to service them
azure_dbforpostgresql_flexibleservers_connections_failedconnections_failedFailed ConnectionsCountTotalFailed Connections
azure_dbforpostgresql_flexibleservers_connections_succeededconnections_succeededSucceeded ConnectionsCountTotalSucceeded Connections
azure_dbforpostgresql_flexibleservers_cpu_credits_consumedcpu_credits_consumedCPU Credits ConsumedCountAverageTotal number of credits consumed by the database server
azure_dbforpostgresql_flexibleservers_cpu_credits_remainingcpu_credits_remainingCPU Credits RemainingCountAverageTotal number of credits available to burst
azure_dbforpostgresql_flexibleservers_cpu_percentcpu_percentCPU percentPercentAverageCPU percent
azure_dbforpostgresql_flexibleservers_database_size_bytesdatabase_size_bytesDatabase SizeBytesAverageTotal database size
azure_dbforpostgresql_flexibleservers_deadlocksdeadlocksDeadlocksCountTotalNumber of deadlocks detected in this database
azure_dbforpostgresql_flexibleservers_disk_bandwidth_consumed_percentagedisk_bandwidth_consumed_percentageDisk Bandwidth Consumed PercentagePercentAveragePercentage of disk bandwidth consumed per minute
azure_dbforpostgresql_flexibleservers_disk_iops_consumed_percentagedisk_iops_consumed_percentageDisk IOPS Consumed PercentagePercentAveragePercentage of disk I/Os consumed per minute
azure_dbforpostgresql_flexibleservers_disk_queue_depthdisk_queue_depthDisk Queue DepthCountAverageNumber of outstanding I/O operations to the data disk
azure_dbforpostgresql_flexibleservers_iopsiopsIOPSCountAverageIO Operations per second
azure_dbforpostgresql_flexibleservers_is_db_aliveis_db_aliveDatabase Is AliveCountAverageIndicates if the database is up or not
azure_dbforpostgresql_flexibleservers_logical_replication_delay_in_byteslogical_replication_delay_in_bytesMax Logical Replication LagBytesMaximumMaximum lag across all logical replication slots
azure_dbforpostgresql_flexibleservers_longest_query_time_seclongest_query_time_secOldest QuerySecondsMaximumThe age in seconds of the longest query that is currently running
azure_dbforpostgresql_flexibleservers_longest_transaction_time_seclongest_transaction_time_secOldest TransactionSecondsMaximumThe age in seconds of the longest transaction (including idle transactions)
azure_dbforpostgresql_flexibleservers_max_connectionsmax_connectionsMax ConnectionsCountMaximumMax connections
azure_dbforpostgresql_flexibleservers_maximum_used_transactionIDsmaximum_used_transactionIDsMaximum Used Transaction IDsCountAverageMaximum Used Transaction IDs
azure_dbforpostgresql_flexibleservers_memory_percentmemory_percentMemory percentPercentAverageMemory percent
azure_dbforpostgresql_flexibleservers_n_dead_tup_user_tablesn_dead_tup_user_tablesEstimated Dead Rows User TablesCountMaximumEstimated number of dead rows for user only tables in this database
azure_dbforpostgresql_flexibleservers_n_live_tup_user_tablesn_live_tup_user_tablesEstimated Live Rows User TablesCountMaximumEstimated number of live rows for user only tables in this database
azure_dbforpostgresql_flexibleservers_n_mod_since_analyze_user_tablesn_mod_since_analyze_user_tablesEstimated Modifications User TablesCountMaximumEstimated number of rows modified since user only tables were last analyzed
azure_dbforpostgresql_flexibleservers_network_bytes_egressnetwork_bytes_egressNetwork OutBytesTotalNetwork Out across active connections
azure_dbforpostgresql_flexibleservers_network_bytes_ingressnetwork_bytes_ingressNetwork InBytesTotalNetwork In across active connections
azure_dbforpostgresql_flexibleservers_num_poolsnum_poolsNumber of connection poolsCountMaximumTotal number of connection pools
azure_dbforpostgresql_flexibleservers_numbackendsnumbackendsBackendsCountMaximumNumber of backends connected to this database
azure_dbforpostgresql_flexibleservers_oldest_backend_time_secoldest_backend_time_secOldest BackendSecondsMaximumThe age in seconds of the oldest backend (irrespective of the state)
azure_dbforpostgresql_flexibleservers_oldest_backend_xminoldest_backend_xminOldest xminCountMaximumThe actual value of the oldest xmin
azure_dbforpostgresql_flexibleservers_oldest_backend_xmin_ageoldest_backend_xmin_ageOldest xmin AgeCountMaximumAge in units of the oldest xmin. It indicated how many transactions passed since oldest xmin
azure_dbforpostgresql_flexibleservers_physical_replication_delay_in_bytesphysical_replication_delay_in_bytesMax Physical Replication LagBytesMaximumMaximum lag across all asynchronous physical replication slots
azure_dbforpostgresql_flexibleservers_physical_replication_delay_in_secondsphysical_replication_delay_in_secondsRead Replica LagSecondsMaximumRead Replica lag in seconds
azure_dbforpostgresql_flexibleservers_postmaster_process_cpu_usage_percentpostmaster_process_cpu_usage_percentPostmaster Process cpu usagePercentAverageCPU usage of Postmaster process. Not applicable for Burstable SKU
azure_dbforpostgresql_flexibleservers_read_iopsread_iopsRead IOPSCountAverageNumber of data disk I/O read operations per second
azure_dbforpostgresql_flexibleservers_read_throughputread_throughputRead Throughput Bytes/SecCountAverageBytes read per second from the data disk during monitoring period
azure_dbforpostgresql_flexibleservers_server_connections_activeserver_connections_activeActive server connectionsCountMaximumConnections to PostgreSQL that are in use by a client connection
azure_dbforpostgresql_flexibleservers_server_connections_idleserver_connections_idleIdle server connectionsCountMaximumConnections to PostgreSQL that are idle, ready to service a new client connection
azure_dbforpostgresql_flexibleservers_sessions_by_statesessions_by_stateSessions by StateCountMaximumOverall state of the backends
azure_dbforpostgresql_flexibleservers_sessions_by_wait_event_typesessions_by_wait_event_typeSessions by WaitEventTypeCountMaximumSessions by the type of event for which the backend is waiting
azure_dbforpostgresql_flexibleservers_storage_freestorage_freeStorage FreeBytesAverageStorage Free
azure_dbforpostgresql_flexibleservers_storage_percentstorage_percentStorage percentPercentAverageStorage percent
azure_dbforpostgresql_flexibleservers_storage_usedstorage_usedStorage usedBytesAverageStorage used
azure_dbforpostgresql_flexibleservers_tables_analyzed_user_tablestables_analyzed_user_tablesUser Tables AnalyzedCountMaximumNumber of user only tables that have been analyzed in this database
azure_dbforpostgresql_flexibleservers_tables_autoanalyzed_user_tablestables_autoanalyzed_user_tablesUser Tables AutoAnalyzedCountMaximumNumber of user only tables that have been analyzed by the autovacuum daemon in this database
azure_dbforpostgresql_flexibleservers_tables_autovacuumed_user_tablestables_autovacuumed_user_tablesUser Tables AutoVacuumedCountMaximumNumber of user only tables that have been vacuumed by the autovacuum daemon in this database
azure_dbforpostgresql_flexibleservers_tables_counter_user_tablestables_counter_user_tablesUser Tables CounterCountMaximumNumber of user only tables in this database
azure_dbforpostgresql_flexibleservers_tables_vacuumed_user_tablestables_vacuumed_user_tablesUser Tables VacuumedCountMaximumNumber of user only tables that have been vacuumed in this database
azure_dbforpostgresql_flexibleservers_tcp_connection_backlogtcp_connection_backlogTCP Connection BacklogCountMaximumNumber of pending TCP connections waiting to be processed by the server. Applicable for 8vcore and above
azure_dbforpostgresql_flexibleservers_temp_bytestemp_bytesTemporary Files SizeBytesTotalTotal amount of data written to temporary files by queries in this database
azure_dbforpostgresql_flexibleservers_temp_filestemp_filesTemporary FilesCountTotalNumber of temporary files created by queries in this database
azure_dbforpostgresql_flexibleservers_total_pooled_connectionstotal_pooled_connectionsTotal pooled connectionsCountMaximumCurrent number of pooled connections
azure_dbforpostgresql_flexibleservers_tpstpsTransactions per secondCountMinimumNumber of transactions executed within a second
azure_dbforpostgresql_flexibleservers_tup_deletedtup_deletedTuples DeletedCountTotalNumber of rows deleted by queries in this database
azure_dbforpostgresql_flexibleservers_tup_fetchedtup_fetchedTuples FetchedCountTotalNumber of rows fetched by queries in this database
azure_dbforpostgresql_flexibleservers_tup_insertedtup_insertedTuples InsertedCountTotalNumber of rows inserted by queries in this database
azure_dbforpostgresql_flexibleservers_tup_returnedtup_returnedTuples ReturnedCountTotalNumber of rows returned by queries in this database
azure_dbforpostgresql_flexibleservers_tup_updatedtup_updatedTuples UpdatedCountTotalNumber of rows updated by queries in this database
azure_dbforpostgresql_flexibleservers_txlogs_storage_usedtxlogs_storage_usedTransaction Log Storage UsedBytesAverageTransaction Log Storage Used
azure_dbforpostgresql_flexibleservers_vacuum_count_user_tablesvacuum_count_user_tablesVacuum Counter User TablesCountMaximumNumber of times user only tables have been manually vacuumed in this database (not counting VACUUM FULL)
azure_dbforpostgresql_flexibleservers_write_iopswrite_iopsWrite IOPSCountAverageNumber of data disk I/O write operations per second
azure_dbforpostgresql_flexibleservers_write_throughputwrite_throughputWrite Throughput Bytes/SecCountAverageBytes written per second to the data disk during monitoring period
azure_dbforpostgresql_flexibleservers_xact_commitxact_commitTransactions CommittedCountTotalNumber of transactions in this database that have been committed
azure_dbforpostgresql_flexibleservers_xact_rollbackxact_rollbackTransactions Rolled BackCountTotalNumber of transactions in this database that have been rolled back
azure_dbforpostgresql_flexibleservers_xact_totalxact_totalTotal TransactionsCountTotalNumber of total transactions executed in this database

External reference

Azure PostgreSQL Flexible Server