Azure PostgreSQL
Collect Azure PostgreSQL Metrics
Configuration¶
Install Func¶
It is recommended to activate the TrueWatch integration - extension - DataFlux Func (Automata): all prerequisites are automatically installed. Please proceed with the script installation.
If you are deploying Func manually, refer to Manual Func Deployment
Install Script¶
Note: Please prepare the required Azure application registration information in advance and assign the
Monitoring Reader
role to the application registration.
-
Log in to the Func console, click on 【Script Market】, enter the TrueWatch Script Market, and search for
integration_azure_postgresql_flexible_server
-
Click 【Install】, then input the corresponding parameters:
Azure Tenant ID
,Azure Client ID
,Azure Client Secret Value
,Subscriptions
-
Click 【Deploy Startup Script】, the system will automatically create the
Startup
script set and configure the corresponding startup scripts. -
After enabling, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click 【Execute】 to immediately execute once without waiting for the scheduled time. Wait a moment, then you can check the execution task records and corresponding logs.
Verification¶
- In 「Manage / Automatic Trigger Configuration」, confirm if the corresponding task has the automatic trigger configuration, and check the task records and logs for any exceptions.
- In TrueWatch, check if the asset information exists in 「Infrastructure - Resource Catalog」.
- In TrueWatch, check if the corresponding monitoring data is available in 「Metrics」.
Metrics¶
Collect Azure PostgreSQL Metrics, more metrics can be collected through configuration Microsoft.DBforPostgreSQL/flexibleServers Supported Metrics
Metric Name | Description | Unit |
---|---|---|
all_connections_closed_per_second_maximum |
Number of connections closed per second (instance-based) | count |
all_connections_created_per_second_maximum |
Number of connections created per second (instance-based) | count |
allcache_read_maximum |
Cache read (instance-based) | bytes/s |
allcache_write_maximum |
Cache write (instance-based) | bytes/s |
allcachehits_total |
Cache hits (instance-based) | count |
allcachemisses_total |
Cache misses (instance-based) | count |
allconnectedclients_maximum |
Number of connected clients | count |
allevictedkeys_total |
Number of evicted keys (instance-based) | count |
allexpiredkeys_total |
Number of expired keys (instance-based) | count |
allgetcommands_total |
Number of get commands (instance-based) | count |
alloperations_per_second_maximum |
Operations per second (instance-based) | count |
allpercentprocessortime_maximum |
CPU (instance-based) | % |
allserver_load_maximum |
Server load (instance-based) | % |
allsetcommands_total |
Number of set commands (instance-based) | count |
alltotalcommandsprocessed_total |
Total operations (instance-based) | count |
alltotalkeys_maximum |
Total number of keys (instance-based) | count |
allusedmemory_maximum |
Used memory (instance-based) | bytes |
allusedmemory_rss_maximum |
Used memory RSS (instance-based) | bytes |
allusedmemorypercentage_maximum |
Used memory percentage (instance-based) | % |
cache_read_maximum |
Cache read | bytes/s |
cache_write_maximum |
Cache write | bytes/s |
cachehits_total |
Cache hits | count |
cachemisses_total |
Cache misses | bytes |
cachemissrate_total |
Cache miss rate | bytes |
connected_clients_using_aadtoken_maximum |
Connected clients using Microsoft Entra token (instance-based) | count |
connectedclients_maximum |
Number of connected clients | count |
errors_maximum |
Number of errors | count |
evictedkeys_total |
Number of evicted keys | count |
expiredkeys_total |
Number of expired keys | count |
getcommands_total |
Number of get commands | count |
latency_p_99_maximum |
99th percentile latency | ms |
operations_per_second_maximum |
Operations per second | count |
percent_processor_time_maximum |
CPU | % |
server_load_maximum |
Server load | - |
setcommands_total |
Number of set commands | count |
totalcommandsprocessed_total |
Total operations | count |
usedmemory_rss_maximum |
Used memory RSS | bytes |
usedmemorypercentage_maximum |
Used memory percentage | % |