---
title: Knowledge Bases Telemetry
description: Metrics that DigitalOcean Insights collects from Knowledge Bases.
product: Insights
url: https://docs.digitalocean.com/products/insights/reference/telemetry/kbaas/
last_updated: "2026-11-19"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# Knowledge Bases Telemetry

Generated on 19 Nov 2026

DigitalOcean Insights provides metrics, logs, traces, dashboards, and alerts to help you monitor, analyze, and troubleshoot supported DigitalOcean resources.

DigitalOcean Insights collects the following telemetry from Knowledge Bases. Use the metric names when you query metrics or build dashboard charts, and use the attributes to filter and group the results.

## Metrics

| Metric | Description | Type | Unit | Attribute | Description |
|---|---|---|---|---|---|
| Retrieve Errors, `do.kbaas.retrieve_errors` | Total failed knowledge base retrieval requests by team and coarse failure class (bad_request, not_found, upstream_unavailable). | Counter (cumulative) | `{error}` | `error.code` | Error code associated with the metric. |
| Retrieve Request Duration Bucket, `do.kbaas.retrieve_request_duration_seconds_bucket` | KBaaS: Retrieve Request Duration (histogram buckets). | Counter (cumulative) | `s` | `kbaas.status` | Customer-facing KBaaS retrieve outcome (success or error). |
| | | | | `le` | Histogram bucket upper bound (Prometheus/OpenTelemetry le label). |
| Retrieve Request Duration Count, `do.kbaas.retrieve_request_duration_seconds_count` | Count of observed samples for KBaaS: Retrieve Request Duration. | Counter (cumulative) | | `kbaas.status` | Customer-facing KBaaS retrieve outcome (success or error). |
| Retrieve Request Duration Sum, `do.kbaas.retrieve_request_duration_seconds_sum` | Sum of observed samples for KBaaS: Retrieve Request Duration. | Counter (cumulative) | `s` | `kbaas.status` | Customer-facing KBaaS retrieve outcome (success or error). |
| Retrieve Requests, `do.kbaas.retrieve_requests` | Total knowledge base retrieval requests served by platform-gateway, by team and status (success or error). | Counter (cumulative) | `{request}` | `kbaas.status` | Customer-facing KBaaS retrieve outcome (success or error). |
| Retrieve Tokens, `do.kbaas.retrieve_tokens` | Tokens consumed by knowledge base retrieval (embedding and rerank), by team and operation. | Counter (cumulative) | `{token}` | `kbaas.operation` | KBaaS token-consumption operation (retrieve, rerank). |