ScaleGrid's alerts and rules allow you to stay on top of your Redis™* cluster activity. Every database type has a different set of alert rules that can be configured as per your convenience. You can get alerts sent directly to you via SMS, email, PagerDuty, Opsgenie or Slack.
These rules are enforced via ScaleGrid for all Redis™ clusters and cannot be edited. Here is a list:
- Current Connections greater than 3000
- CPU - Total (%) greater than 60%
- Available Disk Space (%) less than 20%
- Replica - Window Size (Hours) less than 12 Hours
- Replica - Lag (sec) greater than 60 sec
- Ticket Reads less than 50
- Ticket Writes less than 50
How To Create: Account-Level Alert Rules for Redis™
These rules are enforced by you and apply to all clusters in your ScaleGrid account based on database type. You can configure account level rules under:
Settings > Global Rules > Alert Rules
How To Create: Cluster-Level Alert Rules for Redis™
These rules are enforced by you and apply to specific deployments in your ScaleGrid account. You can configure cluster level rules on the details page:
Details Page > Alerts > Rules > Create New Rule
ScaleGrid supports two top-level alert types for Redis™:
- Server Role Change
If you create an alert rule based on a specific metric, you have the option set conditions:
- Trigger if threshold greater than or less than current value
- Time for which the condition lasts for: 2 minutes, 6 minutes or 1 hour
Here is a list of metrics for Redis™ that you can use to create alerts:
CPU - User (%)
API Enum: CPU_USER
The percentage of time the CPU spent on user applications.
CPU - System (%)
API Enum: CPU_SYSTEM
The percentage of time the CPU spent in the operating system.
CPU - Nice (%)
API Enum: CPU_NICE
The percentage of time the CPU spent in nice mode.
CPU - IO Wait (%)
API Enum: CPU_IOWAIT
The percentage of time the CPU spent waiting for IO operations to complete.
CPU - Total (%)
API Enum: CPU_TOTAL
The total percentage of time the CPU spent on user applications, operating systems, nice mode, and IO wait.
Memory - Total (KB)
API Enum: MEM_TOTAL
Total available system memory in KB.
Memory - Used (KB)
API Enum: MEM_USED
KB of system memory used.
Memory - Free (KB)
API Enum: MEM_FREE
KB of system memory free.
Memory - Buffers (KB)
API Enum: MEM_BUFFERS
KB of system memory used for buffers
Memory - Cached (KB)
API Enum: MEM_CACHED
KB of system memory used for page cache
Disk - Read (KB/sec)
API Enum: DISK_READ
Total disk reads in KB/sec.
Disk - Write (KB/sec)
API Enum: DISK_WRITE
Total disk writes in KB/sec.
Redis™ Memory - Used (KB)
API Enum: REDIS_USED_MEM
Total memory allocated by Redis™ memory allocator.
Redis™ Memory - Used RSS (KB)
API Enum: REDIS_USED_MEM_RSS
Resident Memory of Redis™ process.
API Enum: REDIS_CONNECTED_CLIENTS
Number of clients currently connected to the server.
Keys - Expired (per sec)
API Enum: REDIS_EXPIRED_KEYS
Number of keys evicted per second due to max memory limit.
Keys - Evicted (per sec)
API Enum: REDIS_EVICTED_KEYS
Amount of virtual MongoDB memory not used by MMAP files. High usage indicates high number of connections to the database.
Keys - Total
API Enum: REDIS_TOTAL_KEYS
Total number of keys in server.
Cache Hit Ratio
API Enum: REDIS_CACHE_HIT_RATIO
Ratio of successful key lookup requests to total requests.
API Enum: REDIS_CONNECTED_SLAVES
Number of connected slaves.
Slave Delay (sec)
API Enum: REDIS_MASTER_LAST_IO_SECONDS_AGO
Delay between an operation on the master and the application of that operation from the slave.
Changes since last RDP save
API Enum: REDIS_CHANGES_SINCE_LAST_BACKUP
Number of changes since the last RDB save.
Operation - Cluster (per sec)
API Enum: REDIS_OPCOUNTERS_CLUSTER
Number of Cluster operations/sec.
Operation - Connection (per sec)
API Enum: REDIS_OPCOUNTERS_CONNECTION
Number of Connection operations/sec.
Operation - Geo (per sec)
API Enum: REDIS_OPCOUNTERS_GEO
Number of Geo operations/sec.
Operation - Hashes (per sec)
API Enum: REDIS_OPCOUNTERS_HASHES
Number of Hash operations/sec.
Operation - HyperLogLog (per sec)
API Enum: REDIS_OPCOUNTERS_HYPER_LOG_LOG
Number of Hyper Log operations/sec.
Operation - Keys (per sec)
API Enum: REDIS_OPCOUNTERS_KEYS
Number of Key operations/sec.
Operation - Lists (per sec)
API Enum: REDIS_OPCOUNTERS_LISTS
Number of List operations/sec.
Operation - Pub/Sub (per sec)
API Enum: REDIS_OPCOUNTERS_PUB_SUB
Number of Pub/Sub operations/sec.
Operation - Scripting (per sec)
API Enum: REDIS_OPCOUNTERS_SCRIPTING
Number of Scripting operations/sec.
Operation - Server (per sec)
API Enum: REDIS_OPCOUNTERS_SERVER
Number of Server operations/sec.
Operation - Sets (per sec)
API Enum: REDIS_OPCOUNTERS_SETS
Number of Set operations/sec.
Operation - Sorted Sets (per sec)
API Enum: REDIS_OPCOUNTERS_SORTED_SET
Number of Sorted Set operations/sec.
Operation - String (per sec)
API Enum: REDIS_OPCOUNTERS_STRINGS
Number of String operations/sec.
Operation - Transactions (per sec)
API Enum: REDIS_OPCOUNTERS_TRANSACTIONS
Number of Transaction operations/sec.
* Redis is a trademark of Redis Labs Ltd. Any rights therein are reserved to Redis Labs Ltd. Any use by ScaleGrid is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between Redis and ScaleGrid.
Updated about a year ago