Skip to content

Commit

Permalink
Merge pull request #2200 from newrelic/release
Browse files Browse the repository at this point in the history
Release 01/10/2024
  • Loading branch information
aswanson-nr authored Jan 10, 2024
2 parents 503d5c4 + bc9dce2 commit adfc44d
Show file tree
Hide file tree
Showing 36 changed files with 695 additions and 1,949 deletions.
2 changes: 1 addition & 1 deletion alert-policies/browser/AjaxTimetoSettle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type: BASELINE
# NRQL query
nrql:
# Baseline alerts can use an optional FACET
query: "SELECT average(timeToSettle) FROM AjaxRequest WHERE appName like '%' FACET appName TIMESERIES"
query: "SELECT average(timeToSettle) FROM AjaxRequest WHERE appName like '%' FACET appName"

# Direction in which baseline is set (Default: LOWER_ONLY)
baselineDirection: UPPER_ONLY
Expand Down
2 changes: 1 addition & 1 deletion alert-policies/langchain-vectordb/APIResponseTime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type: STATIC

# NRQL query
nrql:
query: "FROM LlmVectorSearch SELECT latest(response_time) WHERE applicationName IN ('LangChain observability trace') TIMESERIES"
query: "FROM LlmVectorSearch SELECT latest(response_time) WHERE applicationName IN ('LangChain observability trace')"

# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE)
valueFunction: SINGLE_VALUE
Expand Down
2 changes: 1 addition & 1 deletion alert-policies/llm-application/APIResponseTime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type: STATIC

# NRQL query
nrql:
query: "FROM LlmChatCompletionSummary, LlmCompletion, LlmEmbedding SELECT percentile(response_time, 95) TIMESERIES FACET entity.guid"
query: "FROM LlmChatCompletionSummary, LlmCompletion, LlmEmbedding SELECT percentile(response_time, 95) FACET entity.guid"

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

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Scrape Errors
name: CPU Usage

description: |+
This alert is triggered when the cache size limit is reached above 4 for at least 5 minutes.
This alert is triggered when the CPU Usage exceeds 90% for at least 5 minutes.
type: STATIC
nrql:
query: "FROM Metric SELECT sum(nextcloud_scrape_errors_total) As 'Scrape Errors'"
query: "SELECT average(host.cpuPercent) AS '(%) used CPU' FROM Metric"

# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE).
valueFunction: SINGLE_VALUE
Expand All @@ -16,7 +16,7 @@ terms:
# Operator used to compare against the threshold.
operator: ABOVE
# Value that triggers a violation.
threshold: 4
threshold: 90
# Time in seconds; 120 - 3600
thresholdDuration: 300
# How many data points must be in violation for the duration?
Expand All @@ -26,7 +26,7 @@ terms:
# Operator used to compare against the threshold.
operator: ABOVE
# Value that triggers a violation.
threshold: 1
threshold: 80
# Time in seconds; 120 - 3600
thresholdDuration: 300
# How many data points must be in violation for the duration?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Heap Memory Usage
name: Memory Usage

description: |+
This alert is triggered when the Heap Memory Usage is below 2 for at least 5 minutes.
This alert is triggered when the Memory Usage exceeds 90% for at least 5 minutes.
type: STATIC
nrql:
query: "FROM Metric select latest(go_memstats_heap_inuse_bytes)/1e+6 As 'Heap Memory Usage'"
query: "FROM NextcloudFlexMetrics select (latest(ocs.data.server.php.opcache.memory_usage.used_memory) / 1e+6) / (latest(ocs.data.server.php.opcache.memory_usage.free_memory) / 1e+6) * 100 AS '(%) used memory'"

# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE).
valueFunction: SINGLE_VALUE
Expand All @@ -14,19 +14,19 @@ valueFunction: SINGLE_VALUE
terms:
- priority: CRITICAL
# Operator used to compare against the threshold.
operator: BELOW
operator: ABOVE
# Value that triggers a violation.
threshold: 2
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: BELOW
operator: ABOVE
# Value that triggers a violation.
threshold: 4
threshold: 80
# Time in seconds; 120 - 3600
thresholdDuration: 300
# How many data points must be in violation for the duration?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Name of the alert
name: SMTPD Connection Lost (%)
name: Bounced Emails

# Description and details
description: |+
This alert is triggered when the lost connections exceed 5%.
This alert is triggered when bounced emails exceed 5.
# Type of alert
type: STATIC

# NRQL query
nrql:
query: "SELECT (latest(PostfixSMTPDconnectionLost.value) * 100) / (SELECT latest(value) FROM PostfixSMTPDconnection) AS '(%) connection lost' FROM PostfixSMTPDconnectionLost"
query: "SELECT latest(bounced) As 'Bounced - failed emails' FROM `unixMonitor:postfix_messagesTotalRecords`"

# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE)
valueFunction: SINGLE_VALUE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Name of the alert
name: SMTPD Connection Timed Out (%)
name: SMTP Authentication Fails

# Description and details
description: |+
This alert is triggered when the connection timeout exceeds 5%.
This alert is triggered when SMTP authentication fails exceed 5.
# Type of alert
type: STATIC

# NRQL query
nrql:
query: "SELECT (latest(PostfixSMTPDtimedOut.value) * 100) / (SELECT latest(value) FROM PostfixSMTPDconnection) AS '(%) connection timed out' FROM PostfixSMTPDtimedOut"
query: "SELECT latest(smtp_authfailed_count) FROM `unixMonitor:postfix_smtp_authFailed_today`"

# Function used to aggregate the NRQL query value(s) for comparison to the terms.threshold (Default: SINGLE_VALUE)
valueFunction: SINGLE_VALUE
Expand Down
2 changes: 1 addition & 1 deletion dashboards/jfrog-artifactory/jfrog-artifactory.json
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@
"nrqlQueries": [
{
"accountId": 0,
"query": "FROM Metric SELECT average(jfrog.artifactory.jfrt_http_connections_max_total) as 'Maximum', average(jfrog.artifactory.jfrt_http_connections_leased_total) as 'Leased', average(jfrog.artifactory.jfrt_http_connections_pending_total) as 'Pending', average(jfrog.artifactory.jfrt_http_connections_available_total) as 'Available' TIMESERIES"
"query": "FROM Metric SELECT average(jfrog.artifactory.jfrt_http_connections_max_%_total) as 'Maximum', average(jfrog.artifactory.jfrt_http_connections_leased_%_total) as 'Leased', average(jfrog.artifactory.jfrt_http_connections_pending_%_total) as 'Pending', average(jfrog.artifactory.jfrt_http_connections_available_%_total) as 'Available' TIMESERIES"
}
],
"platformOptions": {
Expand Down
Loading

0 comments on commit adfc44d

Please sign in to comment.