dokumetry) empowers you to effortlessly track and monitor Anthropic usage data and metrics from your Python/NodeJS code.
Get Started
The integration is compatible with- Anthropic Python SDK client
>=0.19.0 - Anthropic JS/TS SDK client
>=0.9.0
- Python
- Javascript
Supported Endpoints
The following Anthropic Endpoints are supported for monitoring with DokuMetryParameters
- Python
- NodeJS
| Parameter | Description | Required |
|---|---|---|
| llm | Anthropic Object to track | Yes |
| doku_url | URL of your Doku Ingester | Yes |
| api_key | Your Doku API key | Yes |
| environment | Custom environment tag to include in your metrics | Optional |
| application_name | Custom application name tag for your metrics | Optional |
| skip_resp | Skip response from the Doku Ingester for faster execution | Optional |
Advanced Usage
When using DokuMetry in Production environments, It is recommened to set Skip response parameter totrue for faster porcessing.
To filter your LLM Usage according application or the environment, set the Application name and Environment paramaters with the actual values.
Connections
Connect to your existing Observablity Platform
API Reference
OpenAPI specification for API Endpoints in Doku

