api7 / api7/aisix

Datadog: define a metrics path, then ship a dashboard template

Open
#772 1 comment 1 reaction 1 assignee View on GitHub

@moonming is already working on this.

Since Jul 15, 2026.

enhancement
Dominant language
Rust
Stars
157
Forks
32
Avg merge
1h 25m
Merged PRs (30d)
145

Description

Description

Roughly 50 aisix_* Prometheus series are exposed on a dedicated metrics listener, and there is a native Datadog exporter — but it targets the Logs HTTP intake only (crates/aisix-obs/src/sink/datadog.rs), so there is no Datadog metrics/series path at all. observability.metrics.otlp parses into OtlpConfig but has no consumers; OTLP metrics export is still on the roadmap.

The repo also ships no importable dashboard template for any backend, and the docs contain no mapping from the aisix_* series to Datadog.

Requested, in order:

  1. Decide and implement how aisix_* metrics reach Datadog — Datadog metrics intake, Agent/OpenMetrics scrape of the metrics listener, log-based metrics off the existing intake, or finishing the OTLP metrics stub.
  2. Author a Datadog dashboard template, importable from the repo, covering requests and errors by model, latency percentiles, token throughput, cost, cache hit rate, guardrail blocks and rate-limit rejects.

Why

Teams standardised on Datadog judge an integration by whether metrics arrive and a dashboard exists to import; a logs-only exporter (#57, api7/AISIX-Cloud#688) does not give them a gateway view.

Prior art exists in the portfolio — the API7 EE datadog plugin ships metrics via DogStatsD.

Priority

Low.


Prior art

Product Has it Reference
LiteLLM Yes datadog_metrics callback + official Datadog integration tile
Bifrost Partial Datadog connector (enterprise)
Kong AI Gateway Partial Prometheus metrics, Datadog via plugin
Portkey Partial OTel export
Envoy AI Gateway No none found
Cloudflare AI Gateway No none found
Helicone No none found

LiteLLM is the only peer covering both halves, and has an official Datadog integration tile.

Surveyed 2026-07-15; every claim rests on a fetched docs/source page.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.