-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmetrics-config-redis.yaml
184 lines (184 loc) · 9.66 KB
/
metrics-config-redis.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
azureAuthentication:
appId: <app-id>
appKey: <app-key>
azureMetadata:
tenantId: <tenant-id>
subscriptionId: <sub-id>
resourceGroupName: <resource-group-name>
metricDefaults:
aggregation:
interval: 00:01:00
scraping:
schedule: "0 * * ? * *"
metrics:
- name: azure_redis_cache_connected_clients
description: "The number of client connections to the cache during the specified reporting interval. This maps to connected_clients from the Redis INFO command."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: connectedclients
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_total_commands_processed
description: "The total number of commands processed by the cache server during the specified reporting interval. This value maps to total_commands_processed from the Redis INFO command. Note that when Azure Cache for Redis is used purely for pub/sub there will be no metrics for Cache Hits, Cache Misses, Gets, or Sets, but there will be Total Operations metrics that reflect the cache usage for pub/sub operations."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: totalcommandsprocessed
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_hits
description: "The number of successful key lookups during the specified reporting interval. This maps to keyspace_hits from the Redis INFO command."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: cachehits
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_misses
description: "The number of failed key lookups during the specified reporting interval. This maps to keyspace_misses from the Redis INFO command. Cache misses do not necessarily mean there is an issue with the cache. For example, when using the cache-aside programming pattern, an application looks first in the cache for an item. If the item is not there (cache miss), the item is retrieved from the database and added to the cache for next time. Cache misses are normal behavior for the cache-aside programming pattern. If the number of cache misses is higher than expected, examine the application logic that populates and reads from the cache. If items are being evicted from the cache due to memory pressure then there may be some cache misses, but a better metric to monitor for memory pressure would be Used Memory or Evicted Keys."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: cachemisses
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_get_commands
description: "The number of get operations from the cache during the specified reporting interval. This value is the sum of the following values from the Redis INFO all command: cmdstat_get, cmdstat_hget, cmdstat_hgetall, cmdstat_hmget, cmdstat_mget, cmdstat_getbit, and cmdstat_getrange, and is equivalent to the sum of cache hits and misses during the reporting interval."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: getcommands
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_set_commands
description: "The number of set operations to the cache during the specified reporting interval. This value is the sum of the following values from the Redis INFO all command: cmdstat_set, cmdstat_hset, cmdstat_hmset, cmdstat_hsetnx, cmdstat_lset, cmdstat_mset, cmdstat_msetnx, cmdstat_setbit, cmdstat_setex, cmdstat_setrange, and cmdstat_setnx."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: setcommands
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_operations_per_second
description: "The total number of commands processed per second by the cache server during the specified reporting interval. This value maps to instantaneous_ops_per_sec from the Redis INFO command."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: operationsPerSecond
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_evicted_keys
description: "The number of items evicted from the cache during the specified reporting interval due to the maxmemory limit. This maps to evicted_keys from the Redis INFO command."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: evictedkeys
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_total_keys
description: "The maximum number of keys in the cache during the past reporting time period. This maps to keyspace from the Redis INFO command. Due to a limitation of the underlying metrics system, for caches with clustering enabled, Total Keys returns the maximum number of keys of the shard that had the maximum number of keys during the reporting interval."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: totalkeys
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_expired_keys
description: "The number of items expired from the cache during the specified reporting interval. This value maps to expired_keys from the Redis INFO command."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: expiredkeys
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_used_memory
description: "The amount of cache memory used for key/value pairs in the cache in MB during the specified reporting interval. This value maps to used_memory from the Redis INFO command. This does not include metadata or fragmentation."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: usedmemory
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_used_memory_percentage
description: "The % of total memory that is being used during the specified reporting interval. This references the used_memory value from the Redis INFO command to calculate the percentage."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: usedmemorypercentage
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_used_memory_rss
description: "The amount of cache memory used in MB during the specified reporting interval, including fragmentation and metadata. This value maps to used_memory_rss from the Redis INFO command."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: usedmemoryRss
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_server_load
description: "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. If this counter reaches 100 it means the Redis server has hit a performance ceiling and the CPU can't process work any faster. If you are seeing high Redis Server Load then you will see timeout exceptions in the client. In this case you should consider scaling up or partitioning your data into multiple caches."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: serverLoad
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_write
description: "The amount of data written to the cache in Megabytes per second (MB/s) during the specified reporting interval."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: cacheWrite
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_read
description: "The amount of data read from the cache in Megabytes per second (MB/s)."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: cacheRead
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_percent_processor_time
description: "The CPU utilization of the Azure Cache for Redis server as a percentage during the specified reporting interval. This value maps to the operating system \Processor(_Total)\ Processor Time performance counter."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: percentProcessorTime
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_latency
description: "The number of failed key lookups during the specified reporting interval. This maps to keyspace_misses from the Redis INFO command."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: cacheLatency
aggregation:
type: Average
interval: 00:01:00
- name: azure_redis_cache_errors
description: "Specific failures and performance issues that the cache could be experiencing during a specified reporting interval."
resourceType: RedisCache
cacheName: redis-cache-name
azureMetricConfiguration:
metricName: errors
aggregation:
type: Average
interval: 00:01:00