Skip to content

Commit

Permalink
feat: Break some alerts for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Anguiano committed Jul 11, 2024
1 parent bd22d8e commit 6cbe420
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ type: STATIC
nrql:
query: "FROM activeDirectoryReplicationPartners SELECT count(*) FACET server, partner WHERE lastReplicationSuccess != lastReplicationAttempt"

valueFunction: SINGLE_VALUE
valueFunction: SINGLE_VALUE
terms:
- priority: CRITICAL
- priority: WARNING
operator: ABOVE
threshold: 0
thresholdDuration: 120
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ type: STATIC
nrql:
query: "FROM Metric SELECT filter(count(*), WHERE state != 'running') FACET hostname, entity.name WHERE metricName = 'windows_service_state' AND label.primary_app = 'active_directory'"

valueFunction: SINGLE_VALUE
valueFunction: SINGLE_VALUE
terms:
- priority: CRITICAL
operator: ABOVE
threshold: 0
thresholdDuration: 300
thresholdOccurrences: ALL

expiration:
closeViolationsOnExpiration: false
Expand Down
2 changes: 1 addition & 1 deletion alert-policies/akka/HighCpuUtilization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ valueFunction: SINGLE_VALUE

# List of Critical and Warning thresholds for the condition
terms:
- priority: CRITICAL
- priority: WARNING
# Operator used to compare against the threshold.
operator: ABOVE
# Value that triggers a violation
Expand Down

0 comments on commit 6cbe420

Please sign in to comment.