Skip to main content
This guide will walk you through setting up monitoring for your LLM Application with minimal effort. In just a few steps, you’ll be able to track and analyze the performance and usage of your Large Language Model (LLM) applications.
1

Deploy Doku

1

Prepare your Environment

docker-compose.yml
2

Launch Doku

2

Access Doku UI and Generate an API Key

With Doku running, the next step is to access the Doku UI and generate an API key for secure communication between your applications and Doku.
  1. Open your browser and go to Doku UI at 127.0.0.1:3000/login
  2. Login using theb default credentials
    • Email as user@dokulabs.com
    • Password as dokulabsuser
  3. Once you have logged into Doku UI, Go to API Keys page and Create an API Key. Copy the generated API Key.
Alternatively, you can use the HTTP API to create your Doku API Key. For further details, take a look at the API Reference section.
3

Instrument your Application

Choose the appropriate SDK for your LLM application’s programming language and follow the steps to integrate monitoring with just two lines of code.
1

Install the dokumetry Python SDK using pip

2

Add the following two lines to your application code:

Add the snippet below to your Python application, replace YOUR_DOKU_TOKEN with API key you created in Step 2.
Example Usage for monitoring OpenAI Usage:
Refer to the dokumetry Python SDK repository for more advanced configurations and use cases.
4

Visualize and Analyze

Once you have Doku Ingester and DokuMetry SKDs set up, you can instantly get insights into how your LLM applications. Just head over to Doku UI at 127.0.0.1:3000 on your browser to start exploring.With Doku, you get a simple, powerful view into important info like how much you’re spending on LLMs, which parts of your app are using them the most, and how well they’re performing. Find out which LLM models are favorites among your applications, and dive deep into performance details to make smart decisions. This setup is perfect for optimizing your app performance and keeping an eye on costs.
You’re all set! Following these steps should have you on your way to effectively monitoring your LLM applications. If you have any questions or need support, reach out to our community.

Integrations

Integrate your LLM Provider with Doku

Connections

Connect to your existing Observablity Platform