Skip to content

Commit

Permalink
Merge pull request newrelic#2302 from pkudikyala/NR-229976
Browse files Browse the repository at this point in the history
Temporal new Quickstart.
  • Loading branch information
mdumpati committed Mar 7, 2024
2 parents 0486f11 + cca0798 commit 66e5e50
Show file tree
Hide file tree
Showing 15 changed files with 1,352 additions and 0 deletions.
31 changes: 31 additions & 0 deletions alert-policies/temporal/ActivityEexcutionFail.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Name of the alert
name: Activity Execution Fails

# Description and details
description: |+
This alert is triggered if the Temporal activity execution fails once within a 5 minutes window.
# Type of alert
type: STATIC

# NRQL query
nrql:

query: "SELECT latest(temporal_activity_execution_failed_total) AS 'execution failed' FROM Metric"

# 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: 1
# 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
40 changes: 40 additions & 0 deletions alert-policies/temporal/ActivityExecutionLatency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Name of the alert
name: Activity Excution Latency

# Description and details
description: |+
This alert is triggered if the Temporal activity execution latency exceeds 5 seconds for 5 minutes.
# Type of alert
type: STATIC

# NRQL query
nrql:

query: "SELECT sum(temporal_activity_execution_latency_seconds_sum) FROM Metric"

# 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
- priority: WARNING
# Operator used to compare against the threshold.
operator: ABOVE
# Value that triggers a violation
threshold: 4
# 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
# Duration after which a violation automatically closes
# Time in seconds; 300 - 2592000 (Default: 86400 [1 day])
violationTimeLimitSeconds: 86400
40 changes: 40 additions & 0 deletions alert-policies/temporal/ActivityScheduleStartLatency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Name of the alert
name: Activity Schedule to Start Latency

# Description and details
description: |+
This alert is triggered if the Temporal activity schedule to start latency exceeds 5 seconds for 5 minutes.
# Type of alert
type: STATIC

# NRQL query
nrql:

query: "SELECT sum(temporal_activity_schedule_to_start_latency_sum) FROM Metric"

# 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
- priority: WARNING
# Operator used to compare against the threshold.
operator: ABOVE
# Value that triggers a violation
threshold: 4
# 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
# Duration after which a violation automatically closes
# Time in seconds; 300 - 2592000 (Default: 86400 [1 day])
violationTimeLimitSeconds: 86400
40 changes: 40 additions & 0 deletions alert-policies/temporal/MemoryUsagePercent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Name of the alert
name: Memory Usage Percent

# Description and details
description: |+
This alert is triggered if the memory usage exceeds 90% for 5 minutes.
# Type of alert
type: STATIC

# NRQL query
nrql:

query: "SELECT average(memoryUsedPercent) AS `Memory used %` FROM SystemSample"

# 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: 90
# 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: 85
# 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
# Duration after which a violation automatically closes
# Time in seconds; 300 - 2592000 (Default: 86400 [1 day])
violationTimeLimitSeconds: 86400
Binary file added dashboards/temporal/temporal-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboards/temporal/temporal-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboards/temporal/temporal-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboards/temporal/temporal-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboards/temporal/temporal-05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dashboards/temporal/temporal-06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 66e5e50

Please sign in to comment.