-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add empty Alerts Page + mock API behind feature flag #754
base: main
Are you sure you want to change the base?
feat: add empty Alerts Page + mock API behind feature flag #754
Conversation
@flxwu is attempting to deploy a commit to the langfuse Team on Vercel. A member of the Team first needs to authorize it. |
State as of latest PR (flxwu#4):Most important attributes of an Alert: // Currently only COST_PER_USER is supported, we can add COST_PER_TRACE, TOKENS_PER_USER etc in the future.
alertMetric AlertMetric
// When this threshold is crossed, the alert will be fired
alertThreshold Float
// The webhook to call when the alert is triggered
triggerWebhookUrl String? @map("trigger_webhook_url") We are now able to automatically trigger Alerts when their threshold is crossed:
Showcasehttps://www.loom.com/share/cb9c1c31ad67414ea9f43c2599086b76?sid=9cc52abe-8084-48ea-b931-671e6ac2a794 We can see that the total cost that triggered the alert was 1.57$: (on top is the webhook logging, bottom is the user consumption dashboard with date range all-time) |
State as of flxwu#5We are now able to add alerts through the UI: https://www.loom.com/share/4bfc522ae511490cb256be3ca57df28d?sid=70da53b1-0b86-48bf-b66c-1ff37c693674 |
688afa5
to
22a1765
Compare
22a1765
to
dbab01d
Compare
|
What does this PR do?
In the spirit of Trunk-Based Development, I am adding a boilerplate Alerts page + a mock API for it behind a feature flag.
#714
Type of change
Mandatory Tasks