docs(budget_alerts.md): doc cleanup

This commit is contained in:
Krrish Dholakia 2024-03-02 23:11:04 -08:00
parent f17c0230c8
commit 922b38301f

View file

@ -10,6 +10,16 @@ import Image from '@theme/IdealImage';
### 1. Setup Slack Alerting on your Proxy Config.yaml
**Add Slack Webhook to your env**
Get a slack webhook url from https://api.slack.com/messaging/webhooks
Set `SLACK_WEBHOOK_URL` in your proxy env
```shell
export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/<>/<>/<>"
```
**Update proxy config.yaml with slack alerting**
Add `general_settings:alerting`
```yaml
@ -22,15 +32,8 @@ general_settings:
alerting: ["slack"]
```
Get a slack webhook url from https://api.slack.com/messaging/webhooks
Set `SLACK_WEBHOOK_URL` in your proxy env
```shell
SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/<>/<>/<>"
```
Start proxy
```bash
$ litellm --config /path/to/config.yaml