Prerequistes
- Ensure you have access to a Kubernetes Cluster. You can quickly spin up a Kubernetes Cluster using Kind
Get Started
Generate an API Key
With Doku running, the next step is to generate an API key for secure communication between your applications and Doku.To generate your first API key, you can use the following command:Make sure to store the returned API key securely, as it’s necessary for authorizing future API calls with Doku.
shell
During your initial request to generate an API key, you can leave the Authorization header empty (i.e.,
""). For subsequent requests, you will need to supply the generated API key.Instrument your code
Choose the appropriate SDK for your application’s programming language and follow the steps to integrate monitoring with just a couple of lines of code.
- Python
- NodeJS
Add the following two lines to your application code:
Add the snippet below to your Python application, replacing Example Usage for monitoring Refer to the
YOUR_DOKU_URL and YOUR_DOKU_TOKEN with corresponding values.OpenAI Usage:dokumetry Python SDK repository or the DokuMetry Docs for more advanced configurations and use cases.(Optional) Export Data
Integrations
Connect to your existing Observablity Platform

