You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**Sessions By State** (Preview) |sessions_by_state |Count |Overall state of the backends |State |No |
64
64
|**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 |
65
65
|**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
68
68
|**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 |
69
69
|**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 |
70
70
71
-
72
-
##### `Database`
71
+
##### Database
73
72
74
73
|Display Name |Metric ID |Unit |Description |Dimension |Default enabled |
^ **Max Connections** here represents the configured value for _max_connections_ server parameter, and this metric is pooled every 30 minutes.
119
118
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|
|**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
+
120
146
121
-
#### Applying Filters and Splitting on enhanced metrics
147
+
#### Applying filters and splitting on metrics with dimension
122
148
123
149
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.
0 commit comments