Skip to content

Commit

Permalink
feat(php): add php dashboards with APM snippet and alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
polfliet committed Sep 23, 2021
1 parent 83e68be commit 065418c
Show file tree
Hide file tree
Showing 125 changed files with 10,836 additions and 131 deletions.
30 changes: 30 additions & 0 deletions packs/php/cakephp/alerts/duration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---

name: High duration

details: |+
This alert is triggered when the total duration of the web transaction is longer than 10 seconds during 5 minutes
type: STATIC

nrql:
query: "FROM Transaction select average(duration) where transactionType = 'Web'"

# 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: 10
# 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
30 changes: 30 additions & 0 deletions packs/php/cakephp/alerts/error rate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---

name: High error rate

details: |+
This alert is triggered when the error percentage of web transactions is higher than 5% during 5 minutes
type: STATIC

nrql:
query: "FROM Transaction SELECT percentage(count(*), where error is not false) as 'Errors' where transactionType = 'Web'"

# 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: 5
# 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
30 changes: 30 additions & 0 deletions packs/php/cakephp/alerts/throughput.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---

name: Low throughput

details: |+
This alert is triggered when the throughput is 0 for 5 minutes
type: STATIC

nrql:
query: "FROM Transaction SELECT count(*) where transactionType = 'Web'"

# 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: EQUALS
# Value that triggers a violation
threshold: 0
# 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 065418c

Please sign in to comment.