- Notifications
You must be signed in to change notification settings - Fork1k
docs: add example grafana dashboard for aibridge#20197
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
ab736e2
802c236
65889d0
66f74ee
cbd03c1
698d736
ac12041
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# AI Bridge Grafana Dashboard | ||
A sample Grafana dashboard for monitoring AI Bridge token usage, costs, and cache hit rates in Coder. | ||
matifali marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page.
matifali marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
## Setup | ||
1. **Install the Infinity plugin**: `grafana-cli plugins install yesoreyeram-infinity-datasource` | ||
2. **Configure data sources**: | ||
- **PostgreSQL datasource** (`coder-observability-ro`): Connect to your Coder database with read access to `aibridge_token_usages`, `aibridge_interceptions`, and `users` tables | ||
matifali marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
- **Infinity datasource** (`litellm-pricing-data`): Point to `https://raw.githubusercontent.com/BerriAI/litellm/refs/heads/main/model_prices_and_context_window.json` for model pricing data | ||
3. **Import**: Download `dashboard.json` from this directory, then in Grafana navigate to **Dashboards** → **Import** → **Upload JSON file**. Map the data sources when prompted. | ||
## Features | ||
- Token usage leaderboards by user, provider, and model | ||
- Filterable by time range, username, provider, and model (regex supported) |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.