Skip to content

Commit

Permalink
Merge pull request #2001 from marcsanmi/add-redis-quickstart
Browse files Browse the repository at this point in the history
NR-147981: Add redis otel quickstart
  • Loading branch information
nr-mlosier authored Oct 4, 2023
2 parents 8ff6a39 + d684d27 commit b2159b6
Show file tree
Hide file tree
Showing 7 changed files with 704 additions and 0 deletions.
40 changes: 40 additions & 0 deletions alert-policies/redis-otel/HighMemoryUsage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Memory utilization is too high

# Description and details
description: |
This alert is triggered when the memory utilization exceeds 90%. Please ensure the `redis.maxmemory` metric from the Redis receiver is enabled for this alert to function correctly.
# Type of alert: BASELINE | STATIC
type: STATIC

# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE)
valueFunction: SINGLE_VALUE

# NRQL query
nrql:
query: "FROM Metric SELECT (max(redis.memory.used)/max(redis.maxmemory))*100"

# List of Critical and Warning thresholds for the condition
terms:
- priority: CRITICAL
# Operator used to compare against the threshold.
operator: ABOVE
# Value that triggers a violation
threshold: 90
# Time in seconds; 120 - 3600, must be a multiple of 60 for Baseline conditions
thresholdDuration: 300
# How many data points must be in violation for the duration
thresholdOccurrences: ALL
- priority: WARNING
# Operator used to compare against the threshold.
operator: ABOVE
# Value that triggers a violation
threshold: 85
# Time in seconds; 120 - 3600
thresholdDuration: 300
# How many data points must be in violation for the duration
thresholdOccurrences: ALL

# Duration after which a violation automatically closes
# Time in seconds; 300 - 2592000 (Default: 86400 [1 day])
violationTimeLimitSeconds: 86400
Loading

0 comments on commit b2159b6

Please sign in to comment.