Skip to content

Commit d678cfe

Browse files
Merge pull request #226398 from varun-dhawan/varun-azure-docs-pr
[Azure-PG-Flex] - updates the details for autovacuum metrics
2 parents 8731d90 + 5bbfc33 commit d678cfe

File tree

1 file changed

+36
-10
lines changed

1 file changed

+36
-10
lines changed

articles/postgresql/flexible-server/concepts-monitoring.md

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ Introducing Enhanced Metrics for Azure Database for PostgreSQL Flexible Server t
5656

5757
#### List of enhanced metrics
5858

59-
##### `Activity`
59+
##### Activity
6060

61-
|Display Name |Metric ID |Unit |Description |Dimension |Default enabled |
62-
|-----------------------------------|----------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|------------------|
61+
|Display Name |Metric ID |Unit |Description |Dimension |Default enabled |
62+
|---------------------------------------|----------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|------------------|
6363
|**Sessions By State** (Preview) |sessions_by_state |Count |Overall state of the backends |State |No |
6464
|**Sessions By WaitEventType** (Preview)|sessions_by_wait_event_type |Count |Sessions by the type of event for which the backend is waiting |Wait Event Type|No |
6565
|**Oldest Backend** (Preview) |oldest_backend_time_sec |Seconds|The age in seconds of the oldest backend (irrespective of the state) |N/a |No |
@@ -68,8 +68,7 @@ Introducing Enhanced Metrics for Azure Database for PostgreSQL Flexible Server t
6868
|**Oldest xmin** (Preview) |oldest_backend_xmin |Count |The actual value of the oldest xmin. If xmin is not increasing it indicates there are some long running transactions that can potentially hold dead tuples from being removed |N/a |No |
6969
|**Oldest xmin Age** (Preview) |oldest_backend_xmin_age |Count |Age in units of the oldest xmin. It indicated how many transactions passed since oldest xmin |N/a |No |
7070

71-
72-
##### `Database`
71+
##### Database
7372

7473
|Display Name |Metric ID |Unit |Description |Dimension |Default enabled |
7574
|-------------------------------------|-------------|-----|----------------------------------------------------------------------------------------------------|-------------|------------------|
@@ -88,37 +87,64 @@ Introducing Enhanced Metrics for Azure Database for PostgreSQL Flexible Server t
8887
|**Tuples Returned** (Preview) |tup_returned |Count|Number of rows returned by queries in this database |Database Name|No |
8988
|**Tuples Updated** (Preview) |tup_updated |Count|Number of rows updated by queries in this database |Database Name|No |
9089

91-
##### `Logical Replication`
90+
##### Logical Replication
9291

9392
|Display Name |Metric ID |Unit |Description |Dimension|Default enabled |
9493
|-------------------------------------|----------------------------------|-----|------------------------------------------------|---------|------------------|
9594
|**Max Logical Replication Lag** (Preview)|logical_replication_delay_in_bytes|Bytes|Maximum lag across all logical replication slots|N/a |Yes |
9695

97-
##### `Replication`
96+
##### Replication
9897

9998
|Display Name |Metric ID |Unit |Description |Dimension|Default enabled |
10099
|--------------------------------------|-------------------------------------|-------|--------------------------------------------------------------|---------|------------------|
101100
|**Max Physical Replication Lag** (Preview)|physical_replication_delay_in_bytes |Bytes |Maximum lag across all asynchronous physical replication slots|N/a |Yes |
102101
|**Read Replica Lag** (Preview) |physical_replication_delay_in_seconds|Seconds|Read Replica lag in seconds |N/a |Yes |
103102

104103

105-
##### `Saturation`
104+
##### Saturation
106105

107106
|Display Name |Metric ID |Unit |Description |Dimension|Default enabled |
108107
|---------------------------------------|----------------------------------|-------|-----------------------------------------------------|---------|------------------|
109108
|**Disk Bandwidth Consumed Percentage**|disk_bandwidth_consumed_percentage|Percent|Percentage of data disk bandwidth consumed per minute|N/a |Yes |
110109
|**Disk IOPS Consumed Percentage** |disk_iops_consumed_percentage |Percent|Percentage of data disk I/Os consumed per minute |N/a |Yes |
111110

112-
##### `Traffic`
111+
##### Traffic
113112

114113
|Display Name|Metric ID |Unit |Description |Dimension|Default enabled |
115114
|-------------------|---------------|-----|---------------------------------------------------------------|---------|------------------|
116115
|**Max Connections^** |max_connections|Count|Max Connections |N/a |Yes |
117116

118117
^ **Max Connections** here represents the configured value for _max_connections_ server parameter, and this metric is pooled every 30 minutes.
119118

119+
## Autovacuum metrics
120+
121+
Autovaccum metrics can be used to monitor and tune autovaccum performance for Azure database for postgres flexible server. Each metric is emitted at a **30 minute** frequency, and has up to **93 days** of retention. Customers can configure alerts on the metrics and can also access the new metrics dimensions, to split and filter the metrics data on database name.
122+
123+
#### Enabling Autovacuum metrics
124+
* Autovacuum metrics are disabled by default
125+
* To enable these metrics, please turn ON the server parameter `metrics.autovacuum_diagnostics`.
126+
* This parameter is dynamic, hence will not require instance restart.
127+
128+
#### Autovacuum metrics
129+
130+
|Display Name |Metric ID |Unit |Description |Dimension |Default enabled|
131+
|-------------------------------------------------|-------------------------------|-----|--------------------------------------------------------------------------------------------------------|------------|---------------|
132+
|**Analyze Counter User Tables** (Preview) |analyze_count_user_tables |Count|Number of times user only tables have been manually analyzed in this database |DatabaseName|No |
133+
|**AutoAnalyze Counter User Tables** (Preview) |autoanalyze_count_user_tables |Count|Number of times user only tables have been analyzed by the autovacuum daemon in this database |DatabaseName|No |
134+
|**AutoVacuum Counter User Tables** (Preview) |autovacuum_count_user_tables |Count|Number of times user only tables have been vacuumed by the autovacuum daemon in this database |DatabaseName|No |
135+
|**Estimated Dead Rows User Tables** (Preview) |n_dead_tup_user_tables |Count|Estimated number of dead rows for user only tables in this database |DatabaseName|No |
136+
|**Estimated Live Rows User Tables** (Preview) |n_live_tup_user_tables |Count|Estimated number of live rows for user only tables in this database |DatabaseName|No |
137+
|**Estimated Modifications User Tables** (Preview)|n_mod_since_analyze_user_tables|Count|Estimated number of rows modified since user only tables were last analyzed |DatabaseName|No |
138+
|**User Tables Analyzed** (Preview) |tables_analyzed_user_tables |Count|Number of user only tables that have been analyzed in this database |DatabaseName|No |
139+
|**User Tables AutoAnalyzed** (Preview) |tables_autoanalyzed_user_tables|Count|Number of user only tables that have been analyzed by the autovacuum daemon in this database |DatabaseName|No |
140+
|**User Tables AutoVacuumed** (Preview) |tables_autovacuumed_user_tables|Count|Number of user only tables that have been vacuumed by the autovacuum daemon in this database |DatabaseName|No |
141+
|**User Tables Counter** (Preview) |tables_counter_user_tables |Count|Number of user only tables in this database |DatabaseName|No |
142+
|**User Tables Vacuumed** (Preview) |tables_vacuumed_user_tables |Count|Number of user only tables that have been vacuumed in this database |DatabaseName|No |
143+
|**Vacuum Counter User Tables** (Preview) |vacuum_count_user_tables |Count|Number of times user only tables have been manually vacuumed in this database (not counting VACUUM FULL)|DatabaseName|No |
144+
145+
120146

121-
#### Applying Filters and Splitting on enhanced metrics
147+
#### Applying filters and splitting on metrics with dimension
122148

123149
In the above list of metrics, some of the metrics have dimension such as `database name`, `state` etc. [Filtering](../../azure-monitor/essentials/metrics-charts.md#filters) and [Splitting](../../azure-monitor/essentials/metrics-charts.md#apply-splitting) are allowed for the metrics that have dimensions. These features show how various metric segments ("dimension values") affect the overall value of the metric. You can use them to identify possible outliers.
124150

0 commit comments

Comments
 (0)