Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

feat: Setup docs for `0.1.0` release (#105)

Patcher99255a5ef83891
diff --git a/README.md b/README.md
index 6cf9129c..f3b4352a 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@
[![GitHub Last Commit](https://img.shields.io/github/last-commit/dokulabs/doku)](https://github.com/dokulabs/doku/pulse)
[![GitHub Contributors](https://img.shields.io/github/contributors/dokulabs/doku)](https://github.com/dokulabs/doku/graphs/contributors)
-[![Slack](https://img.shields.io/badge/Slack-4A154B?logo=slack&logoColor=white)](https://join.slack.com/t/doku-0tq5728/shared_invite/zt-2a9aql9xx-FN5EIZ2DtZ~XtJoYdxUDtA)
+[![Slack](https://img.shields.io/badge/Slack-4A154B?logo=slack&logoColor=white)](https://join.slack.com/t/dokulabs/shared_invite/zt-2etnfttwg-TjP_7BZXfYg84oAukY8QRQ)
[![X](https://img.shields.io/badge/follow-%40dokulabs-1DA1F2?logo=x&style=social)](https://twitter.com/doku_labs)
[![Doku Version](https://img.shields.io/github/tag/dokulabs/doku.svg?&label=Doku%20Version&logo=docker)](https://github.com/dokulabs/doku/tags)
@@ -88,7 +88,7 @@ To install the Doku using Docker, follow these steps:
restart: always
doku-ingester:
- image: ghcr.io/dokulabs/doku-ingester:0.0.7
+ image: ghcr.io/dokulabs/doku-ingester:0.1.0
container_name: doku-ingester
environment:
DOKU_DB_HOST: clickhouse
@@ -103,7 +103,7 @@ To install the Doku using Docker, follow these steps:
restart: always
doku-client:
- image: ghcr.io/dokulabs/doku-client:0.0.7
+ image: ghcr.io/dokulabs/doku-client:0.1.0
container_name: doku-client
environment:
INIT_DB_HOST: clickhouse
@@ -164,6 +164,8 @@ With Doku running, the next step is to access the Doku UI and generate an API ke
- Password as `dokulabsuser`
3. Once you have logged into Doku UI, Go to [API Keys page](http://127.0.0.1:3000/api-keys) and Create an API Key. Copy the generated API Key.
+> 💡 **Tip:** Alternatively, you can use the HTTP API to create your Doku API Key. For further details, take a look at the [API Reference](https://docs.dokulabs.com/latest/api-reference/endpoint/api-keys/create) section.
+
### ⚡️ 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**.
@@ -194,7 +196,7 @@ client = OpenAI(
api_key="YOUR_OPENAI_KEY"
)
-# Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+# Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
chat_completion = client.chat.completions.create(
@@ -236,7 +238,7 @@ const openai = new OpenAI({
apiKey: 'My API Key', // defaults to process.env["OPENAI_API_KEY"]
});
-// Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+// Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
diff --git a/assets/.client.env.example b/assets/.client.env.example
new file mode 100644
index 00000000..4ab7bc9c
--- /dev/null
+++ b/assets/.client.env.example
@@ -0,0 +1,6 @@
+export INIT_DB_HOST="127.0.0.1"
+export INIT_DB_PORT="8123"
+export INIT_DB_DATABASE="<DB_NAME>"
+export INIT_DB_USERNAME="<DB_USER>"
+export INIT_DB_PASSWORD="<DB_PASSWORD>"
+export SQLITE_DATABASE_URL="file:/app/client/data/data.db"
diff --git a/assets/.env.example b/assets/.ingester.env.example
similarity index 100%
rename from assets/.env.example
rename to assets/.ingester.env.example
diff --git a/assets/example-config.yml b/assets/example-config.yml
deleted file mode 100644
index 48414afd..00000000
--- a/assets/example-config.yml
+++ /dev/null
@@ -1,50 +0,0 @@
-ingesterPort: 9044 # Port to run the Ingestion Server on, Example: 9044
-
-retentionPeriod: "6 months" # Retention Period for the LLM Data, Example: "24 hours", "7 days", "6 months"
-
-# Comment out either 'localFile' or 'url' to use only one at a time.
-pricingInfo:
- # localFile:
- # path: "/assets/pricing.json" # Path to local JSON file with LLM Pricing data
- url: "https://raw.githubusercontent.com/dokulabs/doku/main/assets/pricing.json" # URL to download Pricing data file
-
-# Configuration for the Doku Backend Database (TimescaleDB)
-dbConfig:
- name: "DBNAME" # Name of the database, Example: "postgres"
- username: "USERNAME" # Username to connect to the database, Example: "admin"
- password: "PASSWORD" # Password to connect to the database, Example: "DOKU"
- host: "HOSTURL" # Hostname of the database, Example: "174.21.1.2"
- port: DBPORT # Port of the database, Example: 5432
- sslMode: SSLMODE # SSL Mode of the database, Example: "require"
- maxOpenConns: MAXOPENCONNS # Maximum number of open connections to the database, Example: 15
- maxIdleConns: MAXOPENCONNS # Maximum number of idle connections to the database, Example: 15
-
-# Configure Platform to export LLM Observability Data from Doku
-# Only one platform can be enabled at a time, To enable a platform, set enabled to true and fill in the required fields for that platform.
-connections:
- enabled: false # Enable or Disable the Observability Platform, Example: true
- # grafanaCloud:
- # promUrl: "influx-line-proxy-url" # URL to the Influx Line Proxy URL of the Grafana Cloud Prometheus Instance
- # promUsername: "prometheus-userid" # Prometheus User ID of the Grafana Cloud Prometheus Instance
- # lokiUrl: "loki-push-url" # URL to the Loki Push URL of the Grafana Cloud Loki Instance
- # lokiUsername: "loki-username" # Loki Username of the Grafana Cloud Loki Instance
- # accessToken: "grafana-cloud-access-token" # Access Token of the Grafana Cloud Instance
-
- # newRelic:
- # metricsUrl: "https://metric-api.newrelic.com/metric/v1" # URL to the New Relic Metric API
- # logsUrl: "https://log-api.newrelic.com/log/v1" # URL to the New Relic Log API
- # key: "newrelic-api-key" # Ingest API Key of the New Relic Account
-
- # datadog:
- # metricsUrl: "https://api.datadoghq.com/api/v1/series" # URL to the DataDog Metrics API
- # logsUrl: "https://http.logs.datadoghq.com/api/v2/logs" # URL to the DataDog Logs API
- # apiKey: "datadog-api-key" # API Key of the DataDog Account
-
- # signoz:
- # url: "https://api.datadoghq.com/api/v1/series" # URL to the DataDog Metrics API
- # apiKey: "datadog-api-key" # API Key of the DataDog Account
-
- # dynatrace:
- # metricsUrl: "https://{your-env-id}.live.dynatrace.com/api/v2/metrics/ingest" # URL to the Dynatrace Metrics API
- # logsUrl: "https://{your-env-id}.live.dynatrace.com/api/v2/logs/ingest" # URL to the Dynatrace Logs API
- # apiKey: <your-dynatrace-api-key> # API Key of the Dynatrace Account
\ No newline at end of file
diff --git a/docs/0.0.7/connections/intro.mdx b/docs/0.0.7/connections/intro.mdx
deleted file mode 100644
index e4dd0384..00000000
--- a/docs/0.0.7/connections/intro.mdx
+++ /dev/null
@@ -1,33 +0,0 @@
----
-title: 'Introduction'
-description: 'Connect to your existing Observablity Platform'
----
-Doku enhances observability by seamlessly exporting processed LLM data to your observability platform. This assists developers in bringing together all application-related data, including LLM usage metrics, on a unified platform, simplifying the visualization and assessment of the entire application ecosystem.
-
-Below is a list of observability platforms that work seamlessly with Doku:
-
-<CardGroup cols={2}>
- <Card title="Grafana OSS" href="/0.0.7/connections/grafanaoss" icon={<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Grafana</title><path d="M23.02 10.59a8.578 8.578 0 0 0-.862-3.034 8.911 8.911 0 0 0-1.789-2.445c.337-1.342-.413-2.505-.413-2.505-1.292-.08-2.113.4-2.416.62-.052-.02-.102-.044-.154-.064-.22-.089-.446-.172-.677-.247-.231-.073-.47-.14-.711-.197a9.867 9.867 0 0 0-.875-.161C14.557.753 12.94 0 12.94 0c-1.804 1.145-2.147 2.744-2.147 2.744l-.018.093c-.098.029-.2.057-.298.088-.138.042-.275.094-.413.143-.138.055-.275.107-.41.166a8.869 8.869 0 0 0-1.557.87l-.063-.029c-2.497-.955-4.716.195-4.716.195-.203 2.658.996 4.33 1.235 4.636a11.608 11.608 0 0 0-.607 2.635C1.636 12.677.953 15.014.953 15.014c1.926 2.214 4.171 2.351 4.171 2.351.003-.002.006-.002.006-.005.285.509.615.994.986 1.446.156.19.32.371.488.548-.704 2.009.099 3.68.099 3.68 2.144.08 3.553-.937 3.849-1.173a9.784 9.784 0 0 0 3.164.501h.08l.055-.003.107-.002.103-.005.003.002c1.01 1.44 2.788 1.646 2.788 1.646 1.264-1.332 1.337-2.653 1.337-2.94v-.058c0-.02-.003-.039-.003-.06.265-.187.52-.387.758-.6a7.875 7.875 0 0 0 1.415-1.7c1.43.083 2.437-.885 2.437-.885-.236-1.49-1.085-2.216-1.264-2.354l-.018-.013-.016-.013a.217.217 0 0 1-.031-.02c.008-.092.016-.18.02-.27.011-.162.016-.323.016-.48v-.253l-.005-.098-.008-.135a1.891 1.891 0 0 0-.01-.13c-.003-.042-.008-.083-.013-.125l-.016-.124-.018-.122a6.215 6.215 0 0 0-2.032-3.73 6.015 6.015 0 0 0-3.222-1.46 6.292 6.292 0 0 0-.85-.048l-.107.002h-.063l-.044.003-.104.008a4.777 4.777 0 0 0-3.335 1.695c-.332.4-.592.84-.768 1.297a4.594 4.594 0 0 0-.312 1.817l.003.091c.005.055.007.11.013.164a3.615 3.615 0 0 0 .698 1.82 3.53 3.53 0 0 0 1.827 1.282c.33.098.66.14.971.137.039 0 .078 0 .114-.002l.063-.003c.02 0 .041-.003.062-.003.034-.002.065-.007.099-.01.007 0 .018-.003.028-.003l.031-.005.06-.008a1.18 1.18 0 0 0 .112-.02c.036-.008.072-.013.109-.024a2.634 2.634 0 0 0 .914-.415c.028-.02.056-.041.085-.065a.248.248 0 0 0 .039-.35.244.244 0 0 0-.309-.06l-.078.042c-.09.044-.184.083-.283.116a2.476 2.476 0 0 1-.475.096c-.028.003-.054.006-.083.006l-.083.002c-.026 0-.054 0-.08-.002l-.102-.006h-.012l-.024.006c-.016-.003-.031-.003-.044-.006-.031-.002-.06-.007-.091-.01a2.59 2.59 0 0 1-.724-.213 2.557 2.557 0 0 1-.667-.438 2.52 2.52 0 0 1-.805-1.475 2.306 2.306 0 0 1-.029-.444l.006-.122v-.023l.002-.031c.003-.021.003-.04.005-.06a3.163 3.163 0 0 1 1.352-2.29 3.12 3.12 0 0 1 .937-.43 2.946 2.946 0 0 1 .776-.101h.06l.07.002.045.003h.026l.07.005a4.041 4.041 0 0 1 1.635.49 3.94 3.94 0 0 1 1.602 1.662 3.77 3.77 0 0 1 .397 1.414l.005.076.003.075c.002.026.002.05.002.075 0 .024.003.052 0 .07v.065l-.002.073-.008.174a6.195 6.195 0 0 1-.08.639 5.1 5.1 0 0 1-.267.927 5.31 5.31 0 0 1-.624 1.13 5.052 5.052 0 0 1-3.237 2.014 4.82 4.82 0 0 1-.649.066l-.039.003h-.287a6.607 6.607 0 0 1-1.716-.265 6.776 6.776 0 0 1-3.4-2.274 6.75 6.75 0 0 1-.746-1.15 6.616 6.616 0 0 1-.714-2.596l-.005-.083-.002-.02v-.056l-.003-.073v-.096l-.003-.104v-.07l.003-.163c.008-.22.026-.45.054-.678a8.707 8.707 0 0 1 .28-1.355c.128-.444.286-.872.473-1.277a7.04 7.04 0 0 1 1.456-2.1 5.925 5.925 0 0 1 .953-.763c.169-.111.343-.213.524-.306.089-.05.182-.091.273-.135.047-.02.093-.042.138-.062a7.177 7.177 0 0 1 .714-.267l.145-.045c.049-.015.098-.026.148-.041.098-.029.197-.052.296-.076.049-.013.1-.02.15-.033l.15-.032.151-.028.076-.013.075-.01.153-.024c.057-.01.114-.013.171-.023l.169-.021c.036-.003.073-.008.106-.01l.073-.008.036-.003.042-.002c.057-.003.114-.008.171-.01l.086-.006h.023l.037-.003.145-.007a7.999 7.999 0 0 1 1.708.125 7.917 7.917 0 0 1 2.048.68 8.253 8.253 0 0 1 1.672 1.09l.09.077.089.078c.06.052.114.107.171.159.057.052.112.106.166.16.052.055.107.107.159.164a8.671 8.671 0 0 1 1.41 1.978c.012.026.028.052.04.078l.04.078.075.156c.023.051.05.1.07.153l.065.15a8.848 8.848 0 0 1 .45 1.34.19.19 0 0 0 .201.142.186.186 0 0 0 .172-.184c.01-.246.002-.532-.024-.856z"/></svg>}>
- </Card>
- <Card title="Grafana Cloud" href="/0.0.7/connections/grafanacloud" icon={<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Grafana</title><path d="M23.02 10.59a8.578 8.578 0 0 0-.862-3.034 8.911 8.911 0 0 0-1.789-2.445c.337-1.342-.413-2.505-.413-2.505-1.292-.08-2.113.4-2.416.62-.052-.02-.102-.044-.154-.064-.22-.089-.446-.172-.677-.247-.231-.073-.47-.14-.711-.197a9.867 9.867 0 0 0-.875-.161C14.557.753 12.94 0 12.94 0c-1.804 1.145-2.147 2.744-2.147 2.744l-.018.093c-.098.029-.2.057-.298.088-.138.042-.275.094-.413.143-.138.055-.275.107-.41.166a8.869 8.869 0 0 0-1.557.87l-.063-.029c-2.497-.955-4.716.195-4.716.195-.203 2.658.996 4.33 1.235 4.636a11.608 11.608 0 0 0-.607 2.635C1.636 12.677.953 15.014.953 15.014c1.926 2.214 4.171 2.351 4.171 2.351.003-.002.006-.002.006-.005.285.509.615.994.986 1.446.156.19.32.371.488.548-.704 2.009.099 3.68.099 3.68 2.144.08 3.553-.937 3.849-1.173a9.784 9.784 0 0 0 3.164.501h.08l.055-.003.107-.002.103-.005.003.002c1.01 1.44 2.788 1.646 2.788 1.646 1.264-1.332 1.337-2.653 1.337-2.94v-.058c0-.02-.003-.039-.003-.06.265-.187.52-.387.758-.6a7.875 7.875 0 0 0 1.415-1.7c1.43.083 2.437-.885 2.437-.885-.236-1.49-1.085-2.216-1.264-2.354l-.018-.013-.016-.013a.217.217 0 0 1-.031-.02c.008-.092.016-.18.02-.27.011-.162.016-.323.016-.48v-.253l-.005-.098-.008-.135a1.891 1.891 0 0 0-.01-.13c-.003-.042-.008-.083-.013-.125l-.016-.124-.018-.122a6.215 6.215 0 0 0-2.032-3.73 6.015 6.015 0 0 0-3.222-1.46 6.292 6.292 0 0 0-.85-.048l-.107.002h-.063l-.044.003-.104.008a4.777 4.777 0 0 0-3.335 1.695c-.332.4-.592.84-.768 1.297a4.594 4.594 0 0 0-.312 1.817l.003.091c.005.055.007.11.013.164a3.615 3.615 0 0 0 .698 1.82 3.53 3.53 0 0 0 1.827 1.282c.33.098.66.14.971.137.039 0 .078 0 .114-.002l.063-.003c.02 0 .041-.003.062-.003.034-.002.065-.007.099-.01.007 0 .018-.003.028-.003l.031-.005.06-.008a1.18 1.18 0 0 0 .112-.02c.036-.008.072-.013.109-.024a2.634 2.634 0 0 0 .914-.415c.028-.02.056-.041.085-.065a.248.248 0 0 0 .039-.35.244.244 0 0 0-.309-.06l-.078.042c-.09.044-.184.083-.283.116a2.476 2.476 0 0 1-.475.096c-.028.003-.054.006-.083.006l-.083.002c-.026 0-.054 0-.08-.002l-.102-.006h-.012l-.024.006c-.016-.003-.031-.003-.044-.006-.031-.002-.06-.007-.091-.01a2.59 2.59 0 0 1-.724-.213 2.557 2.557 0 0 1-.667-.438 2.52 2.52 0 0 1-.805-1.475 2.306 2.306 0 0 1-.029-.444l.006-.122v-.023l.002-.031c.003-.021.003-.04.005-.06a3.163 3.163 0 0 1 1.352-2.29 3.12 3.12 0 0 1 .937-.43 2.946 2.946 0 0 1 .776-.101h.06l.07.002.045.003h.026l.07.005a4.041 4.041 0 0 1 1.635.49 3.94 3.94 0 0 1 1.602 1.662 3.77 3.77 0 0 1 .397 1.414l.005.076.003.075c.002.026.002.05.002.075 0 .024.003.052 0 .07v.065l-.002.073-.008.174a6.195 6.195 0 0 1-.08.639 5.1 5.1 0 0 1-.267.927 5.31 5.31 0 0 1-.624 1.13 5.052 5.052 0 0 1-3.237 2.014 4.82 4.82 0 0 1-.649.066l-.039.003h-.287a6.607 6.607 0 0 1-1.716-.265 6.776 6.776 0 0 1-3.4-2.274 6.75 6.75 0 0 1-.746-1.15 6.616 6.616 0 0 1-.714-2.596l-.005-.083-.002-.02v-.056l-.003-.073v-.096l-.003-.104v-.07l.003-.163c.008-.22.026-.45.054-.678a8.707 8.707 0 0 1 .28-1.355c.128-.444.286-.872.473-1.277a7.04 7.04 0 0 1 1.456-2.1 5.925 5.925 0 0 1 .953-.763c.169-.111.343-.213.524-.306.089-.05.182-.091.273-.135.047-.02.093-.042.138-.062a7.177 7.177 0 0 1 .714-.267l.145-.045c.049-.015.098-.026.148-.041.098-.029.197-.052.296-.076.049-.013.1-.02.15-.033l.15-.032.151-.028.076-.013.075-.01.153-.024c.057-.01.114-.013.171-.023l.169-.021c.036-.003.073-.008.106-.01l.073-.008.036-.003.042-.002c.057-.003.114-.008.171-.01l.086-.006h.023l.037-.003.145-.007a7.999 7.999 0 0 1 1.708.125 7.917 7.917 0 0 1 2.048.68 8.253 8.253 0 0 1 1.672 1.09l.09.077.089.078c.06.052.114.107.171.159.057.052.112.106.166.16.052.055.107.107.159.164a8.671 8.671 0 0 1 1.41 1.978c.012.026.028.052.04.078l.04.078.075.156c.023.051.05.1.07.153l.065.15a8.848 8.848 0 0 1 .45 1.34.19.19 0 0 0 .201.142.186.186 0 0 0 .172-.184c.01-.246.002-.532-.024-.856z"/></svg>}>
- </Card>
- <Card title="DataDog" href="/0.0.7/connections/datadog" icon={<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Datadog</title><path d="M19.57 17.04l-1.997-1.316-1.665 2.782-1.937-.567-1.706 2.604.087.82 9.274-1.71-.538-5.794zm-8.649-2.498l1.488-.204c.241.108.409.15.697.223.45.117.97.23 1.741-.16.18-.088.553-.43.704-.625l6.096-1.106.622 7.527-10.444 1.882zm11.325-2.712l-.602.115L20.488 0 .789 2.285l2.427 19.693 2.306-.334c-.184-.263-.471-.581-.96-.989-.68-.564-.44-1.522-.039-2.127.53-1.022 3.26-2.322 3.106-3.956-.056-.594-.15-1.368-.702-1.898-.02.22.017.432.017.432s-.227-.289-.34-.683c-.112-.15-.2-.199-.319-.4-.085.233-.073.503-.073.503s-.186-.437-.216-.807c-.11.166-.137.48-.137.48s-.241-.69-.186-1.062c-.11-.323-.436-.965-.343-2.424.6.421 1.924.321 2.44-.439.171-.251.288-.939-.086-2.293-.24-.868-.835-2.16-1.066-2.651l-.028.02c.122.395.374 1.223.47 1.625.293 1.218.372 1.642.234 2.204-.116.488-.397.808-1.107 1.165-.71.358-1.653-.514-1.713-.562-.69-.55-1.224-1.447-1.284-1.883-.062-.477.275-.763.445-1.153-.243.07-.514.192-.514.192s.323-.334.722-.624c.165-.109.262-.178.436-.323a9.762 9.762 0 0 0-.456.003s.42-.227.855-.392c-.318-.014-.623-.003-.623-.003s.937-.419 1.678-.727c.509-.208 1.006-.147 1.286.257.367.53.752.817 1.569.996.501-.223.653-.337 1.284-.509.554-.61.99-.688.99-.688s-.216.198-.274.51c.314-.249.66-.455.66-.455s-.134.164-.259.426l.03.043c.366-.22.797-.394.797-.394s-.123.156-.268.358c.277-.002.838.012 1.056.037 1.285.028 1.552-1.374 2.045-1.55.618-.22.894-.353 1.947.68.903.888 1.609 2.477 1.259 2.833-.294.295-.874-.115-1.516-.916a3.466 3.466 0 0 1-.716-1.562 1.533 1.533 0 0 0-.497-.85s.23.51.23.96c0 .246.03 1.165.424 1.68-.039.076-.057.374-.1.43-.458-.554-1.443-.95-1.604-1.067.544.445 1.793 1.468 2.273 2.449.453.927.186 1.777.416 1.997.065.063.976 1.197 1.15 1.767.306.994.019 2.038-.381 2.685l-1.117.174c-.163-.045-.273-.068-.42-.153.08-.143.241-.5.243-.572l-.063-.111c-.348.492-.93.97-1.414 1.245-.633.359-1.363.304-1.838.156-1.348-.415-2.623-1.327-2.93-1.566 0 0-.01.191.048.234.34.383 1.119 1.077 1.872 1.56l-1.605.177.759 5.908c-.337.048-.39.071-.757.124-.325-1.147-.946-1.895-1.624-2.332-.599-.384-1.424-.47-2.214-.314l-.05.059a2.851 2.851 0 0 1 1.863.444c.654.413 1.181 1.481 1.375 2.124.248.822.42 1.7-.248 2.632-.476.662-1.864 1.028-2.986.237.3.481.705.876 1.25.95.809.11 1.577-.03 2.106-.574.452-.464.69-1.434.628-2.456l.714-.104.258 1.834 11.827-1.424zM15.05 6.848c-.034.075-.085.125-.007.37l.004.014.013.032.032.073c.14.287.295.558.552.696.067-.011.136-.019.207-.023.242-.01.395.028.492.08.009-.048.01-.119.005-.222-.018-.364.072-.982-.626-1.308-.264-.122-.634-.084-.757.068a.302.302 0 0 1 .058.013c.186.066.06.13.027.207m1.958 3.392c-.092-.05-.52-.03-.821.005-.574.068-1.193.267-1.328.372-.247.191-.135.523.047.66.511.382.96.638 1.432.575.29-.038.546-.497.728-.914.124-.288.124-.598-.058-.698m-5.077-2.942c.162-.154-.805-.355-1.556.156-.554.378-.571 1.187-.041 1.646.053.046.096.078.137.104a4.77 4.77 0 0 1 1.396-.412c.113-.125.243-.345.21-.745-.044-.542-.455-.456-.146-.749"/></svg>}>
- </Card>
- <Card title="New Relic" href="/0.0.7/connections/new-relic" icon={<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>New Relic</title><path d="M8.0015 14.3091v7.384L12.0008 24V12.0008L1.6078 5.9996v4.6167ZM12.0008 0 2.8232 5.2976 6.8209 7.606l5.1799-2.9893 6.3936 3.6913v7.384l-5.1783 2.9908v4.6167l9.176-5.2991V5.9996Z"/></svg>}>
- </Card>
- <Card title="SigNoz" href="/0.0.7/connections/signoz" icon={<svg role="img" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><title>SigNoz</title><path opacity="0.1" d="M100.279 199.833C44.5682 199.833 0 156.12 0 101.479C0 47.3844 44.5682 3.125 100.279 3.125H163.231C183.844 3.125 200 19.5174 200 39.1882V101.479C200 156.12 155.432 199.833 100.279 199.833Z"/><path d="M99.4919 58.9008C57.8802 58.9008 34.4413 93.3585 33.4637 94.8253C31.0537 98.4385 31.0537 103.111 33.4655 106.727C34.4413 108.191 57.8802 142.649 99.4919 142.649C141.103 142.649 164.543 108.191 165.52 106.724C167.93 103.111 167.93 98.4385 165.518 94.8227C164.542 93.3585 141.103 58.9008 99.4919 58.9008ZM39.2234 102.886C38.3677 101.604 38.3677 99.9463 39.2234 98.6633C40.0095 97.4834 56.6976 72.9705 86.5341 67.0904C73.0136 72.3095 63.393 85.4356 63.393 100.775C63.393 116.114 73.0136 129.24 86.5341 134.459C56.6976 128.579 40.0095 104.066 39.2234 102.886ZM82.8568 100.775C82.8568 102.686 81.3074 104.235 79.396 104.235C77.4845 104.235 75.9352 102.686 75.9352 100.775C75.9352 87.7858 86.5024 77.2185 99.4916 77.2185C101.403 77.2185 102.952 78.7676 102.952 80.6792C102.952 82.5908 101.403 84.1398 99.4916 84.1398C90.3189 84.1398 82.8568 91.6019 82.8568 100.775ZM99.4919 109.188C94.8525 109.188 91.0783 105.414 91.0783 100.775C91.0783 96.1356 94.8525 92.3612 99.4919 92.3612C104.132 92.3612 107.906 96.1354 107.906 100.775C107.906 105.414 104.132 109.188 99.4919 109.188ZM159.76 102.886C158.974 104.066 142.286 128.579 112.45 134.459C125.971 129.24 135.591 116.114 135.591 100.775C135.591 85.4358 125.971 72.3096 112.45 67.0905C142.286 72.971 158.974 97.4837 159.76 98.6634C160.616 99.9463 160.616 101.604 159.76 102.886Z"/></svg>}>
- </Card>
- <Card title="Dynatrace" href="/0.0.7/connections/dynatrace" icon={<svg viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg"><title>Dynatrace icon</title><path d="M9.373 0c-.31.006-.93.09-1.521.654C6.98 1.478 2.628 5.61.88 7.27.09 8.024.16 8.865.16 8.934v.377c.067-.292.187-.499.427-.825.496-.616 1.3-.788 1.627-.822a64.233 64.233 0 0 1 .002 0 64.233 64.233 0 0 1 6.527-.549c4.335-.137 7.197.225 7.197.225l6.084-5.793s-3.188-.6-6.82-1.027A93.394 93.394 0 0 0 9.566.006c-.021 0-.09-.008-.193-.006zm13.56 2.508l-6.066 5.79s.222 2.88-.137 7.198c-.189 2.45-.584 4.866-.875 6.494-.052.326-.256 1.114-.925 1.594-.29.198-.491.295-.748.363 1.546-.51 1.091-7.047 1.091-7.047-4.335.137-7.214-.222-7.214-.222L1.975 22.47s3.222.634 6.855 1.045c2.056.24 4.833.429 5.227.463.023 0 .045-.007.068-.012-.013.003-.022.009-.035.012.138 0 .259.015.379.015.085 0 .925.105 1.713-.648 1.748-1.663 6.083-5.81 6.94-6.633.788-.754.72-1.594.72-1.68a81.84 81.84 0 0 0-.207-5.654c-.24-3.65-.701-6.871-.701-6.871zM3.856 8.305C2.125 8.307.348 8.513.16 9.326c.017 1.216.05 3.137.205 5.28.24 3.65.703 6.886.703 6.886l6.082-5.79c-.017.017-.239-2.88.121-7.198H7.27s-1.684-.202-3.415-.2z"/></svg>}>
- </Card>
-</CardGroup>
-
----
-
-<CardGroup cols={2}>
-<Card title="Integrations" href="/0.0.7/integrations/introduction" icon='circle-nodes'>
-Integrate your LLM Provider with Doku
-</Card>
-<Card title="API Refernce" href="/0.0.7/api-reference/introduction" icon='code'>
-OpenAPI specification for API Endpoints in Doku
-</Card>
-</CardGroup>
\ No newline at end of file
diff --git a/docs/0.0.7/api-reference/endpoint/api-keys/create.mdx b/docs/0.1/api-reference/endpoint/api-keys/create.mdx
similarity index 100%
rename from docs/0.0.7/api-reference/endpoint/api-keys/create.mdx
rename to docs/0.1/api-reference/endpoint/api-keys/create.mdx
diff --git a/docs/0.0.7/api-reference/endpoint/api-keys/delete.mdx b/docs/0.1/api-reference/endpoint/api-keys/delete.mdx
similarity index 100%
rename from docs/0.0.7/api-reference/endpoint/api-keys/delete.mdx
rename to docs/0.1/api-reference/endpoint/api-keys/delete.mdx
diff --git a/docs/0.0.7/api-reference/endpoint/api-keys/get.mdx b/docs/0.1/api-reference/endpoint/api-keys/get.mdx
similarity index 100%
rename from docs/0.0.7/api-reference/endpoint/api-keys/get.mdx
rename to docs/0.1/api-reference/endpoint/api-keys/get.mdx
diff --git a/docs/0.0.7/api-reference/endpoint/connections/create.mdx b/docs/0.1/api-reference/endpoint/connections/create.mdx
similarity index 100%
rename from docs/0.0.7/api-reference/endpoint/connections/create.mdx
rename to docs/0.1/api-reference/endpoint/connections/create.mdx
diff --git a/docs/0.0.7/api-reference/endpoint/connections/delete.mdx b/docs/0.1/api-reference/endpoint/connections/delete.mdx
similarity index 100%
rename from docs/0.0.7/api-reference/endpoint/connections/delete.mdx
rename to docs/0.1/api-reference/endpoint/connections/delete.mdx
diff --git a/docs/0.0.7/api-reference/introduction.mdx b/docs/0.1/api-reference/introduction.mdx
similarity index 83%
rename from docs/0.0.7/api-reference/introduction.mdx
rename to docs/0.1/api-reference/introduction.mdx
index c17cda0f..2c6992e0 100644
--- a/docs/0.0.7/api-reference/introduction.mdx
+++ b/docs/0.1/api-reference/introduction.mdx
@@ -6,13 +6,13 @@ description: 'OpenAPI specification for API Endpoints in Doku'
<Card
title="API Keys"
icon="key"
- href="/0.0.7/api-reference/endpoint/api-keys/create"
+ href="/0.1/api-reference/endpoint/api-keys/create"
>
</Card>
<Card
title="Connections API"
icon="link"
- href="/0.0.7/api-reference/endpoint/connections/create"
+ href="/0.1/api-reference/endpoint/connections/create"
>
</Card>
</CardGroup>
diff --git a/docs/0.0.7/api-reference/openiapi.yml b/docs/0.1/api-reference/openiapi.yml
similarity index 100%
rename from docs/0.0.7/api-reference/openiapi.yml
rename to docs/0.1/api-reference/openiapi.yml
diff --git a/docs/0.0.7/configuration.mdx b/docs/0.1/configuration.mdx
similarity index 91%
rename from docs/0.0.7/configuration.mdx
rename to docs/0.1/configuration.mdx
index e79e8f82..bd8c18a1 100644
--- a/docs/0.0.7/configuration.mdx
+++ b/docs/0.1/configuration.mdx
@@ -67,12 +67,12 @@ This guide covers all the available environment variables to fine-tune Doku acco
### Sample Environment File (.env)
```.env.example .env
-INIT_DB_HOST: 127.0.0.1
-INIT_DB_PORT: 8123
-INIT_DB_DATABASE: default
-INIT_DB_USERNAME: default
-INIT_DB_PASSWORD: DOKU
-SQLITE_DATABASE_URL: file:/app/client/data/data.db
+INIT_DB_HOST="127.0.0.1"
+INIT_DB_PORT="8123"
+INIT_DB_DATABASE="default"
+INIT_DB_USERNAME="default"
+INIT_DB_PASSWORD="DOKU"
+SQLITE_DATABASE_URL="file:/app/client/data/data.db"
```
## Doku Ingester
@@ -194,10 +194,10 @@ DOKU_DB_PASSWORD="DOKU"
---
<CardGroup cols={2}>
-<Card title="Integrations" href="/0.0.7/integrations/introduction" icon='circle-nodes'>
+<Card title="Integrations" href="/0.1/integrations/introduction" icon='circle-nodes'>
Integrate your LLM Provider with Doku
</Card>
-<Card title="Connections" href="/0.0.7/connections/intro" icon='link'>
+<Card title="Connections" href="/0.1/connections/intro" icon='link'>
Connect to your existing Observablity Platform
</Card>
</CardGroup>
\ No newline at end of file
diff --git a/docs/0.0.7/connections/datadog.mdx b/docs/0.1/connections/datadog.mdx
similarity index 99%
rename from docs/0.0.7/connections/datadog.mdx
rename to docs/0.1/connections/datadog.mdx
index 42337c86..22ac2ff7 100644
--- a/docs/0.0.7/connections/datadog.mdx
+++ b/docs/0.1/connections/datadog.mdx
@@ -10,7 +10,7 @@ description: 'Connect Doku to DataDog'
Doku can automatically send LLM usage data from Doku to DataDog using the [Submit Metrics API](https://docs.datadoghq.com/api/latest/metrics/#submit-metrics) and [Send Logs API](https://docs.datadoghq.com/api/latest/logs/#send-logs)
-Make the following curl request to Doku to add a connection for DataDog. See more on the [Connections API](/0.0.7/api-reference/endpoint/connections/create)
+Make the following curl request to Doku to add a connection for DataDog. See more on the [Connections API](/0.1/api-reference/endpoint/connections/create)
```shell
curl --request POST \
diff --git a/docs/0.0.7/connections/dynatrace.mdx b/docs/0.1/connections/dynatrace.mdx
similarity index 99%
rename from docs/0.0.7/connections/dynatrace.mdx
rename to docs/0.1/connections/dynatrace.mdx
index 9414d82f..364e2a37 100644
--- a/docs/0.0.7/connections/dynatrace.mdx
+++ b/docs/0.1/connections/dynatrace.mdx
@@ -11,7 +11,7 @@ description: 'Connect Doku to Dynatrace'
Doku can automatically send LLM usage data from Doku to Dynatrace using the [Ingest Metrics API](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/metric-v2/post-ingest-metrics) and [Ingest Logs API](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/log-monitoring-v2/post-ingest-logs)
-Make the following curl request to Doku to add a connection for Dynatrace. See more on the [Connections API](/0.0.7/api-reference/endpoint/connections/create)
+Make the following curl request to Doku to add a connection for Dynatrace. See more on the [Connections API](/0.1/api-reference/endpoint/connections/create)
```shell
curl --request POST \
diff --git a/docs/0.0.7/connections/grafanacloud.mdx b/docs/0.1/connections/grafanacloud.mdx
similarity index 99%
rename from docs/0.0.7/connections/grafanacloud.mdx
rename to docs/0.1/connections/grafanacloud.mdx
index c1282956..2bdcb247 100644
--- a/docs/0.0.7/connections/grafanacloud.mdx
+++ b/docs/0.1/connections/grafanacloud.mdx
@@ -10,7 +10,7 @@ description: 'Connect Doku to Grafana Cloud'
Doku can automatically send LLM usage data from Doku to Grafana Cloud using the [Grafana Cloud Influx Telegraf](https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/) and [Loki Push HTTP API](https://grafana.com/docs/loki/latest/reference/api/#push-log-entries-to-loki)
-Make the following curl request to Doku to add a connection for Grafana Cloud. See more on the [Connections API](/0.0.7/api-reference/endpoint/connections/create)
+Make the following curl request to Doku to add a connection for Grafana Cloud. See more on the [Connections API](/0.1/api-reference/endpoint/connections/create)
```shell
curl --request POST \
diff --git a/docs/0.0.7/connections/grafanaoss.mdx b/docs/0.1/connections/grafanaoss.mdx
similarity index 86%
rename from docs/0.0.7/connections/grafanaoss.mdx
rename to docs/0.1/connections/grafanaoss.mdx
index 465cadaa..1d607abc 100644
--- a/docs/0.0.7/connections/grafanaoss.mdx
+++ b/docs/0.1/connections/grafanaoss.mdx
@@ -8,23 +8,23 @@ description: 'Connect Doku to Grafana OSS'
<img src="https://github.com/dokulabs/doku/blob/main/docs/images/grafana-dashboard-3.jpg?raw=true" />
</Frame>
-You can add the Doku's backend storage database (`TimescaleDB`) as a datasource in Grafana.
+You can add the Doku's backend storage database (`ClickHouse`) as a datasource in Grafana.
## Steps
1. Navigate to your Grafana Instance.
1. Login with your credentials.
-1. Click on the **Connection** on the left sidebar to open the **Data Sources**.
-1. Click the **Add data source** button.
-1. In the search box, type "PostgreSQL" as `TimescaleDB` is an extension of PostgreSQL
-1.In the settings form, fill in the details to connect to your TimescaleDB/PostgreSQL database:
- - **Name**: Enter the name for the datasource as `Doku`.
- - **Host**: Provide the host address and port of your PostgreSQL server (e.g., `127.0.0.1`).
- - **Database**: Enter the name of the database. Default database used by Doku is `postgres`.
- - **TLS/SSL Setiing**: Enter the securtity to use for connection. Default used by Doku is `require`.
- - **User**: The username for the database. Default user used by Doku is `admin`.
- - **Password**: The password for the database. Default password used by Doku is `Doku`.
-1. Optionally customize the **Max open connections**, **Max idle connections**, and **Connection Max Lifetime**.
+1. Click on the **Connection** on the left sidebar to open the **Add new connection**.
+1. In the search box, type `ClickHouse` and then click `Install` button on the top right corner.
+1. Click the **Add new data source** button on the top right corner.
+1.In the settings form, fill in the details to connect to your ClickHouse database:
+ 1. **Server address**: Provide the host address of your ClickHouse Database (e.g., `127.0.0.1`).
+ 1. **Server port**: Provide the port of your ClickHouse Database (e.g., `9000`) and set protocol as `Native`
+ 1. **Username**: The username for the ClickHouse database. Default user used by Doku is `default`.
+ 1. **Password**: The password for the database. Default password used by Doku is `DOKU`.
+ 1. Under **Additional settings**
+ - Add **Default database**. Default database used by Doku is `default`.
+1. Optionally customize the **Additional settings**.
1. Click the **Save & Test** button at the bottom of the page.
Grafana will attempt to connect to the database using the provided settings. If everything is configured correctly, you will see a message indicating the data source is working.
@@ -53,7 +53,7 @@ Grafana will attempt to connect to the database using the provided settings. If
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
- "id": 8,
+ "id": 1,
"links": [
{
"icon": "info",
@@ -87,7 +87,7 @@ Grafana will attempt to connect to the database using the provided settings. If
"panels": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"gridPos": {
@@ -106,13 +106,13 @@ Grafana will attempt to connect to the database using the provided settings. If
"content": "---\n---\n---\n---\n---\n---",
"mode": "markdown"
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"transparent": true,
"type": "text"
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"gridPos": {
@@ -131,13 +131,13 @@ Grafana will attempt to connect to the database using the provided settings. If
"content": "![Doku Logo](https://github.com/dokulabs/.github/blob/main/profile/assets/favicon.png?raw=true)",
"mode": "markdown"
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"transparent": true,
"type": "text"
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"gridPos": {
@@ -156,13 +156,13 @@ Grafana will attempt to connect to the database using the provided settings. If
"content": "---\n---\n---\n---\n---\n---",
"mode": "markdown"
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"transparent": true,
"type": "text"
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the total number of requests sent to Large Language Models (LLM) Platforms in the selected time interval.",
@@ -185,7 +185,8 @@ Grafana will attempt to connect to the database using the provided settings. If
"value": 80
}
]
- }
+ },
+ "unitScale": true
},
"overrides": []
},
@@ -208,18 +209,23 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": "SELECT count(*) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
"refId": "A",
@@ -255,7 +261,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the average time taken to process each request by the Large Language Models (LLM), offering a snapshot of system performance and efficiency.",
@@ -278,7 +284,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "s"
+ "unit": "s",
+ "unitScale": true
},
"overrides": []
},
@@ -301,20 +308,25 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT AVG(requestduration) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
+ "rawSql": "SELECT AVG(requestDuration) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
"refId": "A",
"sql": {
"columns": [
@@ -348,7 +360,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the average count of Total tokens used per LLM request",
@@ -371,7 +383,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "none"
+ "unit": "none",
+ "unitScale": true
},
"overrides": []
},
@@ -394,20 +407,25 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT AVG(totaltokens) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
+ "rawSql": "SELECT AVG(totalTokens) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
"refId": "A",
"sql": {
"columns": [
@@ -441,7 +459,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the average cost incurred per request to the LLM, helping monitor and optimize budget allocation for LLM usage.",
@@ -464,7 +482,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "currencyUSD"
+ "unit": "currencyUSD",
+ "unitScale": true
},
"overrides": []
},
@@ -487,20 +506,25 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT AVG(usagecost) FROM DOKU_LLM_DATA \nWHERE $__timeFilter(time)",
+ "rawSql": "SELECT AVG(usageCost) FROM DOKU_LLM_DATA \nWHERE $__timeFilter(time)",
"refId": "A",
"sql": {
"columns": [
@@ -534,7 +558,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the total cost on LLM requests over the selected period.",
@@ -553,7 +577,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "currencyUSD"
+ "unit": "currencyUSD",
+ "unitScale": true
},
"overrides": []
},
@@ -576,20 +601,25 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT SUM(usagecost) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
+ "rawSql": "SELECT SUM(usageCost) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
"refId": "A",
"sql": {
"columns": [
@@ -623,7 +653,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the count of API requests made to LLMs over the selected time.",
@@ -683,7 +713,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "none"
+ "unit": "none",
+ "unitScale": true
},
"overrides": []
},
@@ -710,7 +741,7 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
@@ -779,7 +810,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel illustrates the distribution of LLM requests across different usage categories: Chat Generations, Embeddings, Image Generations, Audio Generations, and Fine Tuning. It visualizes the relative volume of requests, helping to identify which types of operations are most frequently performed and providing insights into usage patterns by category.\n\n",
@@ -795,7 +826,8 @@ Grafana will attempt to connect to the database using the provided settings. If
"viz": false
}
},
- "mappings": []
+ "mappings": [],
+ "unitScale": true
},
"overrides": []
},
@@ -832,11 +864,15 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": "SELECT \n category,\n CAST(COUNT(*) AS INTEGER) AS Requests,\n ROUND(100.0 * COUNT(*) / SUM(COUNT(*)) OVER(), 2) AS percentage\n FROM \n (\n SELECT \n CASE\n WHEN endpoint LIKE 'openai.chat%' THEN 'Chat'\n WHEN endpoint LIKE 'openai.completions%' THEN 'Chat'\n WHEN endpoint LIKE 'anthropic.messages%' THEN 'Chat'\n WHEN endpoint LIKE 'cohere.summarize%' THEN 'Chat'\n WHEN endpoint LIKE 'cohere.generate%' THEN 'Chat'\n WHEN endpoint LIKE 'cohere.chat%' THEN 'Chat'\n WHEN endpoint LIKE '%embed%' THEN 'Embeddings'\n WHEN endpoint LIKE 'openai.images%' THEN 'Image'\n WHEN endpoint LIKE 'openai.audio%' THEN 'Audio'\n WHEN endpoint LIKE 'openai.fine_tuning%' THEN 'Fine Tuning'\n END AS category,\n endpoint\n FROM DOKU_LLM_DATA\n WHERE $__timeFilter(time)\n ) AS subquery\n GROUP BY category",
"refId": "A",
@@ -865,7 +901,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "Displays the cost breakdown by provider (OpenAI, Cohere, Anthropic) for LLM requests, offering insights into financial deployment across different services.",
@@ -882,7 +918,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
},
"mappings": [],
- "unit": "currencyUSD"
+ "unit": "currencyUSD",
+ "unitScale": true
},
"overrides": []
},
@@ -919,11 +956,15 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": "SELECT\n CASE\n WHEN endpoint LIKE 'openai.%' THEN 'OpenAI'\n WHEN endpoint LIKE 'cohere.%' THEN 'Cohere'\n WHEN endpoint LIKE 'anthropic.%' THEN 'Anthropic'\n END AS provider,\n SUM(usageCost) AS total_cost\nFROM\n DOKU_LLM_DATA\nWHERE $__timeFilter(time)\nGROUP BY\n provider\nORDER BY\n total_cost DESC;",
"refId": "A",
@@ -952,7 +993,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel presents a pie chart detailing the distribution of expenses for LLM requests by various applications. It shows how budget allocations are consumed by different applications, enabling a deeper understanding of cost drivers and facilitating cost optimization efforts.",
@@ -969,7 +1010,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
},
"mappings": [],
- "unit": "currencyUSD"
+ "unit": "currencyUSD",
+ "unitScale": true
},
"overrides": []
},
@@ -1007,11 +1049,15 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": " SELECT\n applicationName,\n sum(usageCost) AS \"usageCost\"\n FROM\n DOKU_LLM_DATA\n WHERE $__timeFilter(time)\n GROUP BY\n applicationName\n ORDER BY\n \"usageCost\" DESC",
"refId": "A",
@@ -1040,7 +1086,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "Visualizes the allocation of LLM request expenses across different environments, such as development, staging, and production. This breakdown helps in tracking and managing costs with respect to operational environments.",
@@ -1057,7 +1103,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
},
"mappings": [],
- "unit": "currencyUSD"
+ "unit": "currencyUSD",
+ "unitScale": true
},
"overrides": []
},
@@ -1095,11 +1142,15 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": " SELECT\n environment,\n sum(usageCost) AS \"usageCost\"\n FROM\n DOKU_LLM_DATA\n WHERE $__timeFilter(time)\n GROUP BY\n environment\n ORDER BY\n \"usageCost\" DESC",
"refId": "A",
@@ -1128,7 +1179,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the average count of Prompt tokens used per LLM request",
@@ -1142,7 +1193,8 @@ Grafana will attempt to connect to the database using the provided settings. If
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
@@ -1150,7 +1202,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "none"
+ "unit": "none",
+ "unitScale": true
},
"overrides": []
},
@@ -1173,20 +1226,25 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT AVG(prompttokens) FROM DOKU_LLM_DATA WHERE \n $__timeFilter(\"time\")",
+ "rawSql": "SELECT AVG(promptTokens) FROM DOKU_LLM_DATA WHERE \n $__timeFilter(\"time\")",
"refId": "A",
"sql": {
"columns": [
@@ -1219,7 +1277,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "Provides a time-series analysis of token consumption for LLM requests, highlighting trends in usage intensity and complexity over time.",
@@ -1270,14 +1328,16 @@ Grafana will attempt to connect to the database using the provided settings. If
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
"value": 80
}
]
- }
+ },
+ "unitScale": true
},
"overrides": []
},
@@ -1304,13 +1364,17 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "time_series",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT prompttokens AS \"Prompt Tokens\", \"time\" AS \"time\", completiontokens AS \"Completion Tokens\", totaltokens AS \"Total Tokens\" FROM DOKU_LLM_DATA",
+ "rawSql": "SELECT promptTokens AS \"Prompt Tokens\", \"time\" AS \"time\", completionTokens AS \"Completion Tokens\", totalTokens AS \"Total Tokens\" FROM DOKU_LLM_DATA",
"refId": "A",
"sql": {
"columns": [
@@ -1373,7 +1437,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the average count of Completion tokens used per LLM request",
@@ -1387,7 +1451,8 @@ Grafana will attempt to connect to the database using the provided settings. If
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
@@ -1395,7 +1460,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "none"
+ "unit": "none",
+ "unitScale": true
},
"overrides": []
},
@@ -1418,20 +1484,25 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT AVG(completiontokens) FROM DOKU_LLM_DATA WHERE \n $__timeFilter(\"time\")",
+ "rawSql": "SELECT AVG(completionTokens) FROM DOKU_LLM_DATA WHERE \n $__timeFilter(\"time\")",
"refId": "A",
"sql": {
"columns": [
@@ -1464,7 +1535,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "Displays the frequency of model usage over time, identifying the most utilised models and showcasing usage trends across different periods",
@@ -1479,7 +1550,8 @@ Grafana will attempt to connect to the database using the provided settings. If
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
@@ -1487,7 +1559,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "none"
+ "unit": "none",
+ "unitScale": true
},
"overrides": []
},
@@ -1516,15 +1589,19 @@ Grafana will attempt to connect to the database using the provided settings. If
"sizing": "manual",
"valueMode": "text"
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": "SELECT \n model,\n total_count,\n percentage_usage\nFROM \n (\n SELECT \n model,\n COUNT(*) AS total_count,\n ROUND(100.0 * COUNT(*) / SUM(COUNT(*)) OVER(), 2) AS percentage_usage\n FROM \n DOKU_LLM_DATA\n WHERE $__timeFilter(time)\n GROUP BY \n model\n ORDER BY \n percentage_usage DESC\n ) sub\nLIMIT 5;",
"refId": "A",
@@ -1558,7 +1635,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "Breaks down token usage across different LLM models, offering insights into which models are driving the highest token consumption.",
@@ -1604,14 +1681,16 @@ Grafana will attempt to connect to the database using the provided settings. If
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
"value": 80
}
]
- }
+ },
+ "unitScale": true
},
"overrides": []
},
@@ -1638,11 +1717,15 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "time_series",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": "SELECT \n DATE_TRUNC('day', \"time\") AS \"time\",\n model,\n COUNT(*) AS \"Model:\"\nFROM \n DOKU_LLM_DATA\nWHERE \n $__timeFilter(\"time\")\nGROUP BY \n 1, model\nORDER BY \n \"time\" ASC, model;",
"refId": "A",
@@ -1676,7 +1759,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "Table showing prompts and responses along with their associated costs and token usage.",
@@ -1699,7 +1782,8 @@ Grafana will attempt to connect to the database using the provided settings. If
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
@@ -1707,7 +1791,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "currencyUSD"
+ "unit": "currencyUSD",
+ "unitScale": true
},
"overrides": []
},
@@ -1730,15 +1815,19 @@ Grafana will attempt to connect to the database using the provided settings. If
},
"showHeader": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": "SELECT \"time\", applicationName, model, prompt, response, usageCost FROM DOKU_LLM_DATA WHERE $__timeFilter(time)",
"refId": "A",
@@ -1811,9 +1900,9 @@ Grafana will attempt to connect to the database using the provided settings. If
"list": [
{
"current": {
- "selected": true,
- "text": "grafana-postgresql-datasource",
- "value": "dbd38750-cf8a-4f35-a031-af943c441f1d"
+ "selected": false,
+ "text": "grafana-clickhouse-datasource",
+ "value": "ef07bf93-52b4-4c5d-adda-8a498d388510"
},
"hide": 0,
"includeAll": false,
@@ -1821,7 +1910,7 @@ Grafana will attempt to connect to the database using the provided settings. If
"multi": false,
"name": "datasource",
"options": [],
- "query": "grafana-postgresql-datasource",
+ "query": "grafana-clickhouse-datasource",
"queryValue": "",
"refresh": 1,
"regex": "",
@@ -1838,7 +1927,7 @@ Grafana will attempt to connect to the database using the provided settings. If
"timezone": "",
"title": "Doku - LLM Monitoring",
"uid": "doku-llm-monitoring",
- "version": 1,
+ "version": 3,
"weekStart": ""
}
```
diff --git a/docs/0.1/connections/intro.mdx b/docs/0.1/connections/intro.mdx
new file mode 100644
index 00000000..ad56cc77
--- /dev/null
+++ b/docs/0.1/connections/intro.mdx
@@ -0,0 +1,34 @@
+---
+title: 'Connect to your existing Observablity Platform'
+description: 'Send LLM Monitoring data to your Observablity Platform'
+sidebarTitle: 'Introduction'
+---
+Doku enhances observability by seamlessly exporting processed LLM data to your observability platform. This assists developers in bringing together all application-related data, including LLM usage metrics, on a unified platform, simplifying the visualization and assessment of the entire application ecosystem.
+
+Below is a list of observability platforms that work seamlessly with Doku:
+
+<CardGroup cols={2}>
+ <Card title="Grafana OSS" href="/0.1/connections/grafanaoss" icon={<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Grafana</title><path d="M23.02 10.59a8.578 8.578 0 0 0-.862-3.034 8.911 8.911 0 0 0-1.789-2.445c.337-1.342-.413-2.505-.413-2.505-1.292-.08-2.113.4-2.416.62-.052-.02-.102-.044-.154-.064-.22-.089-.446-.172-.677-.247-.231-.073-.47-.14-.711-.197a9.867 9.867 0 0 0-.875-.161C14.557.753 12.94 0 12.94 0c-1.804 1.145-2.147 2.744-2.147 2.744l-.018.093c-.098.029-.2.057-.298.088-.138.042-.275.094-.413.143-.138.055-.275.107-.41.166a8.869 8.869 0 0 0-1.557.87l-.063-.029c-2.497-.955-4.716.195-4.716.195-.203 2.658.996 4.33 1.235 4.636a11.608 11.608 0 0 0-.607 2.635C1.636 12.677.953 15.014.953 15.014c1.926 2.214 4.171 2.351 4.171 2.351.003-.002.006-.002.006-.005.285.509.615.994.986 1.446.156.19.32.371.488.548-.704 2.009.099 3.68.099 3.68 2.144.08 3.553-.937 3.849-1.173a9.784 9.784 0 0 0 3.164.501h.08l.055-.003.107-.002.103-.005.003.002c1.01 1.44 2.788 1.646 2.788 1.646 1.264-1.332 1.337-2.653 1.337-2.94v-.058c0-.02-.003-.039-.003-.06.265-.187.52-.387.758-.6a7.875 7.875 0 0 0 1.415-1.7c1.43.083 2.437-.885 2.437-.885-.236-1.49-1.085-2.216-1.264-2.354l-.018-.013-.016-.013a.217.217 0 0 1-.031-.02c.008-.092.016-.18.02-.27.011-.162.016-.323.016-.48v-.253l-.005-.098-.008-.135a1.891 1.891 0 0 0-.01-.13c-.003-.042-.008-.083-.013-.125l-.016-.124-.018-.122a6.215 6.215 0 0 0-2.032-3.73 6.015 6.015 0 0 0-3.222-1.46 6.292 6.292 0 0 0-.85-.048l-.107.002h-.063l-.044.003-.104.008a4.777 4.777 0 0 0-3.335 1.695c-.332.4-.592.84-.768 1.297a4.594 4.594 0 0 0-.312 1.817l.003.091c.005.055.007.11.013.164a3.615 3.615 0 0 0 .698 1.82 3.53 3.53 0 0 0 1.827 1.282c.33.098.66.14.971.137.039 0 .078 0 .114-.002l.063-.003c.02 0 .041-.003.062-.003.034-.002.065-.007.099-.01.007 0 .018-.003.028-.003l.031-.005.06-.008a1.18 1.18 0 0 0 .112-.02c.036-.008.072-.013.109-.024a2.634 2.634 0 0 0 .914-.415c.028-.02.056-.041.085-.065a.248.248 0 0 0 .039-.35.244.244 0 0 0-.309-.06l-.078.042c-.09.044-.184.083-.283.116a2.476 2.476 0 0 1-.475.096c-.028.003-.054.006-.083.006l-.083.002c-.026 0-.054 0-.08-.002l-.102-.006h-.012l-.024.006c-.016-.003-.031-.003-.044-.006-.031-.002-.06-.007-.091-.01a2.59 2.59 0 0 1-.724-.213 2.557 2.557 0 0 1-.667-.438 2.52 2.52 0 0 1-.805-1.475 2.306 2.306 0 0 1-.029-.444l.006-.122v-.023l.002-.031c.003-.021.003-.04.005-.06a3.163 3.163 0 0 1 1.352-2.29 3.12 3.12 0 0 1 .937-.43 2.946 2.946 0 0 1 .776-.101h.06l.07.002.045.003h.026l.07.005a4.041 4.041 0 0 1 1.635.49 3.94 3.94 0 0 1 1.602 1.662 3.77 3.77 0 0 1 .397 1.414l.005.076.003.075c.002.026.002.05.002.075 0 .024.003.052 0 .07v.065l-.002.073-.008.174a6.195 6.195 0 0 1-.08.639 5.1 5.1 0 0 1-.267.927 5.31 5.31 0 0 1-.624 1.13 5.052 5.052 0 0 1-3.237 2.014 4.82 4.82 0 0 1-.649.066l-.039.003h-.287a6.607 6.607 0 0 1-1.716-.265 6.776 6.776 0 0 1-3.4-2.274 6.75 6.75 0 0 1-.746-1.15 6.616 6.616 0 0 1-.714-2.596l-.005-.083-.002-.02v-.056l-.003-.073v-.096l-.003-.104v-.07l.003-.163c.008-.22.026-.45.054-.678a8.707 8.707 0 0 1 .28-1.355c.128-.444.286-.872.473-1.277a7.04 7.04 0 0 1 1.456-2.1 5.925 5.925 0 0 1 .953-.763c.169-.111.343-.213.524-.306.089-.05.182-.091.273-.135.047-.02.093-.042.138-.062a7.177 7.177 0 0 1 .714-.267l.145-.045c.049-.015.098-.026.148-.041.098-.029.197-.052.296-.076.049-.013.1-.02.15-.033l.15-.032.151-.028.076-.013.075-.01.153-.024c.057-.01.114-.013.171-.023l.169-.021c.036-.003.073-.008.106-.01l.073-.008.036-.003.042-.002c.057-.003.114-.008.171-.01l.086-.006h.023l.037-.003.145-.007a7.999 7.999 0 0 1 1.708.125 7.917 7.917 0 0 1 2.048.68 8.253 8.253 0 0 1 1.672 1.09l.09.077.089.078c.06.052.114.107.171.159.057.052.112.106.166.16.052.055.107.107.159.164a8.671 8.671 0 0 1 1.41 1.978c.012.026.028.052.04.078l.04.078.075.156c.023.051.05.1.07.153l.065.15a8.848 8.848 0 0 1 .45 1.34.19.19 0 0 0 .201.142.186.186 0 0 0 .172-.184c.01-.246.002-.532-.024-.856z"/></svg>}>
+ </Card>
+ <Card title="Grafana Cloud" href="/0.1/connections/grafanacloud" icon={<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Grafana</title><path d="M23.02 10.59a8.578 8.578 0 0 0-.862-3.034 8.911 8.911 0 0 0-1.789-2.445c.337-1.342-.413-2.505-.413-2.505-1.292-.08-2.113.4-2.416.62-.052-.02-.102-.044-.154-.064-.22-.089-.446-.172-.677-.247-.231-.073-.47-.14-.711-.197a9.867 9.867 0 0 0-.875-.161C14.557.753 12.94 0 12.94 0c-1.804 1.145-2.147 2.744-2.147 2.744l-.018.093c-.098.029-.2.057-.298.088-.138.042-.275.094-.413.143-.138.055-.275.107-.41.166a8.869 8.869 0 0 0-1.557.87l-.063-.029c-2.497-.955-4.716.195-4.716.195-.203 2.658.996 4.33 1.235 4.636a11.608 11.608 0 0 0-.607 2.635C1.636 12.677.953 15.014.953 15.014c1.926 2.214 4.171 2.351 4.171 2.351.003-.002.006-.002.006-.005.285.509.615.994.986 1.446.156.19.32.371.488.548-.704 2.009.099 3.68.099 3.68 2.144.08 3.553-.937 3.849-1.173a9.784 9.784 0 0 0 3.164.501h.08l.055-.003.107-.002.103-.005.003.002c1.01 1.44 2.788 1.646 2.788 1.646 1.264-1.332 1.337-2.653 1.337-2.94v-.058c0-.02-.003-.039-.003-.06.265-.187.52-.387.758-.6a7.875 7.875 0 0 0 1.415-1.7c1.43.083 2.437-.885 2.437-.885-.236-1.49-1.085-2.216-1.264-2.354l-.018-.013-.016-.013a.217.217 0 0 1-.031-.02c.008-.092.016-.18.02-.27.011-.162.016-.323.016-.48v-.253l-.005-.098-.008-.135a1.891 1.891 0 0 0-.01-.13c-.003-.042-.008-.083-.013-.125l-.016-.124-.018-.122a6.215 6.215 0 0 0-2.032-3.73 6.015 6.015 0 0 0-3.222-1.46 6.292 6.292 0 0 0-.85-.048l-.107.002h-.063l-.044.003-.104.008a4.777 4.777 0 0 0-3.335 1.695c-.332.4-.592.84-.768 1.297a4.594 4.594 0 0 0-.312 1.817l.003.091c.005.055.007.11.013.164a3.615 3.615 0 0 0 .698 1.82 3.53 3.53 0 0 0 1.827 1.282c.33.098.66.14.971.137.039 0 .078 0 .114-.002l.063-.003c.02 0 .041-.003.062-.003.034-.002.065-.007.099-.01.007 0 .018-.003.028-.003l.031-.005.06-.008a1.18 1.18 0 0 0 .112-.02c.036-.008.072-.013.109-.024a2.634 2.634 0 0 0 .914-.415c.028-.02.056-.041.085-.065a.248.248 0 0 0 .039-.35.244.244 0 0 0-.309-.06l-.078.042c-.09.044-.184.083-.283.116a2.476 2.476 0 0 1-.475.096c-.028.003-.054.006-.083.006l-.083.002c-.026 0-.054 0-.08-.002l-.102-.006h-.012l-.024.006c-.016-.003-.031-.003-.044-.006-.031-.002-.06-.007-.091-.01a2.59 2.59 0 0 1-.724-.213 2.557 2.557 0 0 1-.667-.438 2.52 2.52 0 0 1-.805-1.475 2.306 2.306 0 0 1-.029-.444l.006-.122v-.023l.002-.031c.003-.021.003-.04.005-.06a3.163 3.163 0 0 1 1.352-2.29 3.12 3.12 0 0 1 .937-.43 2.946 2.946 0 0 1 .776-.101h.06l.07.002.045.003h.026l.07.005a4.041 4.041 0 0 1 1.635.49 3.94 3.94 0 0 1 1.602 1.662 3.77 3.77 0 0 1 .397 1.414l.005.076.003.075c.002.026.002.05.002.075 0 .024.003.052 0 .07v.065l-.002.073-.008.174a6.195 6.195 0 0 1-.08.639 5.1 5.1 0 0 1-.267.927 5.31 5.31 0 0 1-.624 1.13 5.052 5.052 0 0 1-3.237 2.014 4.82 4.82 0 0 1-.649.066l-.039.003h-.287a6.607 6.607 0 0 1-1.716-.265 6.776 6.776 0 0 1-3.4-2.274 6.75 6.75 0 0 1-.746-1.15 6.616 6.616 0 0 1-.714-2.596l-.005-.083-.002-.02v-.056l-.003-.073v-.096l-.003-.104v-.07l.003-.163c.008-.22.026-.45.054-.678a8.707 8.707 0 0 1 .28-1.355c.128-.444.286-.872.473-1.277a7.04 7.04 0 0 1 1.456-2.1 5.925 5.925 0 0 1 .953-.763c.169-.111.343-.213.524-.306.089-.05.182-.091.273-.135.047-.02.093-.042.138-.062a7.177 7.177 0 0 1 .714-.267l.145-.045c.049-.015.098-.026.148-.041.098-.029.197-.052.296-.076.049-.013.1-.02.15-.033l.15-.032.151-.028.076-.013.075-.01.153-.024c.057-.01.114-.013.171-.023l.169-.021c.036-.003.073-.008.106-.01l.073-.008.036-.003.042-.002c.057-.003.114-.008.171-.01l.086-.006h.023l.037-.003.145-.007a7.999 7.999 0 0 1 1.708.125 7.917 7.917 0 0 1 2.048.68 8.253 8.253 0 0 1 1.672 1.09l.09.077.089.078c.06.052.114.107.171.159.057.052.112.106.166.16.052.055.107.107.159.164a8.671 8.671 0 0 1 1.41 1.978c.012.026.028.052.04.078l.04.078.075.156c.023.051.05.1.07.153l.065.15a8.848 8.848 0 0 1 .45 1.34.19.19 0 0 0 .201.142.186.186 0 0 0 .172-.184c.01-.246.002-.532-.024-.856z"/></svg>}>
+ </Card>
+ <Card title="DataDog" href="/0.1/connections/datadog" icon={<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Datadog</title><path d="M19.57 17.04l-1.997-1.316-1.665 2.782-1.937-.567-1.706 2.604.087.82 9.274-1.71-.538-5.794zm-8.649-2.498l1.488-.204c.241.108.409.15.697.223.45.117.97.23 1.741-.16.18-.088.553-.43.704-.625l6.096-1.106.622 7.527-10.444 1.882zm11.325-2.712l-.602.115L20.488 0 .789 2.285l2.427 19.693 2.306-.334c-.184-.263-.471-.581-.96-.989-.68-.564-.44-1.522-.039-2.127.53-1.022 3.26-2.322 3.106-3.956-.056-.594-.15-1.368-.702-1.898-.02.22.017.432.017.432s-.227-.289-.34-.683c-.112-.15-.2-.199-.319-.4-.085.233-.073.503-.073.503s-.186-.437-.216-.807c-.11.166-.137.48-.137.48s-.241-.69-.186-1.062c-.11-.323-.436-.965-.343-2.424.6.421 1.924.321 2.44-.439.171-.251.288-.939-.086-2.293-.24-.868-.835-2.16-1.066-2.651l-.028.02c.122.395.374 1.223.47 1.625.293 1.218.372 1.642.234 2.204-.116.488-.397.808-1.107 1.165-.71.358-1.653-.514-1.713-.562-.69-.55-1.224-1.447-1.284-1.883-.062-.477.275-.763.445-1.153-.243.07-.514.192-.514.192s.323-.334.722-.624c.165-.109.262-.178.436-.323a9.762 9.762 0 0 0-.456.003s.42-.227.855-.392c-.318-.014-.623-.003-.623-.003s.937-.419 1.678-.727c.509-.208 1.006-.147 1.286.257.367.53.752.817 1.569.996.501-.223.653-.337 1.284-.509.554-.61.99-.688.99-.688s-.216.198-.274.51c.314-.249.66-.455.66-.455s-.134.164-.259.426l.03.043c.366-.22.797-.394.797-.394s-.123.156-.268.358c.277-.002.838.012 1.056.037 1.285.028 1.552-1.374 2.045-1.55.618-.22.894-.353 1.947.68.903.888 1.609 2.477 1.259 2.833-.294.295-.874-.115-1.516-.916a3.466 3.466 0 0 1-.716-1.562 1.533 1.533 0 0 0-.497-.85s.23.51.23.96c0 .246.03 1.165.424 1.68-.039.076-.057.374-.1.43-.458-.554-1.443-.95-1.604-1.067.544.445 1.793 1.468 2.273 2.449.453.927.186 1.777.416 1.997.065.063.976 1.197 1.15 1.767.306.994.019 2.038-.381 2.685l-1.117.174c-.163-.045-.273-.068-.42-.153.08-.143.241-.5.243-.572l-.063-.111c-.348.492-.93.97-1.414 1.245-.633.359-1.363.304-1.838.156-1.348-.415-2.623-1.327-2.93-1.566 0 0-.01.191.048.234.34.383 1.119 1.077 1.872 1.56l-1.605.177.759 5.908c-.337.048-.39.071-.757.124-.325-1.147-.946-1.895-1.624-2.332-.599-.384-1.424-.47-2.214-.314l-.05.059a2.851 2.851 0 0 1 1.863.444c.654.413 1.181 1.481 1.375 2.124.248.822.42 1.7-.248 2.632-.476.662-1.864 1.028-2.986.237.3.481.705.876 1.25.95.809.11 1.577-.03 2.106-.574.452-.464.69-1.434.628-2.456l.714-.104.258 1.834 11.827-1.424zM15.05 6.848c-.034.075-.085.125-.007.37l.004.014.013.032.032.073c.14.287.295.558.552.696.067-.011.136-.019.207-.023.242-.01.395.028.492.08.009-.048.01-.119.005-.222-.018-.364.072-.982-.626-1.308-.264-.122-.634-.084-.757.068a.302.302 0 0 1 .058.013c.186.066.06.13.027.207m1.958 3.392c-.092-.05-.52-.03-.821.005-.574.068-1.193.267-1.328.372-.247.191-.135.523.047.66.511.382.96.638 1.432.575.29-.038.546-.497.728-.914.124-.288.124-.598-.058-.698m-5.077-2.942c.162-.154-.805-.355-1.556.156-.554.378-.571 1.187-.041 1.646.053.046.096.078.137.104a4.77 4.77 0 0 1 1.396-.412c.113-.125.243-.345.21-.745-.044-.542-.455-.456-.146-.749"/></svg>}>
+ </Card>
+ <Card title="New Relic" href="/0.1/connections/new-relic" icon={<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>New Relic</title><path d="M8.0015 14.3091v7.384L12.0008 24V12.0008L1.6078 5.9996v4.6167ZM12.0008 0 2.8232 5.2976 6.8209 7.606l5.1799-2.9893 6.3936 3.6913v7.384l-5.1783 2.9908v4.6167l9.176-5.2991V5.9996Z"/></svg>}>
+ </Card>
+ <Card title="SigNoz" href="/0.1/connections/signoz" icon={<svg role="img" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><title>SigNoz</title><path opacity="0.1" d="M100.279 199.833C44.5682 199.833 0 156.12 0 101.479C0 47.3844 44.5682 3.125 100.279 3.125H163.231C183.844 3.125 200 19.5174 200 39.1882V101.479C200 156.12 155.432 199.833 100.279 199.833Z"/><path d="M99.4919 58.9008C57.8802 58.9008 34.4413 93.3585 33.4637 94.8253C31.0537 98.4385 31.0537 103.111 33.4655 106.727C34.4413 108.191 57.8802 142.649 99.4919 142.649C141.103 142.649 164.543 108.191 165.52 106.724C167.93 103.111 167.93 98.4385 165.518 94.8227C164.542 93.3585 141.103 58.9008 99.4919 58.9008ZM39.2234 102.886C38.3677 101.604 38.3677 99.9463 39.2234 98.6633C40.0095 97.4834 56.6976 72.9705 86.5341 67.0904C73.0136 72.3095 63.393 85.4356 63.393 100.775C63.393 116.114 73.0136 129.24 86.5341 134.459C56.6976 128.579 40.0095 104.066 39.2234 102.886ZM82.8568 100.775C82.8568 102.686 81.3074 104.235 79.396 104.235C77.4845 104.235 75.9352 102.686 75.9352 100.775C75.9352 87.7858 86.5024 77.2185 99.4916 77.2185C101.403 77.2185 102.952 78.7676 102.952 80.6792C102.952 82.5908 101.403 84.1398 99.4916 84.1398C90.3189 84.1398 82.8568 91.6019 82.8568 100.775ZM99.4919 109.188C94.8525 109.188 91.0783 105.414 91.0783 100.775C91.0783 96.1356 94.8525 92.3612 99.4919 92.3612C104.132 92.3612 107.906 96.1354 107.906 100.775C107.906 105.414 104.132 109.188 99.4919 109.188ZM159.76 102.886C158.974 104.066 142.286 128.579 112.45 134.459C125.971 129.24 135.591 116.114 135.591 100.775C135.591 85.4358 125.971 72.3096 112.45 67.0905C142.286 72.971 158.974 97.4837 159.76 98.6634C160.616 99.9463 160.616 101.604 159.76 102.886Z"/></svg>}>
+ </Card>
+ <Card title="Dynatrace" href="/0.1/connections/dynatrace" icon={<svg viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg"><title>Dynatrace icon</title><path d="M9.373 0c-.31.006-.93.09-1.521.654C6.98 1.478 2.628 5.61.88 7.27.09 8.024.16 8.865.16 8.934v.377c.067-.292.187-.499.427-.825.496-.616 1.3-.788 1.627-.822a64.233 64.233 0 0 1 .002 0 64.233 64.233 0 0 1 6.527-.549c4.335-.137 7.197.225 7.197.225l6.084-5.793s-3.188-.6-6.82-1.027A93.394 93.394 0 0 0 9.566.006c-.021 0-.09-.008-.193-.006zm13.56 2.508l-6.066 5.79s.222 2.88-.137 7.198c-.189 2.45-.584 4.866-.875 6.494-.052.326-.256 1.114-.925 1.594-.29.198-.491.295-.748.363 1.546-.51 1.091-7.047 1.091-7.047-4.335.137-7.214-.222-7.214-.222L1.975 22.47s3.222.634 6.855 1.045c2.056.24 4.833.429 5.227.463.023 0 .045-.007.068-.012-.013.003-.022.009-.035.012.138 0 .259.015.379.015.085 0 .925.105 1.713-.648 1.748-1.663 6.083-5.81 6.94-6.633.788-.754.72-1.594.72-1.68a81.84 81.84 0 0 0-.207-5.654c-.24-3.65-.701-6.871-.701-6.871zM3.856 8.305C2.125 8.307.348 8.513.16 9.326c.017 1.216.05 3.137.205 5.28.24 3.65.703 6.886.703 6.886l6.082-5.79c-.017.017-.239-2.88.121-7.198H7.27s-1.684-.202-3.415-.2z"/></svg>}>
+ </Card>
+</CardGroup>
+
+---
+
+<CardGroup cols={2}>
+<Card title="Integrations" href="/0.1/integrations/introduction" icon='circle-nodes'>
+Integrate your LLM Provider with Doku
+</Card>
+<Card title="API Refernce" href="/0.1/api-reference/introduction" icon='code'>
+OpenAPI specification for API Endpoints in Doku
+</Card>
+</CardGroup>
\ No newline at end of file
diff --git a/docs/0.0.7/connections/new-relic.mdx b/docs/0.1/connections/new-relic.mdx
similarity index 99%
rename from docs/0.0.7/connections/new-relic.mdx
rename to docs/0.1/connections/new-relic.mdx
index d875856a..f453d014 100644
--- a/docs/0.0.7/connections/new-relic.mdx
+++ b/docs/0.1/connections/new-relic.mdx
@@ -11,7 +11,7 @@ description: 'Connect Doku to New Relic'
Doku can automatically send LLM usage data from Doku to New Relic using the [Report Metrics HTTP API](https://docs.newrelic.com/docs/data-apis/ingest-apis/metric-api/report-metrics-metric-api/) and [Send Logs API](https://docs.newrelic.com/docs/logs/log-api/introduction-log-api/)
-Make the following curl request to Doku to add a connection for New Relic. See more on the [Connections API](/0.0.7/api-reference/endpoint/connections/create)
+Make the following curl request to Doku to add a connection for New Relic. See more on the [Connections API](/0.1/api-reference/endpoint/connections/create)
```shell
curl --request POST \
diff --git a/docs/0.0.7/connections/signoz.mdx b/docs/0.1/connections/signoz.mdx
similarity index 99%
rename from docs/0.0.7/connections/signoz.mdx
rename to docs/0.1/connections/signoz.mdx
index 07619edb..6967ea47 100644
--- a/docs/0.0.7/connections/signoz.mdx
+++ b/docs/0.1/connections/signoz.mdx
@@ -10,7 +10,7 @@ description: 'Connect Doku to SigNoz'
Doku can automatically send LLM usage data from Doku to SigNoz using the [HTTP Logs API](https://signoz.io/docs/userguide/send-logs-http/)
-Make the following curl request to Doku to add a connection for SigNoz. See more on the [Connections API](/0.0.7/api-reference/endpoint/connections/create)
+Make the following curl request to Doku to add a connection for SigNoz. See more on the [Connections API](/0.1/api-reference/endpoint/connections/create)
```shell
curl --request POST \
diff --git a/docs/0.0.7/installation.mdx b/docs/0.1/installation.mdx
similarity index 94%
rename from docs/0.0.7/installation.mdx
rename to docs/0.1/installation.mdx
index 439dea0f..35709ba7 100644
--- a/docs/0.0.7/installation.mdx
+++ b/docs/0.1/installation.mdx
@@ -12,14 +12,14 @@ Doku flexibly adapts to your preferred environment. Select a deployment method t
icon={<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<title>Kubernetes</title>
<path fill="#FFA500" d="M10.204 14.35l.007.01-.999 2.413a5.171 5.171 0 0 1-2.075-2.597l2.578-.437.004.005a.44.44 0 0 1 .484.606zm-.833-2.129a.44.44 0 0 0 .173-.756l.002-.011L7.585 9.7a5.143 5.143 0 0 0-.73 3.255l2.514-.725.002-.009zm1.145-1.98a.44.44 0 0 0 .699-.337l.01-.005.15-2.62a5.144 5.144 0 0 0-3.01 1.442l2.147 1.523.004-.002zm.76 2.75l.723.349.722-.347.18-.78-.5-.623h-.804l-.5.623.179.779zm1.5-3.095a.44.44 0 0 0 .7.336l.008.003 2.134-1.513a5.188 5.188 0 0 0-2.992-1.442l.148 2.615.002.001zm10.876 5.97l-5.773 7.181a1.6 1.6 0 0 1-1.248.594l-9.261.003a1.6 1.6 0 0 1-1.247-.596l-5.776-7.18a1.583 1.583 0 0 1-.307-1.34L2.1 5.573c.108-.47.425-.864.863-1.073L11.305.513a1.606 1.606 0 0 1 1.385 0l8.345 3.985c.438.209.755.604.863 1.073l2.062 8.955c.108.47-.005.963-.308 1.34zm-3.289-2.057c-.042-.01-.103-.026-.145-.034-.174-.033-.315-.025-.479-.038-.35-.037-.638-.067-.895-.148-.105-.04-.18-.165-.216-.216l-.201-.059a6.45 6.45 0 0 0-.105-2.332 6.465 6.465 0 0 0-.936-2.163c.052-.047.15-.133.177-.159.008-.09.001-.183.094-.282.197-.185.444-.338.743-.522.142-.084.273-.137.415-.242.032-.024.076-.062.11-.089.24-.191.295-.52.123-.736-.172-.216-.506-.236-.745-.045-.034.027-.08.062-.111.088-.134.116-.217.23-.33.35-.246.25-.45.458-.673.609-.097.056-.239.037-.303.033l-.19.135a6.545 6.545 0 0 0-4.146-2.003l-.012-.223c-.065-.062-.143-.115-.163-.25-.022-.268.015-.557.057-.905.023-.163.061-.298.068-.475.001-.04-.001-.099-.001-.142 0-.306-.224-.555-.5-.555-.275 0-.499.249-.499.555l.001.014c0 .041-.002.092 0 .128.006.177.044.312.067.475.042.348.078.637.056.906a.545.545 0 0 1-.162.258l-.012.211a6.424 6.424 0 0 0-4.166 2.003 8.373 8.373 0 0 1-.18-.128c-.09.012-.18.04-.297-.029-.223-.15-.427-.358-.673-.608-.113-.12-.195-.234-.329-.349-.03-.026-.077-.062-.111-.088a.594.594 0 0 0-.348-.132.481.481 0 0 0-.398.176c-.172.216-.117.546.123.737l.007.005.104.083c.142.105.272.159.414.242.299.185.546.338.743.522.076.082.09.226.1.288l.16.143a6.462 6.462 0 0 0-1.02 4.506l-.208.06c-.055.072-.133.184-.215.217-.257.081-.546.11-.895.147-.164.014-.305.006-.48.039-.037.007-.09.02-.133.03l-.004.002-.007.002c-.295.071-.484.342-.423.608.061.267.349.429.645.365l.007-.001.01-.003.129-.029c.17-.046.294-.113.448-.172.33-.118.604-.217.87-.256.112-.009.23.069.288.101l.217-.037a6.5 6.5 0 0 0 2.88 3.596l-.09.218c.033.084.069.199.044.282-.097.252-.263.517-.452.813-.091.136-.185.242-.268.399-.02.037-.045.095-.064.134-.128.275-.034.591.213.71.248.12.556-.007.69-.282v-.002c.02-.039.046-.09.062-.127.07-.162.094-.301.144-.458.132-.332.205-.68.387-.897.05-.06.13-.082.215-.105l.113-.205a6.453 6.453 0 0 0 4.609.012l.106.192c.086.028.18.042.256.155.136.232.229.507.342.84.05.156.074.295.145.457.016.037.043.09.062.129.133.276.442.402.69.282.247-.118.341-.435.213-.71-.02-.039-.045-.096-.065-.134-.083-.156-.177-.261-.268-.398-.19-.296-.346-.541-.443-.793-.04-.13.007-.21.038-.294-.018-.022-.059-.144-.083-.202a6.499 6.499 0 0 0 2.88-3.622c.064.01.176.03.213.038.075-.05.144-.114.28-.104.266.039.54.138.87.256.154.06.277.128.448.173.036.01.088.019.13.028l.009.003.007.001c.297.064.584-.098.645-.365.06-.266-.128-.537-.423-.608zM16.4 9.701l-1.95 1.746v.005a.44.44 0 0 0 .173.757l.003.01 2.526.728a5.199 5.199 0 0 0-.108-1.674A5.208 5.208 0 0 0 16.4 9.7zm-4.013 5.325a.437.437 0 0 0-.404-.232.44.44 0 0 0-.372.233h-.002l-1.268 2.292a5.164 5.164 0 0 0 3.326.003l-1.27-2.296h-.01zm1.888-1.293a.44.44 0 0 0-.27.036.44.44 0 0 0-.214.572l-.003.004 1.01 2.438a5.15 5.15 0 0 0 2.081-2.615l-2.6-.44-.004.005z"/></svg>}
- href="/0.0.7/installation#kubernetes"
+ href="/0.1/installation#kubernetes"
>
Deploy Doku on a Kubernetes for scalable LLM Monitoring capabilities.
</Card>
<Card
title="Docker"
icon="docker"
- href="/0.0.7/installation#docker"
+ href="/0.1/installation#docker"
>
Deploy Doku using Docker for an easy-to-manage LLM Monitoring setup.
</Card>
@@ -37,7 +37,7 @@ Deploy Doku on your Kubernetes cluster using the [Doku Helm chart](https://githu
</Step>
<Step title="Installing the Helm Chart">
```shell shell
- helm install doku dokulabs/doku
+ helm install doku dokulabs/doku --version="0.1.0"
```
</Step>
</Steps>
@@ -65,7 +65,7 @@ For a quick and straightforward setup, Docker Compose can be used to deploy Doku
restart: always
doku-ingester:
- image: ghcr.io/dokulabs/doku-ingester:0.0.7
+ image: ghcr.io/dokulabs/doku-ingester:0.1.0
container_name: doku-ingester
environment:
DOKU_DB_HOST: clickhouse
@@ -80,7 +80,7 @@ For a quick and straightforward setup, Docker Compose can be used to deploy Doku
restart: always
doku-client:
- image: ghcr.io/dokulabs/doku-client:0.0.7
+ image: ghcr.io/dokulabs/doku-client:0.1.0
container_name: doku-client
environment:
INIT_DB_HOST: clickhouse
@@ -112,10 +112,10 @@ For a quick and straightforward setup, Docker Compose can be used to deploy Doku
---
<CardGroup cols={2}>
-<Card title="Integrations" href="/0.0.7/integrations/introduction" icon='circle-nodes'>
+<Card title="Integrations" href="/0.1/integrations/introduction" icon='circle-nodes'>
Integrate your LLM Provider with Doku
</Card>
-<Card title="Connections" href="/0.0.7/connections/intro" icon='link'>
+<Card title="Connections" href="/0.1/connections/intro" icon='link'>
Connect to your existing Observablity Platform
</Card>
</CardGroup>
\ No newline at end of file
diff --git a/docs/0.0.7/integrations/anthropic/examples/messages.mdx b/docs/0.1/integrations/anthropic/examples/messages.mdx
similarity index 69%
rename from docs/0.0.7/integrations/anthropic/examples/messages.mdx
rename to docs/0.1/integrations/anthropic/examples/messages.mdx
index 2e6da911..780cc26f 100644
--- a/docs/0.0.7/integrations/anthropic/examples/messages.mdx
+++ b/docs/0.1/integrations/anthropic/examples/messages.mdx
@@ -18,8 +18,8 @@ description: 'Monitor Anthropic Messages API Usage'
api_key="YOUR_ANTHROPIC_API_KEY",
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all Anthropic calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all Anthropic calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
message = client.messages.create(
max_tokens=1024,
@@ -42,8 +42,8 @@ description: 'Monitor Anthropic Messages API Usage'
api_key="YOUR_ANTHROPIC_API_KEY",
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all Anthropic calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all Anthropic calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
stream = client.messages.create(
max_tokens=1024,
@@ -73,8 +73,8 @@ description: 'Monitor Anthropic Messages API Usage'
api_key="YOUR_ANTHROPIC_API_KEY",
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all Anthropic calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all Anthropic calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
async def main() -> None:
@@ -102,8 +102,8 @@ description: 'Monitor Anthropic Messages API Usage'
api_key="YOUR_ANTHROPIC_API_KEY",
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all Anthropic calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all Anthropic calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
async def main():
stream = client.messages.create(
@@ -134,8 +134,8 @@ description: 'Monitor Anthropic Messages API Usage'
apiKey: 'my_api_key', // defaults to process.env["ANTHROPIC_API_KEY"]
});
- // Pass the above `anthropic` object along with your DOKU URL and API key and this will make sure that all Anthropic calls are automatically tracked.
- DokuMetry.init({llm: anthropic, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `anthropic` object along with your Doku Ingester URL and API key and this will make sure that all Anthropic calls are automatically tracked.
+ DokuMetry.init({llm: anthropic, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const message = await anthropic.messages.create({
@@ -158,8 +158,8 @@ description: 'Monitor Anthropic Messages API Usage'
apiKey: 'my_api_key', // defaults to process.env["ANTHROPIC_API_KEY"]
});
- // Pass the above `anthropic` object along with your DOKU URL and API key and this will make sure that all Anthropic calls are automatically tracked.
- DokuMetry.init({llm: anthropic, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `anthropic` object along with your Doku Ingester URL and API key and this will make sure that all Anthropic calls are automatically tracked.
+ DokuMetry.init({llm: anthropic, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const stream = await anthropic.messages.create({
max_tokens: 1024,
diff --git a/docs/0.0.7/integrations/anthropic/introduction.mdx b/docs/0.1/integrations/anthropic/introduction.mdx
similarity index 84%
rename from docs/0.0.7/integrations/anthropic/introduction.mdx
rename to docs/0.1/integrations/anthropic/introduction.mdx
index 7259e1ad..4bebbf29 100644
--- a/docs/0.0.7/integrations/anthropic/introduction.mdx
+++ b/docs/0.1/integrations/anthropic/introduction.mdx
@@ -7,12 +7,12 @@ DokuMetry SDKs (`dokumetry`) empowers you to effortlessly track and monitor Anth
## Get Started
-The integration is compatible with Anthropic Python SDK version >=0.19.0 and Typescript SDK version >=0.9.0
+The integration is compatible with Anthropic Python SDK version `>=0.19.0` and Typescript SDK version `>=0.9.0`
<Tabs>
<Tab title="Python">
```shell
- pip install dokumetry
+ pip install dokumetry==0.1.0
```
```python
@@ -23,12 +23,12 @@ The integration is compatible with Anthropic Python SDK version >=0.19.0 and Typ
api_key="anthropic_api_key",
)
- dokumetry.init(llm = anthropic, doku_url = "YOUR_DOKU_URL", api_key = "YOUR_DOKU_TOKEN")
+ dokumetry.init(llm = anthropic, doku_url = "YOUR_DOKU_INGESTER_URL", api_key = "YOUR_DOKU_TOKEN")
```
</Tab>
<Tab title="Javascript">
```shell
- npm install dokumetry
+ npm install [email protected]
```
```javascript
@@ -39,7 +39,7 @@ The integration is compatible with Anthropic Python SDK version >=0.19.0 and Typ
apiKey: 'anthropic_api_key',
});
- DokuMetry.init({llm: anthropic, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ DokuMetry.init({llm: anthropic, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
```
</Tab>
</Tabs>
@@ -48,7 +48,7 @@ The integration is compatible with Anthropic Python SDK version >=0.19.0 and Typ
The following Anthropic Endpoints are supported for monitoring with DokuMetry
-- [messages](/0.0.7/integrations/anthropic/examples/messages)
+- [messages](/0.1/integrations/anthropic/examples/messages)
## Parameters
<Tabs>
@@ -82,10 +82,10 @@ To filter your LLM Usage according application or the environment, set the Appli
---
<CardGroup cols={2}>
-<Card title="Connections" href="/0.0.7/connections/intro" icon='link'>
+<Card title="Connections" href="/0.1/connections/intro" icon='link'>
Connect to your existing Observablity Platform
</Card>
-<Card title="API Refernce" href="/0.0.7/api-reference/introduction" icon='code'>
+<Card title="API Refernce" href="/0.1/api-reference/introduction" icon='code'>
OpenAPI specification for API Endpoints in Doku
</Card>
</CardGroup>
\ No newline at end of file
diff --git a/docs/0.0.7/integrations/cohere/examples/chat.mdx b/docs/0.1/integrations/cohere/examples/chat.mdx
similarity index 75%
rename from docs/0.0.7/integrations/cohere/examples/chat.mdx
rename to docs/0.1/integrations/cohere/examples/chat.mdx
index 9ab82220..0b9781d5 100644
--- a/docs/0.0.7/integrations/cohere/examples/chat.mdx
+++ b/docs/0.1/integrations/cohere/examples/chat.mdx
@@ -13,8 +13,8 @@ description: 'Monitor Cohere Chat API usage'
co = cohere.Client('<<apiKey>>')
- # Pass the above `co` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- dokumetry.init(llm=co, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `co` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ dokumetry.init(llm=co, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
response = co.chat(
chat_history=[
@@ -34,8 +34,8 @@ description: 'Monitor Cohere Chat API usage'
co = cohere.Client('<<apiKey>>')
- # Pass the above `co` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- dokumetry.init(llm=co, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `co` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ dokumetry.init(llm=co, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
response = co.chat(
chat_history=[
@@ -62,8 +62,8 @@ description: 'Monitor Cohere Chat API usage'
});
(async () => {
- // Pass the above `cohere` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `cohere` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const response = await cohere.chat({
message: 'Say this is a test',
@@ -83,8 +83,8 @@ description: 'Monitor Cohere Chat API usage'
});
(async () => {
- // Pass the above `cohere` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `cohere` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const chatStream = await cohere.chatStream({
chatHistory: [
diff --git a/docs/0.0.7/integrations/cohere/examples/embed.mdx b/docs/0.1/integrations/cohere/examples/embed.mdx
similarity index 61%
rename from docs/0.0.7/integrations/cohere/examples/embed.mdx
rename to docs/0.1/integrations/cohere/examples/embed.mdx
index 63857c2a..38cbaea3 100644
--- a/docs/0.0.7/integrations/cohere/examples/embed.mdx
+++ b/docs/0.1/integrations/cohere/examples/embed.mdx
@@ -12,8 +12,8 @@ description: 'Monitor Cohere Embed API usage'
co = cohere.Client('<<apiKey>>')
- # Pass the above `co` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- dokumetry.init(llm=co, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `co` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ dokumetry.init(llm=co, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
response = co.embed(
texts=['hello', 'goodbye'],
@@ -33,8 +33,8 @@ description: 'Monitor Cohere Embed API usage'
});
(async () => {
- // Pass the above `cohere` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `cohere` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const embed = await cohere.embed({
texts: ["hello", "goodbye"],
diff --git a/docs/0.0.7/integrations/cohere/examples/generate.mdx b/docs/0.1/integrations/cohere/examples/generate.mdx
similarity index 59%
rename from docs/0.0.7/integrations/cohere/examples/generate.mdx
rename to docs/0.1/integrations/cohere/examples/generate.mdx
index 87ec795c..f75589ed 100644
--- a/docs/0.0.7/integrations/cohere/examples/generate.mdx
+++ b/docs/0.1/integrations/cohere/examples/generate.mdx
@@ -12,8 +12,8 @@ description: 'Monitor Cohere Generate API usage'
co = cohere.Client('<<apiKey>>')
- # Pass the above `co` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- dokumetry.init(llm=co, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `co` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ dokumetry.init(llm=co, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
response = co.generate(
prompt='Please explain to me how LLMs work',
@@ -31,8 +31,8 @@ description: 'Monitor Cohere Generate API usage'
});
(async () => {
- // Pass the above `cohere` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `cohere` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const generate = await cohere.generate({
prompt: "Please explain to me how LLMs work",
diff --git a/docs/0.0.7/integrations/cohere/examples/summarize.mdx b/docs/0.1/integrations/cohere/examples/summarize.mdx
similarity index 89%
rename from docs/0.0.7/integrations/cohere/examples/summarize.mdx
rename to docs/0.1/integrations/cohere/examples/summarize.mdx
index fcb99ea3..cc5edf3d 100644
--- a/docs/0.0.7/integrations/cohere/examples/summarize.mdx
+++ b/docs/0.1/integrations/cohere/examples/summarize.mdx
@@ -12,8 +12,8 @@ description: 'Monitor Cohere Summarize API usage'
co = cohere.Client('<<apiKey>>')
- # Pass the above `co` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- dokumetry.init(llm=co, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `co` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ dokumetry.init(llm=co, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
text=(
"Ice cream is a sweetened frozen food typically eaten as a snack or dessert. "
@@ -54,8 +54,8 @@ description: 'Monitor Cohere Summarize API usage'
});
(async () => {
- // Pass the above `cohere` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `cohere` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const summarize = await cohere.summarize({
text: "Ice cream is a sweetened frozen food typically eaten as a snack or dessert. "
diff --git a/docs/0.0.7/integrations/cohere/introduction.mdx b/docs/0.1/integrations/cohere/introduction.mdx
similarity index 79%
rename from docs/0.0.7/integrations/cohere/introduction.mdx
rename to docs/0.1/integrations/cohere/introduction.mdx
index 329f05a0..af77858b 100644
--- a/docs/0.0.7/integrations/cohere/introduction.mdx
+++ b/docs/0.1/integrations/cohere/introduction.mdx
@@ -7,12 +7,12 @@ DokuMetry SDKs (`dokumetry`) empowers you to effortlessly track and monitor Cohe
## Get Started
-The integration is compatible with Cohere SDK versions >=4.0.0
+The integration is compatible with Cohere Python SDK version `>=5.0.0` and Typescript SDK version `>=7.6.0`
<Tabs>
<Tab title="Python">
```shell
- pip install dokumetry
+ pip install dokumetry==0.1.0
```
```python
@@ -21,12 +21,12 @@ The integration is compatible with Cohere SDK versions >=4.0.0
co = cohere.Client('YOUR_API_KEY')
- dokumetry.init(llm = co, doku_url = "YOUR_DOKU_URL", api_key = "YOUR_DOKU_TOKEN")
+ dokumetry.init(llm = co, doku_url = "YOUR_DOKU_INGESTER_URL", api_key = "YOUR_DOKU_TOKEN")
```
</Tab>
<Tab title="Javascript">
```shell
- npm install dokumetry
+ npm install [email protected]
```
```javascript
@@ -37,7 +37,7 @@ The integration is compatible with Cohere SDK versions >=4.0.0
token: "<<apiKey>>",
});
- DokuMetry.init({llm: co, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ DokuMetry.init({llm: co, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
```
</Tab>
</Tabs>
@@ -45,10 +45,10 @@ The integration is compatible with Cohere SDK versions >=4.0.0
## Supported Endpoints
The following Cohere Endpoints are supported for monitoring with DokuMetry
-- [Chat](/0.0.7/integrations/cohere/examples/chat)
-- [Generate](/0.0.7/integrations/cohere/examples/generate)
-- [Summarize](/0.0.7/integrations/cohere/examples/summarize)
-- [Embed](/0.0.7/integrations/cohere/examples/embed)
+- [Chat](/0.1/integrations/cohere/examples/chat)
+- [Generate](/0.1/integrations/cohere/examples/generate)
+- [Summarize](/0.1/integrations/cohere/examples/summarize)
+- [Embed](/0.1/integrations/cohere/examples/embed)
## Parameters
@@ -83,10 +83,10 @@ To filter your LLM Usage according application or the environment, set the Appli
---
<CardGroup cols={2}>
-<Card title="Connections" href="/0.0.7/connections/intro" icon='link'>
+<Card title="Connections" href="/0.1/connections/intro" icon='link'>
Connect to your existing Observablity Platform
</Card>
-<Card title="API Refernce" href="/0.0.7/api-reference/introduction" icon='code'>
+<Card title="API Refernce" href="/0.1/api-reference/introduction" icon='code'>
OpenAPI specification for API Endpoints in Doku
</Card>
</CardGroup>
\ No newline at end of file
diff --git a/docs/0.0.7/integrations/introduction.mdx b/docs/0.1/integrations/introduction.mdx
similarity index 90%
rename from docs/0.0.7/integrations/introduction.mdx
rename to docs/0.1/integrations/introduction.mdx
index 2dd3d54a..4ef64d10 100644
--- a/docs/0.0.7/integrations/introduction.mdx
+++ b/docs/0.1/integrations/introduction.mdx
@@ -1,6 +1,7 @@
---
-title: 'Introduction'
-description: 'Integrate and Monitor usage from LLM Providers'
+sidebarTitle: 'Introduction'
+title: 'Monitor your LLM usage'
+description: 'Monitor LLM Costs, Tokens and Performance along with User Interactions'
---
Start integrating and monitoring your applications with Doku effortlessly. Choose from a range of providers to **start tracking LLM performance, usage, and costs** without hassle.
@@ -8,7 +9,7 @@ Start integrating and monitoring your applications with Doku effortlessly. Choos
<CardGroup cols={3}>
<Card
title="OpenAI"
- href="/0.0.7/integrations/openai/introduction"
+ href="/0.1/integrations/openai/introduction"
icon={
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<title>OpenAI</title>
@@ -20,7 +21,7 @@ Start integrating and monitoring your applications with Doku effortlessly. Choos
</Card>
<Card
title="Cohere"
- href="/0.0.7/integrations/cohere/introduction"
+ href="/0.1/integrations/cohere/introduction"
icon={
<svg role="image" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 75 75">
<g>
@@ -45,7 +46,7 @@ Start integrating and monitoring your applications with Doku effortlessly. Choos
</Card>
<Card
title="Anthropic"
- href="/0.0.7/integrations/anthropic/introduction"
+ href="/0.1/integrations/anthropic/introduction"
icon={
<svg viewBox="0 0 256 176" xmlns="http://www.w3.org/2000/svg">
<path d="M147.486878,0 C147.486878,0 217.568251,175.780074 217.568251,175.780074 C217.568251,175.780074 256,175.780074 256,175.780074 C256,175.780074 185.918621,0 185.918621,0 C185.918621,0 147.486878,0 147.486878,0 C147.486878,0 147.486878,0 147.486878,0 Z"></path>
@@ -60,10 +61,10 @@ Start integrating and monitoring your applications with Doku effortlessly. Choos
---
<CardGroup cols={2}>
-<Card title="Quickstart" href="/0.0.7/quickstart" icon='bolt'>
+<Card title="Quickstart" href="/0.1/quickstart" icon='bolt'>
Get Started with monitoring your LLM Applications in 2 simple steps
</Card>
-<Card title="Connections" href="/0.0.7/connections/intro" icon='link'>
+<Card title="Connections" href="/0.1/connections/intro" icon='link'>
Connect to your existing Observablity Platform
</Card>
</CardGroup>
\ No newline at end of file
diff --git a/docs/0.0.7/integrations/openai/examples/audio.mdx b/docs/0.1/integrations/openai/examples/audio.mdx
similarity index 70%
rename from docs/0.0.7/integrations/openai/examples/audio.mdx
rename to docs/0.1/integrations/openai/examples/audio.mdx
index 3d6ddbfe..d6b7ffac 100644
--- a/docs/0.0.7/integrations/openai/examples/audio.mdx
+++ b/docs/0.1/integrations/openai/examples/audio.mdx
@@ -16,8 +16,8 @@ description: 'Monitor OpenAI Audio API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
speech_file_path = Path(__file__).parent / "speech.mp3"
response = client.audio.speech.create(
@@ -37,8 +37,8 @@ description: 'Monitor OpenAI Audio API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const speechFile = path.resolve("./speech.mp3");
diff --git a/docs/0.0.7/integrations/openai/examples/chat.mdx b/docs/0.1/integrations/openai/examples/chat.mdx
similarity index 73%
rename from docs/0.0.7/integrations/openai/examples/chat.mdx
rename to docs/0.1/integrations/openai/examples/chat.mdx
index a7cf5a1a..4894c512 100644
--- a/docs/0.0.7/integrations/openai/examples/chat.mdx
+++ b/docs/0.1/integrations/openai/examples/chat.mdx
@@ -17,8 +17,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
completion = client.chat.completions.create(
model="gpt-3.5-turbo",
@@ -39,8 +39,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
response = client.chat.completions.create(
model="gpt-4-vision-preview",
@@ -70,8 +70,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
completion = client.chat.completions.create(
model="gpt-3.5-turbo",
@@ -94,8 +94,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
tools = [
{
@@ -136,8 +136,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
completion = client.chat.completions.create(
model="gpt-3.5-turbo",
@@ -165,8 +165,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
async def main() -> None:
chat_completion = await client.chat.completions.create(
@@ -191,8 +191,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
async def main() -> None:
response = await client.chat.completions.create(
@@ -224,8 +224,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
async def main():
stream = await client.chat.completions.create(
@@ -249,8 +249,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
tools = [
{
@@ -294,8 +294,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
async def main() -> None:
completion = await client.chat.completions.create(
@@ -319,8 +319,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const completion = await openai.chat.completions.create({
@@ -340,8 +340,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const response = await openai.chat.completions.create({
@@ -371,8 +371,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const completion = await openai.chat.completions.create({
@@ -398,8 +398,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const messages = [{"role": "user", "content": "What's the weather like in Boston today?"}];
@@ -443,8 +443,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const completion = await openai.chat.completions.create({
diff --git a/docs/0.0.7/integrations/openai/examples/completions.mdx b/docs/0.1/integrations/openai/examples/completions.mdx
similarity index 63%
rename from docs/0.0.7/integrations/openai/examples/completions.mdx
rename to docs/0.1/integrations/openai/examples/completions.mdx
index d7e4908b..89f9f54c 100644
--- a/docs/0.0.7/integrations/openai/examples/completions.mdx
+++ b/docs/0.1/integrations/openai/examples/completions.mdx
@@ -14,8 +14,8 @@ description: 'Monitor OpenAI Completions API Usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
client.completions.create(
model="gpt-3.5-turbo-instruct",
@@ -33,8 +33,8 @@ description: 'Monitor OpenAI Completions API Usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
for chunk in client.completions.create(
model="gpt-3.5-turbo-instruct",
@@ -56,8 +56,8 @@ description: 'Monitor OpenAI Completions API Usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const completion = await openai.completions.create({
@@ -78,8 +78,8 @@ description: 'Monitor OpenAI Completions API Usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const stream = await openai.completions.create({
diff --git a/docs/0.0.7/integrations/openai/examples/embeddings.mdx b/docs/0.1/integrations/openai/examples/embeddings.mdx
similarity index 63%
rename from docs/0.0.7/integrations/openai/examples/embeddings.mdx
rename to docs/0.1/integrations/openai/examples/embeddings.mdx
index ec50145e..c72bf9a9 100644
--- a/docs/0.0.7/integrations/openai/examples/embeddings.mdx
+++ b/docs/0.1/integrations/openai/examples/embeddings.mdx
@@ -14,8 +14,8 @@ description: 'Monitor OpenAI Embeddings API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
client.embeddings.create(
model="text-embedding-ada-002",
@@ -31,8 +31,8 @@ description: 'Monitor OpenAI Embeddings API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const embedding = await openai.embeddings.create({
diff --git a/docs/0.0.7/integrations/openai/examples/fine-tuning.mdx b/docs/0.1/integrations/openai/examples/fine-tuning.mdx
similarity index 59%
rename from docs/0.0.7/integrations/openai/examples/fine-tuning.mdx
rename to docs/0.1/integrations/openai/examples/fine-tuning.mdx
index aa049513..4be10b0e 100644
--- a/docs/0.0.7/integrations/openai/examples/fine-tuning.mdx
+++ b/docs/0.1/integrations/openai/examples/fine-tuning.mdx
@@ -14,8 +14,8 @@ description: 'Monitor OpenAI Fine Tuning API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
client.fine_tuning.jobs.create(
training_file="file-abc123",
@@ -30,8 +30,8 @@ description: 'Monitor OpenAI Fine Tuning API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const fineTune = await openai.fineTuning.jobs.create({
diff --git a/docs/0.0.7/integrations/openai/examples/image.mdx b/docs/0.1/integrations/openai/examples/image.mdx
similarity index 59%
rename from docs/0.0.7/integrations/openai/examples/image.mdx
rename to docs/0.1/integrations/openai/examples/image.mdx
index d0c82139..e92e2b3c 100644
--- a/docs/0.0.7/integrations/openai/examples/image.mdx
+++ b/docs/0.1/integrations/openai/examples/image.mdx
@@ -15,8 +15,8 @@ description: 'Monitor OpenAI Image API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
client.images.generate(
model="dall-e-3",
@@ -33,8 +33,8 @@ description: 'Monitor OpenAI Image API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const image = await openai.images.generate({ model: "dall-e-3", prompt: "A cute baby sea otter" });
@@ -58,8 +58,8 @@ description: 'Monitor OpenAI Image API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
response = client.images.create_variation(
image=open("image_edit_original.png", "rb"),
@@ -76,8 +76,8 @@ description: 'Monitor OpenAI Image API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const image = await openai.images.createVariation({
diff --git a/docs/0.0.7/integrations/openai/introduction.mdx b/docs/0.1/integrations/openai/introduction.mdx
similarity index 73%
rename from docs/0.0.7/integrations/openai/introduction.mdx
rename to docs/0.1/integrations/openai/introduction.mdx
index a1ff47a3..8d993e88 100644
--- a/docs/0.0.7/integrations/openai/introduction.mdx
+++ b/docs/0.1/integrations/openai/introduction.mdx
@@ -7,12 +7,12 @@ DokuMetry SDKs (`dokumetry`) empowers you to effortlessly track and monitor Open
## Get Started
-The integration is compatible with OpenAI SDK versions >=1.0.0
+The integration is compatible with OpenAI Python SDK version `>=1.13.0` and NodeJS SDK `>=4.28.0`
<Tabs>
<Tab title="Python">
```shell
- pip install dokumetry
+ pip install dokumetry==0.1.0
```
```python
@@ -21,12 +21,12 @@ The integration is compatible with OpenAI SDK versions >=1.0.0
client = OpenAI()
- dokumetry.init(llm = client, doku_url = "YOUR_DOKU_URL", api_key = "YOUR_DOKU_TOKEN")
+ dokumetry.init(llm = client, doku_url = "YOUR_DOKU_INGESTER_URL", api_key = "YOUR_DOKU_TOKEN")
```
</Tab>
<Tab title="Javascript">
```shell
- npm install dokumetry
+ npm install [email protected]
```
```javascript
@@ -35,7 +35,7 @@ The integration is compatible with OpenAI SDK versions >=1.0.0
const client = new OpenAI();
- DokuMetry.init({llm: client, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ DokuMetry.init({llm: client, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
```
</Tab>
</Tabs>
@@ -44,12 +44,12 @@ The integration is compatible with OpenAI SDK versions >=1.0.0
The following OpenAI Endpoints are supported for monitoring with DokuMetry
-- [Chat completions](/0.0.7/integrations/openai/examples/chat)
-- [Image Create](/0.0.7/integrations/openai/examples/image#create-image) and [Image Variations](/0.0.7/integrations/openai/examples/image#create-image-variation)
-- [Audio Speech Create](/0.0.7/integrations/openai/examples/audio)
-- [Embeddings](/0.0.7/integrations/openai/examples/embeddings)
-- [Fine Tunings](/0.0.7/integrations/openai/examples/fine-tuning)
-- [Completions](/0.0.7/integrations/openai/examples/completions)
+- [Chat completions](/0.1/integrations/openai/examples/chat)
+- [Image Create](/0.1/integrations/openai/examples/image#create-image) and [Image Variations](/0.1/integrations/openai/examples/image#create-image-variation)
+- [Audio Speech Create](/0.1/integrations/openai/examples/audio)
+- [Embeddings](/0.1/integrations/openai/examples/embeddings)
+- [Fine Tunings](/0.1/integrations/openai/examples/fine-tuning)
+- [Completions](/0.1/integrations/openai/examples/completions)
## Parameters
@@ -84,10 +84,10 @@ To filter your LLM Usage according application or the environment, set the Appli
---
<CardGroup cols={2}>
-<Card title="Connections" href="/0.0.7/connections/intro" icon='link'>
+<Card title="Connections" href="/0.1/connections/intro" icon='link'>
Connect to your existing Observablity Platform
</Card>
-<Card title="API Refernce" href="/0.0.7/api-reference/introduction" icon='code'>
+<Card title="API Refernce" href="/0.1/api-reference/introduction" icon='code'>
OpenAPI specification for API Endpoints in Doku
</Card>
</CardGroup>
\ No newline at end of file
diff --git a/docs/0.0.7/introduction.mdx b/docs/0.1/introduction.mdx
similarity index 89%
rename from docs/0.0.7/introduction.mdx
rename to docs/0.1/introduction.mdx
index 1d66daf0..57bbac1a 100644
--- a/docs/0.0.7/introduction.mdx
+++ b/docs/0.1/introduction.mdx
@@ -29,13 +29,13 @@ Integrating the `dokumetry` SDK into LLM applications is straightforward with SD
```python python
import dokumetry
-dokumetry.init(llm=openai, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+dokumetry.init(llm=openai, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
```
```javascript NodeJS
import DokuMetry from 'dokumetry';
-DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
```
</CodeGroup>
@@ -53,21 +53,21 @@ With your LLM monitoring data processed and securely stored, you can now leverag
<img src="https://github.com/dokulabs/.github/blob/main/profile/assets/doku-client-3.jpg?raw=true" />
</Frame>
-For those with a preferred observability platform, you can also integrate and visualize this data elsewhere with ease. This flexibility ensures optimal monitoring workflow integration, regardless of your platform choice. For more details on how to set up these connections, check out the [Connections](https://example.com/0.0.7/connections/intro) guide.
+For those with a preferred observability platform, you can also integrate and visualize this data elsewhere with ease. This flexibility ensures optimal monitoring workflow integration, regardless of your platform choice. For more details on how to set up these connections, check out the [Connections](https://example.com/0.1/connections/intro) guide.
## Getting Started
Select from the following guides to learn more about how to use Doku:
<CardGroup cols={2}>
-<Card title="Quickstart" href="/0.0.7/quickstart" icon='bolt'>
+<Card title="Quickstart" href="/0.1/quickstart" icon='bolt'>
Get Started with monitoring your LLM Applications in 2 simple steps
</Card>
-<Card title="Integrations" href="/0.0.7/integrations/introduction" icon='circle-nodes'>
+<Card title="Integrations" href="/0.1/integrations/introduction" icon='circle-nodes'>
Integrate your LLM Provider with Doku
</Card>
-<Card title="Installation" href="/0.0.7/installation" icon='circle-down'>
+<Card title="Installation" href="/0.1/installation" icon='circle-down'>
Deploy Doku in your preferred environment
</Card>
-<Card title="Connections" href="/0.0.7/connections/intro" icon='link'>
+<Card title="Connections" href="/0.1/connections/intro" icon='link'>
Connect to your existing Observablity Platform
</Card>
</CardGroup>
\ No newline at end of file
diff --git a/docs/0.0.7/quickstart.mdx b/docs/0.1/quickstart.mdx
similarity index 90%
rename from docs/0.0.7/quickstart.mdx
rename to docs/0.1/quickstart.mdx
index 985d79a7..855534ee 100644
--- a/docs/0.0.7/quickstart.mdx
+++ b/docs/0.1/quickstart.mdx
@@ -28,7 +28,7 @@ This guide will walk you through setting up monitoring for your LLM Application
restart: always
doku-ingester:
- image: ghcr.io/dokulabs/doku-ingester:0.0.7
+ image: ghcr.io/dokulabs/doku-ingester:0.1.0
container_name: doku-ingester
environment:
DOKU_DB_HOST: clickhouse
@@ -43,7 +43,7 @@ This guide will walk you through setting up monitoring for your LLM Application
restart: always
doku-client:
- image: ghcr.io/dokulabs/doku-client:0.0.7
+ image: ghcr.io/dokulabs/doku-client:0.1.0
container_name: doku-client
environment:
INIT_DB_HOST: clickhouse
@@ -79,6 +79,8 @@ This guide will walk you through setting up monitoring for your LLM Application
- Email as `[email protected]`
- Password as `dokulabsuser`
3. Once you have logged into Doku UI, Go to [API Keys page](http://127.0.0.1:3000/api-keys) and Create an API Key. Copy the generated API Key.
+
+ <Tip>Alternatively, you can use the HTTP API to create your Doku API Key. For further details, take a look at the [API Reference](/latest/api-reference/endpoint/api-keys/create) section.</Tip>
</Step>
<Step title="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**.
@@ -109,7 +111,7 @@ This guide will walk you through setting up monitoring for your LLM Application
api_key="YOUR_OPENAI_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
dokumetry.init(llm=client, doku_url="http://127.0.0.1:9044/", api_key="YOUR_DOKU_TOKEN")
chat_completion = client.chat.completions.create(
@@ -152,7 +154,7 @@ This guide will walk you through setting up monitoring for your LLM Application
apiKey: 'My API Key', // defaults to process.env["OPENAI_API_KEY"]
});
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
DokuMetry.init({llm: openai, dokuUrl: "http://127.0.0.1:9044/", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
@@ -188,10 +190,10 @@ You're all set! Following these steps should have you on your way to effectively
---
<CardGroup cols={2}>
-<Card title="Integrations" href="/0.0.7/integrations/introduction" icon='circle-nodes'>
+<Card title="Integrations" href="/0.1/integrations/introduction" icon='circle-nodes'>
Integrate your LLM Provider with Doku
</Card>
-<Card title="Connections" href="/0.0.7/connections/intro" icon='link'>
+<Card title="Connections" href="/0.1/connections/intro" icon='link'>
Connect to your existing Observablity Platform
</Card>
</CardGroup>
\ No newline at end of file
diff --git a/docs/latest/configuration.mdx b/docs/latest/configuration.mdx
index 288429e7..de878eb4 100644
--- a/docs/latest/configuration.mdx
+++ b/docs/latest/configuration.mdx
@@ -67,12 +67,12 @@ This guide covers all the available environment variables to fine-tune Doku acco
### Sample Environment File (.env)
```.env.example .env
-INIT_DB_HOST: 127.0.0.1
-INIT_DB_PORT: 8123
-INIT_DB_DATABASE: default
-INIT_DB_USERNAME: default
-INIT_DB_PASSWORD: DOKU
-SQLITE_DATABASE_URL: file:/app/client/data/data.db
+INIT_DB_HOST="127.0.0.1"
+INIT_DB_PORT="8123"
+INIT_DB_DATABASE="default"
+INIT_DB_USERNAME="default"
+INIT_DB_PASSWORD="DOKU"
+SQLITE_DATABASE_URL="file:/app/client/data/data.db"
```
## Doku Ingester
diff --git a/docs/latest/connections/grafanaoss.mdx b/docs/latest/connections/grafanaoss.mdx
index 465cadaa..1d607abc 100644
--- a/docs/latest/connections/grafanaoss.mdx
+++ b/docs/latest/connections/grafanaoss.mdx
@@ -8,23 +8,23 @@ description: 'Connect Doku to Grafana OSS'
<img src="https://github.com/dokulabs/doku/blob/main/docs/images/grafana-dashboard-3.jpg?raw=true" />
</Frame>
-You can add the Doku's backend storage database (`TimescaleDB`) as a datasource in Grafana.
+You can add the Doku's backend storage database (`ClickHouse`) as a datasource in Grafana.
## Steps
1. Navigate to your Grafana Instance.
1. Login with your credentials.
-1. Click on the **Connection** on the left sidebar to open the **Data Sources**.
-1. Click the **Add data source** button.
-1. In the search box, type "PostgreSQL" as `TimescaleDB` is an extension of PostgreSQL
-1.In the settings form, fill in the details to connect to your TimescaleDB/PostgreSQL database:
- - **Name**: Enter the name for the datasource as `Doku`.
- - **Host**: Provide the host address and port of your PostgreSQL server (e.g., `127.0.0.1`).
- - **Database**: Enter the name of the database. Default database used by Doku is `postgres`.
- - **TLS/SSL Setiing**: Enter the securtity to use for connection. Default used by Doku is `require`.
- - **User**: The username for the database. Default user used by Doku is `admin`.
- - **Password**: The password for the database. Default password used by Doku is `Doku`.
-1. Optionally customize the **Max open connections**, **Max idle connections**, and **Connection Max Lifetime**.
+1. Click on the **Connection** on the left sidebar to open the **Add new connection**.
+1. In the search box, type `ClickHouse` and then click `Install` button on the top right corner.
+1. Click the **Add new data source** button on the top right corner.
+1.In the settings form, fill in the details to connect to your ClickHouse database:
+ 1. **Server address**: Provide the host address of your ClickHouse Database (e.g., `127.0.0.1`).
+ 1. **Server port**: Provide the port of your ClickHouse Database (e.g., `9000`) and set protocol as `Native`
+ 1. **Username**: The username for the ClickHouse database. Default user used by Doku is `default`.
+ 1. **Password**: The password for the database. Default password used by Doku is `DOKU`.
+ 1. Under **Additional settings**
+ - Add **Default database**. Default database used by Doku is `default`.
+1. Optionally customize the **Additional settings**.
1. Click the **Save & Test** button at the bottom of the page.
Grafana will attempt to connect to the database using the provided settings. If everything is configured correctly, you will see a message indicating the data source is working.
@@ -53,7 +53,7 @@ Grafana will attempt to connect to the database using the provided settings. If
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
- "id": 8,
+ "id": 1,
"links": [
{
"icon": "info",
@@ -87,7 +87,7 @@ Grafana will attempt to connect to the database using the provided settings. If
"panels": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"gridPos": {
@@ -106,13 +106,13 @@ Grafana will attempt to connect to the database using the provided settings. If
"content": "---\n---\n---\n---\n---\n---",
"mode": "markdown"
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"transparent": true,
"type": "text"
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"gridPos": {
@@ -131,13 +131,13 @@ Grafana will attempt to connect to the database using the provided settings. If
"content": "![Doku Logo](https://github.com/dokulabs/.github/blob/main/profile/assets/favicon.png?raw=true)",
"mode": "markdown"
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"transparent": true,
"type": "text"
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"gridPos": {
@@ -156,13 +156,13 @@ Grafana will attempt to connect to the database using the provided settings. If
"content": "---\n---\n---\n---\n---\n---",
"mode": "markdown"
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"transparent": true,
"type": "text"
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the total number of requests sent to Large Language Models (LLM) Platforms in the selected time interval.",
@@ -185,7 +185,8 @@ Grafana will attempt to connect to the database using the provided settings. If
"value": 80
}
]
- }
+ },
+ "unitScale": true
},
"overrides": []
},
@@ -208,18 +209,23 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": "SELECT count(*) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
"refId": "A",
@@ -255,7 +261,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the average time taken to process each request by the Large Language Models (LLM), offering a snapshot of system performance and efficiency.",
@@ -278,7 +284,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "s"
+ "unit": "s",
+ "unitScale": true
},
"overrides": []
},
@@ -301,20 +308,25 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT AVG(requestduration) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
+ "rawSql": "SELECT AVG(requestDuration) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
"refId": "A",
"sql": {
"columns": [
@@ -348,7 +360,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the average count of Total tokens used per LLM request",
@@ -371,7 +383,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "none"
+ "unit": "none",
+ "unitScale": true
},
"overrides": []
},
@@ -394,20 +407,25 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT AVG(totaltokens) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
+ "rawSql": "SELECT AVG(totalTokens) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
"refId": "A",
"sql": {
"columns": [
@@ -441,7 +459,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the average cost incurred per request to the LLM, helping monitor and optimize budget allocation for LLM usage.",
@@ -464,7 +482,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "currencyUSD"
+ "unit": "currencyUSD",
+ "unitScale": true
},
"overrides": []
},
@@ -487,20 +506,25 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT AVG(usagecost) FROM DOKU_LLM_DATA \nWHERE $__timeFilter(time)",
+ "rawSql": "SELECT AVG(usageCost) FROM DOKU_LLM_DATA \nWHERE $__timeFilter(time)",
"refId": "A",
"sql": {
"columns": [
@@ -534,7 +558,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the total cost on LLM requests over the selected period.",
@@ -553,7 +577,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "currencyUSD"
+ "unit": "currencyUSD",
+ "unitScale": true
},
"overrides": []
},
@@ -576,20 +601,25 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT SUM(usagecost) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
+ "rawSql": "SELECT SUM(usageCost) FROM DOKU_LLM_DATA\nWHERE $__timeFilter(time)",
"refId": "A",
"sql": {
"columns": [
@@ -623,7 +653,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the count of API requests made to LLMs over the selected time.",
@@ -683,7 +713,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "none"
+ "unit": "none",
+ "unitScale": true
},
"overrides": []
},
@@ -710,7 +741,7 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
@@ -779,7 +810,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel illustrates the distribution of LLM requests across different usage categories: Chat Generations, Embeddings, Image Generations, Audio Generations, and Fine Tuning. It visualizes the relative volume of requests, helping to identify which types of operations are most frequently performed and providing insights into usage patterns by category.\n\n",
@@ -795,7 +826,8 @@ Grafana will attempt to connect to the database using the provided settings. If
"viz": false
}
},
- "mappings": []
+ "mappings": [],
+ "unitScale": true
},
"overrides": []
},
@@ -832,11 +864,15 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": "SELECT \n category,\n CAST(COUNT(*) AS INTEGER) AS Requests,\n ROUND(100.0 * COUNT(*) / SUM(COUNT(*)) OVER(), 2) AS percentage\n FROM \n (\n SELECT \n CASE\n WHEN endpoint LIKE 'openai.chat%' THEN 'Chat'\n WHEN endpoint LIKE 'openai.completions%' THEN 'Chat'\n WHEN endpoint LIKE 'anthropic.messages%' THEN 'Chat'\n WHEN endpoint LIKE 'cohere.summarize%' THEN 'Chat'\n WHEN endpoint LIKE 'cohere.generate%' THEN 'Chat'\n WHEN endpoint LIKE 'cohere.chat%' THEN 'Chat'\n WHEN endpoint LIKE '%embed%' THEN 'Embeddings'\n WHEN endpoint LIKE 'openai.images%' THEN 'Image'\n WHEN endpoint LIKE 'openai.audio%' THEN 'Audio'\n WHEN endpoint LIKE 'openai.fine_tuning%' THEN 'Fine Tuning'\n END AS category,\n endpoint\n FROM DOKU_LLM_DATA\n WHERE $__timeFilter(time)\n ) AS subquery\n GROUP BY category",
"refId": "A",
@@ -865,7 +901,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "Displays the cost breakdown by provider (OpenAI, Cohere, Anthropic) for LLM requests, offering insights into financial deployment across different services.",
@@ -882,7 +918,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
},
"mappings": [],
- "unit": "currencyUSD"
+ "unit": "currencyUSD",
+ "unitScale": true
},
"overrides": []
},
@@ -919,11 +956,15 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": "SELECT\n CASE\n WHEN endpoint LIKE 'openai.%' THEN 'OpenAI'\n WHEN endpoint LIKE 'cohere.%' THEN 'Cohere'\n WHEN endpoint LIKE 'anthropic.%' THEN 'Anthropic'\n END AS provider,\n SUM(usageCost) AS total_cost\nFROM\n DOKU_LLM_DATA\nWHERE $__timeFilter(time)\nGROUP BY\n provider\nORDER BY\n total_cost DESC;",
"refId": "A",
@@ -952,7 +993,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel presents a pie chart detailing the distribution of expenses for LLM requests by various applications. It shows how budget allocations are consumed by different applications, enabling a deeper understanding of cost drivers and facilitating cost optimization efforts.",
@@ -969,7 +1010,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
},
"mappings": [],
- "unit": "currencyUSD"
+ "unit": "currencyUSD",
+ "unitScale": true
},
"overrides": []
},
@@ -1007,11 +1049,15 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": " SELECT\n applicationName,\n sum(usageCost) AS \"usageCost\"\n FROM\n DOKU_LLM_DATA\n WHERE $__timeFilter(time)\n GROUP BY\n applicationName\n ORDER BY\n \"usageCost\" DESC",
"refId": "A",
@@ -1040,7 +1086,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "Visualizes the allocation of LLM request expenses across different environments, such as development, staging, and production. This breakdown helps in tracking and managing costs with respect to operational environments.",
@@ -1057,7 +1103,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
},
"mappings": [],
- "unit": "currencyUSD"
+ "unit": "currencyUSD",
+ "unitScale": true
},
"overrides": []
},
@@ -1095,11 +1142,15 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": " SELECT\n environment,\n sum(usageCost) AS \"usageCost\"\n FROM\n DOKU_LLM_DATA\n WHERE $__timeFilter(time)\n GROUP BY\n environment\n ORDER BY\n \"usageCost\" DESC",
"refId": "A",
@@ -1128,7 +1179,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the average count of Prompt tokens used per LLM request",
@@ -1142,7 +1193,8 @@ Grafana will attempt to connect to the database using the provided settings. If
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
@@ -1150,7 +1202,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "none"
+ "unit": "none",
+ "unitScale": true
},
"overrides": []
},
@@ -1173,20 +1226,25 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT AVG(prompttokens) FROM DOKU_LLM_DATA WHERE \n $__timeFilter(\"time\")",
+ "rawSql": "SELECT AVG(promptTokens) FROM DOKU_LLM_DATA WHERE \n $__timeFilter(\"time\")",
"refId": "A",
"sql": {
"columns": [
@@ -1219,7 +1277,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "Provides a time-series analysis of token consumption for LLM requests, highlighting trends in usage intensity and complexity over time.",
@@ -1270,14 +1328,16 @@ Grafana will attempt to connect to the database using the provided settings. If
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
"value": 80
}
]
- }
+ },
+ "unitScale": true
},
"overrides": []
},
@@ -1304,13 +1364,17 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "time_series",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT prompttokens AS \"Prompt Tokens\", \"time\" AS \"time\", completiontokens AS \"Completion Tokens\", totaltokens AS \"Total Tokens\" FROM DOKU_LLM_DATA",
+ "rawSql": "SELECT promptTokens AS \"Prompt Tokens\", \"time\" AS \"time\", completionTokens AS \"Completion Tokens\", totalTokens AS \"Total Tokens\" FROM DOKU_LLM_DATA",
"refId": "A",
"sql": {
"columns": [
@@ -1373,7 +1437,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "This panel shows the average count of Completion tokens used per LLM request",
@@ -1387,7 +1451,8 @@ Grafana will attempt to connect to the database using the provided settings. If
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
@@ -1395,7 +1460,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "none"
+ "unit": "none",
+ "unitScale": true
},
"overrides": []
},
@@ -1418,20 +1484,25 @@ Grafana will attempt to connect to the database using the provided settings. If
"fields": "",
"values": false
},
+ "showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
- "rawSql": "SELECT AVG(completiontokens) FROM DOKU_LLM_DATA WHERE \n $__timeFilter(\"time\")",
+ "rawSql": "SELECT AVG(completionTokens) FROM DOKU_LLM_DATA WHERE \n $__timeFilter(\"time\")",
"refId": "A",
"sql": {
"columns": [
@@ -1464,7 +1535,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "Displays the frequency of model usage over time, identifying the most utilised models and showcasing usage trends across different periods",
@@ -1479,7 +1550,8 @@ Grafana will attempt to connect to the database using the provided settings. If
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
@@ -1487,7 +1559,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "none"
+ "unit": "none",
+ "unitScale": true
},
"overrides": []
},
@@ -1516,15 +1589,19 @@ Grafana will attempt to connect to the database using the provided settings. If
"sizing": "manual",
"valueMode": "text"
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": "SELECT \n model,\n total_count,\n percentage_usage\nFROM \n (\n SELECT \n model,\n COUNT(*) AS total_count,\n ROUND(100.0 * COUNT(*) / SUM(COUNT(*)) OVER(), 2) AS percentage_usage\n FROM \n DOKU_LLM_DATA\n WHERE $__timeFilter(time)\n GROUP BY \n model\n ORDER BY \n percentage_usage DESC\n ) sub\nLIMIT 5;",
"refId": "A",
@@ -1558,7 +1635,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "Breaks down token usage across different LLM models, offering insights into which models are driving the highest token consumption.",
@@ -1604,14 +1681,16 @@ Grafana will attempt to connect to the database using the provided settings. If
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
"value": 80
}
]
- }
+ },
+ "unitScale": true
},
"overrides": []
},
@@ -1638,11 +1717,15 @@ Grafana will attempt to connect to the database using the provided settings. If
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "time_series",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": "SELECT \n DATE_TRUNC('day', \"time\") AS \"time\",\n model,\n COUNT(*) AS \"Model:\"\nFROM \n DOKU_LLM_DATA\nWHERE \n $__timeFilter(\"time\")\nGROUP BY \n 1, model\nORDER BY \n \"time\" ASC, model;",
"refId": "A",
@@ -1676,7 +1759,7 @@ Grafana will attempt to connect to the database using the provided settings. If
},
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"description": "Table showing prompts and responses along with their associated costs and token usage.",
@@ -1699,7 +1782,8 @@ Grafana will attempt to connect to the database using the provided settings. If
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
@@ -1707,7 +1791,8 @@ Grafana will attempt to connect to the database using the provided settings. If
}
]
},
- "unit": "currencyUSD"
+ "unit": "currencyUSD",
+ "unitScale": true
},
"overrides": []
},
@@ -1730,15 +1815,19 @@ Grafana will attempt to connect to the database using the provided settings. If
},
"showHeader": true
},
- "pluginVersion": "10.2.3",
+ "pluginVersion": "10.3.3",
"targets": [
{
"datasource": {
- "type": "grafana-postgresql-datasource",
+ "type": "grafana-clickhouse-datasource",
"uid": "${datasource}"
},
"editorMode": "code",
- "format": "table",
+ "editorType": "sql",
+ "format": 1,
+ "meta": {},
+ "pluginVersion": "4.0.3",
+ "queryType": "table",
"rawQuery": true,
"rawSql": "SELECT \"time\", applicationName, model, prompt, response, usageCost FROM DOKU_LLM_DATA WHERE $__timeFilter(time)",
"refId": "A",
@@ -1811,9 +1900,9 @@ Grafana will attempt to connect to the database using the provided settings. If
"list": [
{
"current": {
- "selected": true,
- "text": "grafana-postgresql-datasource",
- "value": "dbd38750-cf8a-4f35-a031-af943c441f1d"
+ "selected": false,
+ "text": "grafana-clickhouse-datasource",
+ "value": "ef07bf93-52b4-4c5d-adda-8a498d388510"
},
"hide": 0,
"includeAll": false,
@@ -1821,7 +1910,7 @@ Grafana will attempt to connect to the database using the provided settings. If
"multi": false,
"name": "datasource",
"options": [],
- "query": "grafana-postgresql-datasource",
+ "query": "grafana-clickhouse-datasource",
"queryValue": "",
"refresh": 1,
"regex": "",
@@ -1838,7 +1927,7 @@ Grafana will attempt to connect to the database using the provided settings. If
"timezone": "",
"title": "Doku - LLM Monitoring",
"uid": "doku-llm-monitoring",
- "version": 1,
+ "version": 3,
"weekStart": ""
}
```
diff --git a/docs/latest/connections/intro.mdx b/docs/latest/connections/intro.mdx
index 24510b87..4b269062 100644
--- a/docs/latest/connections/intro.mdx
+++ b/docs/latest/connections/intro.mdx
@@ -1,6 +1,7 @@
---
-title: 'Introduction'
-description: 'Connect to your existing Observablity Platform'
+title: 'Connect to your existing Observablity Platform'
+description: 'Send LLM Monitoring data to your Observablity Platform'
+sidebarTitle: 'Introduction'
---
Doku enhances observability by seamlessly exporting processed LLM data to your observability platform. This assists developers in bringing together all application-related data, including LLM usage metrics, on a unified platform, simplifying the visualization and assessment of the entire application ecosystem.
diff --git a/docs/latest/integrations/anthropic/examples/messages.mdx b/docs/latest/integrations/anthropic/examples/messages.mdx
index c6c8d07a..780cc26f 100644
--- a/docs/latest/integrations/anthropic/examples/messages.mdx
+++ b/docs/latest/integrations/anthropic/examples/messages.mdx
@@ -18,8 +18,8 @@ description: 'Monitor Anthropic Messages API Usage'
api_key="YOUR_ANTHROPIC_API_KEY",
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all Anthropic calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all Anthropic calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
message = client.messages.create(
max_tokens=1024,
@@ -42,8 +42,8 @@ description: 'Monitor Anthropic Messages API Usage'
api_key="YOUR_ANTHROPIC_API_KEY",
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all Anthropic calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all Anthropic calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
stream = client.messages.create(
max_tokens=1024,
@@ -73,8 +73,9 @@ description: 'Monitor Anthropic Messages API Usage'
api_key="YOUR_ANTHROPIC_API_KEY",
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all Anthropic calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all Anthropic calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
+
async def main() -> None:
message = await client.messages.create(
@@ -89,8 +90,8 @@ description: 'Monitor Anthropic Messages API Usage'
)
asyncio.run(main())
+
```
-
```python streaming
import asyncio
from anthropic import AsyncAnthropic
@@ -101,8 +102,8 @@ description: 'Monitor Anthropic Messages API Usage'
api_key="YOUR_ANTHROPIC_API_KEY",
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all Anthropic calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all Anthropic calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
async def main():
stream = client.messages.create(
@@ -133,8 +134,8 @@ description: 'Monitor Anthropic Messages API Usage'
apiKey: 'my_api_key', // defaults to process.env["ANTHROPIC_API_KEY"]
});
- // Pass the above `anthropic` object along with your DOKU URL and API key and this will make sure that all Anthropic calls are automatically tracked.
- DokuMetry.init({llm: anthropic, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `anthropic` object along with your Doku Ingester URL and API key and this will make sure that all Anthropic calls are automatically tracked.
+ DokuMetry.init({llm: anthropic, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const message = await anthropic.messages.create({
@@ -157,8 +158,8 @@ description: 'Monitor Anthropic Messages API Usage'
apiKey: 'my_api_key', // defaults to process.env["ANTHROPIC_API_KEY"]
});
- // Pass the above `anthropic` object along with your DOKU URL and API key and this will make sure that all Anthropic calls are automatically tracked.
- DokuMetry.init({llm: anthropic, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `anthropic` object along with your Doku Ingester URL and API key and this will make sure that all Anthropic calls are automatically tracked.
+ DokuMetry.init({llm: anthropic, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const stream = await anthropic.messages.create({
max_tokens: 1024,
diff --git a/docs/latest/integrations/anthropic/introduction.mdx b/docs/latest/integrations/anthropic/introduction.mdx
index 83d82c31..7d209822 100644
--- a/docs/latest/integrations/anthropic/introduction.mdx
+++ b/docs/latest/integrations/anthropic/introduction.mdx
@@ -7,7 +7,7 @@ DokuMetry SDKs (`dokumetry`) empowers you to effortlessly track and monitor Anth
## Get Started
-The integration is compatible with Anthropic Python SDK version >=0.19.0 and Typescript SDK version >=0.9.0
+The integration is compatible with Anthropic Python SDK version `>=0.19.0` and Typescript SDK version `>=0.9.0`
<Tabs>
<Tab title="Python">
@@ -23,7 +23,7 @@ The integration is compatible with Anthropic Python SDK version >=0.19.0 and Typ
api_key="anthropic_api_key",
)
- dokumetry.init(llm = anthropic, doku_url = "YOUR_DOKU_URL", api_key = "YOUR_DOKU_TOKEN")
+ dokumetry.init(llm = anthropic, doku_url = "YOUR_DOKU_INGESTER_URL", api_key = "YOUR_DOKU_TOKEN")
```
</Tab>
<Tab title="Javascript">
@@ -39,7 +39,7 @@ The integration is compatible with Anthropic Python SDK version >=0.19.0 and Typ
apiKey: 'anthropic_api_key',
});
- DokuMetry.init({llm: anthropic, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ DokuMetry.init({llm: anthropic, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
```
</Tab>
</Tabs>
diff --git a/docs/latest/integrations/cohere/examples/chat.mdx b/docs/latest/integrations/cohere/examples/chat.mdx
index 9ab82220..0b9781d5 100644
--- a/docs/latest/integrations/cohere/examples/chat.mdx
+++ b/docs/latest/integrations/cohere/examples/chat.mdx
@@ -13,8 +13,8 @@ description: 'Monitor Cohere Chat API usage'
co = cohere.Client('<<apiKey>>')
- # Pass the above `co` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- dokumetry.init(llm=co, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `co` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ dokumetry.init(llm=co, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
response = co.chat(
chat_history=[
@@ -34,8 +34,8 @@ description: 'Monitor Cohere Chat API usage'
co = cohere.Client('<<apiKey>>')
- # Pass the above `co` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- dokumetry.init(llm=co, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `co` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ dokumetry.init(llm=co, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
response = co.chat(
chat_history=[
@@ -62,8 +62,8 @@ description: 'Monitor Cohere Chat API usage'
});
(async () => {
- // Pass the above `cohere` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `cohere` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const response = await cohere.chat({
message: 'Say this is a test',
@@ -83,8 +83,8 @@ description: 'Monitor Cohere Chat API usage'
});
(async () => {
- // Pass the above `cohere` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `cohere` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const chatStream = await cohere.chatStream({
chatHistory: [
diff --git a/docs/latest/integrations/cohere/examples/embed.mdx b/docs/latest/integrations/cohere/examples/embed.mdx
index 63857c2a..38cbaea3 100644
--- a/docs/latest/integrations/cohere/examples/embed.mdx
+++ b/docs/latest/integrations/cohere/examples/embed.mdx
@@ -12,8 +12,8 @@ description: 'Monitor Cohere Embed API usage'
co = cohere.Client('<<apiKey>>')
- # Pass the above `co` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- dokumetry.init(llm=co, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `co` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ dokumetry.init(llm=co, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
response = co.embed(
texts=['hello', 'goodbye'],
@@ -33,8 +33,8 @@ description: 'Monitor Cohere Embed API usage'
});
(async () => {
- // Pass the above `cohere` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `cohere` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const embed = await cohere.embed({
texts: ["hello", "goodbye"],
diff --git a/docs/latest/integrations/cohere/examples/generate.mdx b/docs/latest/integrations/cohere/examples/generate.mdx
index 87ec795c..f75589ed 100644
--- a/docs/latest/integrations/cohere/examples/generate.mdx
+++ b/docs/latest/integrations/cohere/examples/generate.mdx
@@ -12,8 +12,8 @@ description: 'Monitor Cohere Generate API usage'
co = cohere.Client('<<apiKey>>')
- # Pass the above `co` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- dokumetry.init(llm=co, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `co` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ dokumetry.init(llm=co, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
response = co.generate(
prompt='Please explain to me how LLMs work',
@@ -31,8 +31,8 @@ description: 'Monitor Cohere Generate API usage'
});
(async () => {
- // Pass the above `cohere` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `cohere` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const generate = await cohere.generate({
prompt: "Please explain to me how LLMs work",
diff --git a/docs/latest/integrations/cohere/examples/summarize.mdx b/docs/latest/integrations/cohere/examples/summarize.mdx
index fcb99ea3..cc5edf3d 100644
--- a/docs/latest/integrations/cohere/examples/summarize.mdx
+++ b/docs/latest/integrations/cohere/examples/summarize.mdx
@@ -12,8 +12,8 @@ description: 'Monitor Cohere Summarize API usage'
co = cohere.Client('<<apiKey>>')
- # Pass the above `co` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- dokumetry.init(llm=co, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `co` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ dokumetry.init(llm=co, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
text=(
"Ice cream is a sweetened frozen food typically eaten as a snack or dessert. "
@@ -54,8 +54,8 @@ description: 'Monitor Cohere Summarize API usage'
});
(async () => {
- // Pass the above `cohere` object along with your DOKU URL and API key and this will make sure that all Cohere calls are automatically tracked.
- DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `cohere` object along with your Doku Ingester URL and API key and this will make sure that all Cohere calls are automatically tracked.
+ DokuMetry.init({llm: cohere, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const summarize = await cohere.summarize({
text: "Ice cream is a sweetened frozen food typically eaten as a snack or dessert. "
diff --git a/docs/latest/integrations/cohere/introduction.mdx b/docs/latest/integrations/cohere/introduction.mdx
index 7b7e3fdd..bc5bf873 100644
--- a/docs/latest/integrations/cohere/introduction.mdx
+++ b/docs/latest/integrations/cohere/introduction.mdx
@@ -7,7 +7,7 @@ DokuMetry SDKs (`dokumetry`) empowers you to effortlessly track and monitor Cohe
## Get Started
-The integration is compatible with Cohere SDK versions >=4.0.0
+The integration is compatible with Cohere Python SDK version `>=5.0.0` and Typescript SDK version `>=7.6.0`
<Tabs>
<Tab title="Python">
@@ -21,7 +21,7 @@ The integration is compatible with Cohere SDK versions >=4.0.0
co = cohere.Client('YOUR_API_KEY')
- dokumetry.init(llm = co, doku_url = "YOUR_DOKU_URL", api_key = "YOUR_DOKU_TOKEN")
+ dokumetry.init(llm = co, doku_url = "YOUR_DOKU_INGESTER_URL", api_key = "YOUR_DOKU_TOKEN")
```
</Tab>
<Tab title="Javascript">
@@ -37,7 +37,7 @@ The integration is compatible with Cohere SDK versions >=4.0.0
token: "<<apiKey>>",
});
- DokuMetry.init({llm: co, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ DokuMetry.init({llm: co, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
```
</Tab>
</Tabs>
diff --git a/docs/latest/integrations/introduction.mdx b/docs/latest/integrations/introduction.mdx
index 049620fc..348c1738 100644
--- a/docs/latest/integrations/introduction.mdx
+++ b/docs/latest/integrations/introduction.mdx
@@ -1,6 +1,7 @@
---
-title: 'Introduction'
-description: 'Integrate and Monitor usage from LLM Providers'
+sidebarTitle: 'Introduction'
+title: 'Monitor your LLM usage'
+description: 'Monitor LLM Costs, Tokens and Performance along with User Interactions'
---
Start integrating and monitoring your applications with Doku effortlessly. Choose from a range of providers to **start tracking LLM performance, usage, and costs** without hassle.
diff --git a/docs/latest/integrations/openai/examples/audio.mdx b/docs/latest/integrations/openai/examples/audio.mdx
index 3d6ddbfe..d6b7ffac 100644
--- a/docs/latest/integrations/openai/examples/audio.mdx
+++ b/docs/latest/integrations/openai/examples/audio.mdx
@@ -16,8 +16,8 @@ description: 'Monitor OpenAI Audio API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
speech_file_path = Path(__file__).parent / "speech.mp3"
response = client.audio.speech.create(
@@ -37,8 +37,8 @@ description: 'Monitor OpenAI Audio API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
const speechFile = path.resolve("./speech.mp3");
diff --git a/docs/latest/integrations/openai/examples/chat.mdx b/docs/latest/integrations/openai/examples/chat.mdx
index a7cf5a1a..4894c512 100644
--- a/docs/latest/integrations/openai/examples/chat.mdx
+++ b/docs/latest/integrations/openai/examples/chat.mdx
@@ -17,8 +17,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
completion = client.chat.completions.create(
model="gpt-3.5-turbo",
@@ -39,8 +39,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
response = client.chat.completions.create(
model="gpt-4-vision-preview",
@@ -70,8 +70,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
completion = client.chat.completions.create(
model="gpt-3.5-turbo",
@@ -94,8 +94,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
tools = [
{
@@ -136,8 +136,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
completion = client.chat.completions.create(
model="gpt-3.5-turbo",
@@ -165,8 +165,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
async def main() -> None:
chat_completion = await client.chat.completions.create(
@@ -191,8 +191,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
async def main() -> None:
response = await client.chat.completions.create(
@@ -224,8 +224,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
async def main():
stream = await client.chat.completions.create(
@@ -249,8 +249,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
tools = [
{
@@ -294,8 +294,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
async def main() -> None:
completion = await client.chat.completions.create(
@@ -319,8 +319,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const completion = await openai.chat.completions.create({
@@ -340,8 +340,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const response = await openai.chat.completions.create({
@@ -371,8 +371,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const completion = await openai.chat.completions.create({
@@ -398,8 +398,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const messages = [{"role": "user", "content": "What's the weather like in Boston today?"}];
@@ -443,8 +443,8 @@ description: 'Monitor OpenAI Chat Completions API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const completion = await openai.chat.completions.create({
diff --git a/docs/latest/integrations/openai/examples/completions.mdx b/docs/latest/integrations/openai/examples/completions.mdx
index d7e4908b..89f9f54c 100644
--- a/docs/latest/integrations/openai/examples/completions.mdx
+++ b/docs/latest/integrations/openai/examples/completions.mdx
@@ -14,8 +14,8 @@ description: 'Monitor OpenAI Completions API Usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
client.completions.create(
model="gpt-3.5-turbo-instruct",
@@ -33,8 +33,8 @@ description: 'Monitor OpenAI Completions API Usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
for chunk in client.completions.create(
model="gpt-3.5-turbo-instruct",
@@ -56,8 +56,8 @@ description: 'Monitor OpenAI Completions API Usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const completion = await openai.completions.create({
@@ -78,8 +78,8 @@ description: 'Monitor OpenAI Completions API Usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const stream = await openai.completions.create({
diff --git a/docs/latest/integrations/openai/examples/embeddings.mdx b/docs/latest/integrations/openai/examples/embeddings.mdx
index ec50145e..c72bf9a9 100644
--- a/docs/latest/integrations/openai/examples/embeddings.mdx
+++ b/docs/latest/integrations/openai/examples/embeddings.mdx
@@ -14,8 +14,8 @@ description: 'Monitor OpenAI Embeddings API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
client.embeddings.create(
model="text-embedding-ada-002",
@@ -31,8 +31,8 @@ description: 'Monitor OpenAI Embeddings API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const embedding = await openai.embeddings.create({
diff --git a/docs/latest/integrations/openai/examples/fine-tuning.mdx b/docs/latest/integrations/openai/examples/fine-tuning.mdx
index aa049513..4be10b0e 100644
--- a/docs/latest/integrations/openai/examples/fine-tuning.mdx
+++ b/docs/latest/integrations/openai/examples/fine-tuning.mdx
@@ -14,8 +14,8 @@ description: 'Monitor OpenAI Fine Tuning API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
client.fine_tuning.jobs.create(
training_file="file-abc123",
@@ -30,8 +30,8 @@ description: 'Monitor OpenAI Fine Tuning API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const fineTune = await openai.fineTuning.jobs.create({
diff --git a/docs/latest/integrations/openai/examples/image.mdx b/docs/latest/integrations/openai/examples/image.mdx
index d0c82139..e92e2b3c 100644
--- a/docs/latest/integrations/openai/examples/image.mdx
+++ b/docs/latest/integrations/openai/examples/image.mdx
@@ -15,8 +15,8 @@ description: 'Monitor OpenAI Image API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
client.images.generate(
model="dall-e-3",
@@ -33,8 +33,8 @@ description: 'Monitor OpenAI Image API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const image = await openai.images.generate({ model: "dall-e-3", prompt: "A cute baby sea otter" });
@@ -58,8 +58,8 @@ description: 'Monitor OpenAI Image API usage'
api_key = "YOUR_OPENAI_API_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
response = client.images.create_variation(
image=open("image_edit_original.png", "rb"),
@@ -76,8 +76,8 @@ description: 'Monitor OpenAI Image API usage'
const openai = new OpenAI();
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
- DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const image = await openai.images.createVariation({
diff --git a/docs/latest/integrations/openai/introduction.mdx b/docs/latest/integrations/openai/introduction.mdx
index 7038a420..08e33ab8 100644
--- a/docs/latest/integrations/openai/introduction.mdx
+++ b/docs/latest/integrations/openai/introduction.mdx
@@ -7,7 +7,7 @@ DokuMetry SDKs (`dokumetry`) empowers you to effortlessly track and monitor Open
## Get Started
-The integration is compatible with OpenAI SDK versions >=1.0.0
+The integration is compatible with OpenAI Python SDK version `>=1.13.0` and NodeJS SDK `>=4.28.0`
<Tabs>
<Tab title="Python">
@@ -21,7 +21,7 @@ The integration is compatible with OpenAI SDK versions >=1.0.0
client = OpenAI()
- dokumetry.init(llm = client, doku_url = "YOUR_DOKU_URL", api_key = "YOUR_DOKU_TOKEN")
+ dokumetry.init(llm = client, doku_url = "YOUR_DOKU_INGESTER_URL", api_key = "YOUR_DOKU_TOKEN")
```
</Tab>
<Tab title="Javascript">
@@ -35,7 +35,7 @@ The integration is compatible with OpenAI SDK versions >=1.0.0
const client = new OpenAI();
- DokuMetry.init({llm: client, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+ DokuMetry.init({llm: client, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
```
</Tab>
</Tabs>
diff --git a/docs/latest/introduction.mdx b/docs/latest/introduction.mdx
index 9b824408..3b60af97 100644
--- a/docs/latest/introduction.mdx
+++ b/docs/latest/introduction.mdx
@@ -29,13 +29,13 @@ Integrating the `dokumetry` SDK into LLM applications is straightforward with SD
```python python
import dokumetry
-dokumetry.init(llm=openai, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+dokumetry.init(llm=openai, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
```
```javascript NodeJS
import DokuMetry from 'dokumetry';
-DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
```
</CodeGroup>
@@ -53,7 +53,8 @@ With your LLM monitoring data processed and securely stored, you can now leverag
<img src="https://github.com/dokulabs/.github/blob/main/profile/assets/doku-client-3.jpg?raw=true" />
</Frame>
-For those with a preferred observability platform, you can also integrate and visualize this data elsewhere with ease. This flexibility ensures optimal monitoring workflow integration, regardless of your platform choice. For more details on how to set up these connections, check out the [Connections](https://example.com/latest/connections/intro) guide.
+For those with a preferred observability platform, you can also integrate and visualize this data elsewhere with ease. This flexibility ensures optimal monitoring workflow integration, regardless of your platform choice. For more details on how to set up these connections, check out the [Connections](/latest/connections/intro) guide.
+
## Getting Started
Select from the following guides to learn more about how to use Doku:
diff --git a/docs/latest/quickstart.mdx b/docs/latest/quickstart.mdx
index 37399bb0..7d57b9c8 100644
--- a/docs/latest/quickstart.mdx
+++ b/docs/latest/quickstart.mdx
@@ -79,6 +79,8 @@ This guide will walk you through setting up monitoring for your LLM Application
- Email as `[email protected]`
- Password as `dokulabsuser`
3. Once you have logged into Doku UI, Go to [API Keys page](http://127.0.0.1:3000/api-keys) and Create an API Key. Copy the generated API Key.
+
+ <Tip>Alternatively, you can use the HTTP API to create your Doku API Key. For further details, take a look at the [API Reference](/latest/api-reference/endpoint/api-keys/create) section.</Tip>
</Step>
<Step title="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**.
@@ -109,7 +111,7 @@ This guide will walk you through setting up monitoring for your LLM Application
api_key="YOUR_OPENAI_KEY"
)
- # Pass the above `client` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ # Pass the above `client` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
dokumetry.init(llm=client, doku_url="http://127.0.0.1:9044/", api_key="YOUR_DOKU_TOKEN")
chat_completion = client.chat.completions.create(
@@ -152,7 +154,7 @@ This guide will walk you through setting up monitoring for your LLM Application
apiKey: 'My API Key', // defaults to process.env["OPENAI_API_KEY"]
});
- // Pass the above `openai` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+ // Pass the above `openai` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
DokuMetry.init({llm: openai, dokuUrl: "http://127.0.0.1:9044/", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
diff --git a/docs/mint.json b/docs/mint.json
index 4c40d6e2..75267c4e 100644
--- a/docs/mint.json
+++ b/docs/mint.json
@@ -1,6 +1,6 @@
{
"$schema": "https://mintlify.com/schema.json",
- "versions": ["latest", "0.0.7"],
+ "versions": ["latest","0.1"],
"name": "Doku",
"logo": {
"dark": "https://github.com/dokulabs/.github/blob/main/profile/assets/dark-bg-with-text-logo.jpg?raw=true",
@@ -151,64 +151,64 @@
{
"group": "Introduction",
"pages": [
- "0.0.7/introduction",
- "0.0.7/quickstart",
- "0.0.7/installation",
- "0.0.7/configuration"
+ "0.1/introduction",
+ "0.1/quickstart",
+ "0.1/installation",
+ "0.1/configuration"
],
- "version": "0.0.7"
+ "version": "0.1"
},
{
"group": "Integrations",
- "version": "0.0.7",
+ "version": "0.1",
"pages": [
- "0.0.7/integrations/introduction",
+ "0.1/integrations/introduction",
{
"group": "OpenAI",
- "version": "0.0.7",
+ "version": "0.1",
"pages": [
- "0.0.7/integrations/openai/introduction",
+ "0.1/integrations/openai/introduction",
{
"group": "Examples",
- "version": "0.0.7",
+ "version": "0.1",
"pages": [
- "0.0.7/integrations/openai/examples/chat",
- "0.0.7/integrations/openai/examples/image",
- "0.0.7/integrations/openai/examples/embeddings",
- "0.0.7/integrations/openai/examples/audio",
- "0.0.7/integrations/openai/examples/fine-tuning",
- "0.0.7/integrations/openai/examples/completions"
+ "0.1/integrations/openai/examples/chat",
+ "0.1/integrations/openai/examples/image",
+ "0.1/integrations/openai/examples/embeddings",
+ "0.1/integrations/openai/examples/audio",
+ "0.1/integrations/openai/examples/fine-tuning",
+ "0.1/integrations/openai/examples/completions"
]
}
]
},
{
"group": "Cohere",
- "version": "0.0.7",
+ "version": "0.1",
"pages": [
- "0.0.7/integrations/cohere/introduction",
+ "0.1/integrations/cohere/introduction",
{
"group": "Examples",
- "version": "0.0.7",
+ "version": "0.1",
"pages": [
- "0.0.7/integrations/cohere/examples/chat",
- "0.0.7/integrations/cohere/examples/generate",
- "0.0.7/integrations/cohere/examples/summarize",
- "0.0.7/integrations/cohere/examples/embed"
+ "0.1/integrations/cohere/examples/chat",
+ "0.1/integrations/cohere/examples/generate",
+ "0.1/integrations/cohere/examples/summarize",
+ "0.1/integrations/cohere/examples/embed"
]
}
]
},
{
"group": "Anthropic",
- "version": "0.0.7",
+ "version": "0.1",
"pages": [
- "0.0.7/integrations/anthropic/introduction",
+ "0.1/integrations/anthropic/introduction",
{
"group": "Examples",
- "version": "0.0.7",
+ "version": "0.1",
"pages": [
- "0.0.7/integrations/anthropic/examples/messages"
+ "0.1/integrations/anthropic/examples/messages"
]
}
]
@@ -218,41 +218,41 @@
{
"group": "Connections",
"pages": [
- "0.0.7/connections/intro",
- "0.0.7/connections/grafanaoss",
- "0.0.7/connections/grafanacloud",
- "0.0.7/connections/datadog",
- "0.0.7/connections/new-relic",
- "0.0.7/connections/signoz",
- "0.0.7/connections/dynatrace"
+ "0.1/connections/intro",
+ "0.1/connections/grafanaoss",
+ "0.1/connections/grafanacloud",
+ "0.1/connections/datadog",
+ "0.1/connections/new-relic",
+ "0.1/connections/signoz",
+ "0.1/connections/dynatrace"
],
- "version": "0.0.7"
+ "version": "0.1"
},
{
"group": "API Reference",
"pages": [
- "0.0.7/api-reference/introduction",
+ "0.1/api-reference/introduction",
{
"group": "API Keys",
"icon": "key",
"pages": [
- "0.0.7/api-reference/endpoint/api-keys/create",
- "0.0.7/api-reference/endpoint/api-keys/get",
- "0.0.7/api-reference/endpoint/api-keys/delete"
+ "0.1/api-reference/endpoint/api-keys/create",
+ "0.1/api-reference/endpoint/api-keys/get",
+ "0.1/api-reference/endpoint/api-keys/delete"
],
- "version": "0.0.7"
+ "version": "0.1"
},
{
"group": "Connections",
"icon": "link",
"pages": [
- "0.0.7/api-reference/endpoint/connections/create",
- "0.0.7/api-reference/endpoint/connections/delete"
+ "0.1/api-reference/endpoint/connections/create",
+ "0.1/api-reference/endpoint/connections/delete"
],
- "version": "0.0.7"
+ "version": "0.1"
}
],
- "version": "0.0.7"
+ "version": "0.1"
}
],
"analytics": {
@@ -262,7 +262,7 @@
},
"footerSocials": {
"github": "https://github.com/dokulabs/",
- "slack": "https://dokulabs.slack.com",
+ "slack": "https://join.slack.com/t/dokulabs/shared_invite/zt-2etnfttwg-TjP_7BZXfYg84oAukY8QRQ",
"twitter": "https://twitter.com/doku_labs"
}
-}
\ No newline at end of file
+}
diff --git a/src/client/src/app/(playground)/getting-started/page.tsx b/src/client/src/app/(playground)/getting-started/page.tsx
index 960de042..c4668716 100644
--- a/src/client/src/app/(playground)/getting-started/page.tsx
+++ b/src/client/src/app/(playground)/getting-started/page.tsx
@@ -31,7 +31,7 @@ export default function GettingStarted() {
<CodeBlock
className="text-xs"
code={`import dokumetry
-dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")`}
+dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")`}
language="python"
/>
<p className="mt-2">
@@ -53,8 +53,8 @@ client = OpenAI(
api_key="YOUR_OPENAI_KEY"
)
-# Pass the above \`client\` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
-dokumetry.init(llm=client, doku_url="YOUR_DOKU_URL", api_key="YOUR_DOKU_TOKEN")
+# Pass the above \`client\` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+dokumetry.init(llm=client, doku_url="YOUR_DOKU_INGESTER_URL", api_key="YOUR_DOKU_TOKEN")
chat_completion = client.chat.completions.create(
messages=[
@@ -106,7 +106,7 @@ chat_completion = client.chat.completions.create(
<CodeBlock
className="text-xs"
code={`import DokuMetry from "dokumetry";
-DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"});`}
+DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"});`}
language="javascript"
/>
<p className="mt-2">
@@ -128,8 +128,8 @@ const openai = new OpenAI({
apiKey: "My API Key", // defaults to process.env["OPENAI_API_KEY"]
});
-// Pass the above \`openai\` object along with your DOKU URL and API key and this will make sure that all OpenAI calls are automatically tracked.
-DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_URL", apiKey: "YOUR_DOKU_TOKEN"})
+// Pass the above \`openai\` object along with your Doku Ingester URL and API key and this will make sure that all OpenAI calls are automatically tracked.
+DokuMetry.init({llm: openai, dokuUrl: "YOUR_DOKU_INGESTER_URL", apiKey: "YOUR_DOKU_TOKEN"})
async function main() {
const chatCompletion = await openai.chat.completions.create({