-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "[LangChain] LangChain service has a high error rate", | ||
"type": "query alert", | ||
"query": "sum(last_5m):(sum:trace.langchain.request.errors{*}.as_count() / sum:trace.langchain.request.hits{*}.as_count()) > 0.1", | ||
"message": "{{#is_alert}}\n\nALERT: The error rate of your LangChain requests is higher than normal. The error rate is currently over {{value}} errors per request.\n{{/is_alert}}", | ||
"tags": [ | ||
"integration:langchain" | ||
], | ||
"options": { | ||
"thresholds": { | ||
"critical": 0.1, | ||
"warning": 0.05 | ||
}, | ||
"notify_audit": false, | ||
"require_full_window": false, | ||
"notify_no_data": false, | ||
"renotify_interval": 0, | ||
"include_tags": false | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
langchain/assets/recommended_monitors/request_duration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "[LangChain] Request Duration Spike", | ||
"type": "query alert", | ||
"query": "avg(last_5m):avg:system.load.1{*} > 10", | ||
"message": "{{#is_alert}}\n\nALERT: The duration of your LangChain requests is higher compared to normal. The average LangChain request duration is currently over {{value}} seconds. \n\n{{/is_alert}}", | ||
"tags": [ | ||
"integration:langchain" | ||
], | ||
"options": { | ||
"thresholds": { | ||
"critical": 10 | ||
}, | ||
"notify_audit": false, | ||
"require_full_window": false, | ||
"notify_no_data": false, | ||
"renotify_interval": 0, | ||
"include_tags": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters