Skip to content

Commit

Permalink
Merge pull request #2444 from RamanaReddy8801/cacti-quickstart
Browse files Browse the repository at this point in the history
Cacti quickstart
  • Loading branch information
mdumpati authored Jun 24, 2024
2 parents cadd499 + 0ae6be0 commit f71578f
Show file tree
Hide file tree
Showing 10 changed files with 593 additions and 0 deletions.
26 changes: 26 additions & 0 deletions alert-policies/cacti/apacheRequests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Apache Requests

description: |+
This alert is triggered when the apache requests exceeds 200 for 5 minutes.
type: STATIC
nrql:
query: "SELECT max(value) FROM ApacheTotalHitsSample"

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

# 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: 200
# 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
35 changes: 35 additions & 0 deletions alert-policies/cacti/pingLatency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Ping Latency

description: |+
This alert is triggered when the ping latency exceeds 100ms for 5 minutes.
type: STATIC
nrql:
query: "SELECT latest(value)*1000 FROM PingLatencySample"

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

# 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: 200
# Time in seconds; 120 - 3600
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: 100
# 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 f71578f

Please sign in to comment.