Skip to content

Diagnostic exports ​

Diagnostic exports let an API client investigate Vibedata using operational logs, traces, metrics, and audit records. Use your Vibedata session or personal API key. You do not need separate Grafana credentials or direct access to its storage services. Your deployment must have Grafana configured.

Endpoints ​

Every path starts with /api/v1.

StepMethod and path
Submit a log searchPOST /observability/logs/query
Submit a trace searchPOST /observability/traces/query
Submit a correlated capturePOST /observability/correlate
Submit an instant metricPOST /observability/metrics/query
Submit a range metricPOST /observability/metrics/query_range
Submit an audit searchPOST /observability/audit/query
Poll a runGET /automation/runs/{runId}
Download the ZIPGET /observability/queries/{runId}/download
Discover metric namesGET /observability/metrics
Discover field definitionsGET /observability/fields
Discover observed field valuesGET /observability/fields/{field}/values

How to choose the evidence ​

  1. Choose one Intent, one Domain, or the instance. The choice travels in the request body as scope — {"kind":"intent","intentId":"…"} or {"kind":"domain","domainId":"…"} — and omitting it means the instance. There is no Domain- or Intent-specific URL. Vibedata limits evidence to your current access, including Intent sharing. Access to a Domain does not grant access to every Intent in it.
  2. Choose logs, traces, metrics, or audit records. Audit requires its own permission. You can also correlate logs, traces, and permitted audit evidence using a session, request, or trace identifier.
  3. Narrow the search with the filters supported by that operation. The self filter means your own activity within the selected scope. Multiple identifiers must all match; they do not expand your access.
  4. Choose a time range. Ordinary searches default to the last hour and accept a maximum one-hour interval. A trace ID or traceparent copied from DevTools can be used without other filters or timestamps to search retained evidence. An optional time range narrows that lookup.

Metric names and observed field values can be discovered before submitting a query. Discovery is bounded and subject to your access; it is not a complete inventory of the deployment.

How to retrieve an export ​

  1. Submit the diagnostic request from your API client and retain the returned run ID.
  2. Poll the run until it finishes.
  3. Download the ZIP using the download address returned by a successful run. A run with a warning can still have usable evidence.
  4. Read the manifest first. It identifies the request, source outcomes, queried time windows, and known coverage limits. The remaining files contain the native responses from the sources that completed successfully.

Only the authenticated requester can inspect or download the run, including when another user is a Vibedata Owner. Vibedata checks your access again when you download: the export must still be covered by the access you have at that moment. If you have since lost a Domain, an Intent, or audit access that the export was captured under, the download is refused with 403 and the code diagnostic.access_denied. You still need valid credentials; a revoked key no longer authenticates.

The same diagnostic.access_denied answers a capture whose scope can no longer be re-verified, so the code on its own does not prove that your access was revoked — check the scope you asked for and your current access.

The export keeps the evidence exactly as it was captured. Vibedata does not re-filter it to your current access; it refuses the download instead.

Your export remains available across backend restarts and routing changes while its shared file exists. It is retained for the deployment's diagnostic run-history retention plus a one-day safety margin, and the daily lifecycle job removes it after that, so an export is not stored indefinitely. Submit a new request if the file is gone, and keep your own copy if you need it longer.

Diagnostic requests are rate-limited per caller and per backend process. Submits (the six POST operations) allow 60 per minute. Downloads and discovery reads (GET of capabilities, settings, metrics, fields, fields/{field}/values and the download path) share 120 per minute. Polling a run uses a different limit. A refusal answers 429 with Retry-After; wait for that interval rather than retrying immediately.

How to interpret the result ​

OutcomeMeaning and next step
Queued or runningPoll again; the archive is not ready.
SucceededThe queried sources completed. Check the manifest for native result limits.
WarningSome evidence is usable, but a source failed, was denied, or reported partial results. Inspect the source outcomes.
FailedNo usable export was produced. Inspect the reported error before retrying.
Empty native resultThe query completed with no matches. This does not prove that no event occurred or that older evidence is retained.
Operation not supportedGrafana is not configured for this Vibedata deployment.
Source unavailableGrafana or a configured source could not serve the request. This is distinct from no matching records.
Missing artifactThe archive file is gone (410). Submit another request.

Error codes ​

Failures carry a stable dotted code in the response body, and a finished run reports the same vocabulary on its own error.code, so a code reads the same whichever surface you check.

CodeMeaning and next step
diagnostic.invalid_queryThe query is well-formed but not valid for that operation: step outside a range metric, metric selectors on a non-metric query, a correlation request with no identifier, or a trace-ID search with no verified retention. Change the request, not the credentials.
diagnostic.access_deniedYou lost access the capture depended on. A download answers it when your current access no longer covers the scope the export was captured under, or that scope could no longer be re-verified; a run reports it when you lost the authority before execution began. Check your current Domain, Intent and audit access.
diagnostic.resource_unavailableThe scope no longer exists — for example a Domain or Intent that was deleted while the request was running.
diagnostic.monitor_failedVibedata could not verify the run's queue state while executing it.
diagnostic.scope_too_largeA submit-time refusal: your access covers too many Domains or Intents to resolve into one authorized scope, so the query never runs — select one Intent. A download never answers this code; the same condition there is diagnostic.access_denied.
validation.failedThe request body did not match the schema — an unknown field, a malformed UUID, a wrong type, a contradictory trace ID and traceparent, or a window longer than one hour. This is the API-wide shape code, not a query result.

A download answers 409 while the run is queued or running, 404 for an unknown run or a run that belongs to another user, 410 when the archive file is gone, and 429 when the rate limit applies.

A client can also see these codes. The first two describe the archive; the others describe a run that could not complete.

CodeMeaning and next step
diagnostic.artifact_limitThe export is larger than 25 MiB (502). Narrow the query.
diagnostic.artifact_goneThe archive file is gone (410). Submit a new request.
diagnostic.artifact_invalidVibedata could not build the export from the collected files. Submit a new request.
diagnostic.artifact_unavailableThe archive could not be read now (503). Try again.
diagnostic.deadline_exceededThe run did not finish within its time budget. Narrow the query.
diagnostic.all_sources_failedEvery source failed, so the run produced no evidence. Inspect the reported error.
diagnostic.queue_unavailableVibedata could not queue the request (503). Try again.
diagnostic.failedThe run failed for a reason not listed here. Inspect the reported error.

The codes diagnostic.identity_invalid, diagnostic.retention_invalid, diagnostic.datasource_invalid, diagnostic.response_invalid and diagnostic.endpoint_invalid report a deployment or source setup problem. Give the code to your Vibedata Owner.

Audit Records answers its own audit_records.* codes; its shape failures are validation.failed too.

Native query limits still apply. A trace search returns matching span sets and native trace metadata; it does not promise a complete trace tree. Exports are limited to 25 MiB of uncompressed content, and queries have a 60-second execution budget. Oversized or interrupted responses are omitted and reported in the manifest when other sources succeeded.

Direct Grafana access is separately restricted to Vibedata Owners. Permission to use Vibedata diagnostic exports does not grant access to the shared Grafana UI.