Skip to content

Azure Redis Cache

Collect Azure Redis Cache Metrics

Configuration

Install Func

It is recommended to activate TrueWatch Integration - Extensions - DataFlux Func (Automata): All prerequisites are automatically installed, please proceed with the script installation.

For self-deployment of Func, refer to Self-deployment of Func

Install Script

Note: Please prepare the required Azure application registration information in advance and assign the Monitoring Reader role to the application registration.

To synchronize Azure Redis Cache monitoring data, we install the corresponding collection script: 「Integration (Azure-Redis Cache Collection)」(ID: integration_azure_redis)

Click 【Install】 and enter the corresponding parameters:

  • Azure Tenant ID: Tenant ID
  • Azure Client ID: Application Registration Client ID
  • Azure Client Secret Value: Client Secret Value, note that it is not the ID
  • Subscriptions: Subscription ID, multiple subscriptions separated by ,

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 to view the execution task records and corresponding logs.

Verification

  1. In 「Manage / Automatic Trigger Configuration」, confirm whether the corresponding task has the automatic trigger configuration, and check the corresponding task records and logs for any exceptions.
  2. In TrueWatch, 「Infrastructure - Resource Catalog」, check if the asset information exists.
  3. In TrueWatch, 「Metrics」, check if the corresponding monitoring data exists.

Metrics

Collect Azure Redis Cache Metrics, more metrics can be collected through configuration Microsoft.Cache/redis Supported Metrics

Metric Name Description Unit
all_connections_closed_per_second_maximum Number of connections closed per second on cache hit (instance-based) count
all_connections_created_per_second_maximum Number of connections created per second on cache hit (instance-based) count
allcache_read_maximum Cache read (instance-based) bytes/s
allcache_write_maximum Cache write (instance-based) bytes/s
allcachehits_total Number of cache hits (instance-based) count
allcachemisses_total Number of 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 gets (instance-based) count
alloperations_per_second_maximum Number of operations per second (instance-based) count
allpercentprocessortime_maximum CPU (instance-based) %
allserver_load_maximum Server load (instance-based) %
allsetcommands_total Number of sets (instance-based) count
alltotalcommandsprocessed_total Total number of 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 Percentage of used memory (instance-based) %
cache_read_maximum Cache read volume bytes/s
cache_write_maximum Cache write volume bytes/s
cachehits_total Number of cache hits count
cachemisses_total Number of cache misses bytes
cachemissrate_total Cache miss rate bytes
connected_clients_using_aadtoken_maximum Number of 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 gets count
latency_p_99_maximum 99th percentile latency ms
operations_per_second_maximum Number of operations per second count
percent_processor_time_maximum CPU %
server_load_maximum Server load -
setcommands_total Number of sets count
totalcommandsprocessed_total Total number of operations count
usedmemory_rss_maximum Used memory RSS bytes
usedmemorypercentage_maximum Percentage of used memory %