-
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.
* Update readme with api keys section * Add dashboard images * Add api token usage monitor * Fix comma * Add monitor metadata * Add integration tag
- Loading branch information
1 parent
4b38a80
commit a071e42
Showing
6 changed files
with
63 additions
and
2 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,28 @@ | ||
{ | ||
"name": "[OpenAI] Abnormally high token usage ", | ||
"type": "query alert", | ||
"query": "avg(last_12h):anomalies(sum:openai.api.usage.n_context{*}.as_count() + sum:openai.api.usage.n_generated{*}.as_count(), 'basic', 2, direction='both', interval=120, alert_window='last_30m', count_default_zero='true', seasonality='hourly') >= 1", | ||
"message": "{{#is_alert}}\n\nALERT: Your OpenAI usage in the last hour has been abnormally high\n\n{{/is_alert}}", | ||
"tags": [ | ||
"integration:openai" | ||
], | ||
"options": { | ||
"thresholds": { | ||
"critical": 1, | ||
"critical_recovery": 0 | ||
}, | ||
"notify_audit": false, | ||
"require_full_window": false, | ||
"notify_no_data": false, | ||
"no_data_timeframe": 10, | ||
"renotify_interval": 0, | ||
"threshold_windows": { | ||
"trigger_window": "last_30m", | ||
"recovery_window": "last_15m" | ||
}, | ||
"include_tags": false | ||
}, | ||
"recommended_monitor_metadata": { | ||
"description": "Notify your team when OpenAI token usage is abnormally high" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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