Guide

Find your API consumers from gateway logs and traces

Last checked 2026-11-197 min read

Usage Discovery finds who calls each of your endpoints from the gateway logs or traces you already have. A step in your own pipeline reads them there and sends Graphwake only a summary: which caller used which endpoint, how often, and the last day it was seen. A team confirms a caller once, and every endpoint that caller uses becomes a subscription. It works with Azure API Management, Azure Application Insights, Datadog, OpenTelemetry, Kong and NGINX, and with anything else through a CSV. Usage Discovery is on Pro and Enterprise.

ExampleService graph · orders-api
GET/orders/{id}2 consumer teams
Service
orders-api
Owner
payments-team

Consumers

  • checkout · 4 peopleSlack #team-checkout
  • mobile-app · 6 peopleSlack #mobile-alerts

Suggested by Discovery

  • storefront · uses a neighbouring endpointmaybe · 72
GET/orders/{id}/invoiceBlind spot

No team subscribes to this endpoint. A breaking change here reaches no subscribed team.

Who owns an endpoint, who consumes it, and where nobody is listening. A suggested team is added only when someone confirms it.

Graphwake is for you if

  • Your services sit behind a gateway or send traces, and nobody keeps an accurate list of who calls what.
  • You want the map of consumers to come from real calls, confirmed by the teams that make them.
  • Your security team wants to read what leaves the network before the summary is sent.

Already using a gateway or a tracing tool? Keep it. Graphwake works next to it.

On this page
  1. How it works
  2. Pick your tool
  3. Anything else: a CSV with seven columns
  4. When the gateway sits in front of your services
  5. After a team confirms a caller
  6. What it does not do
  7. What is sent
  8. Questions

How it works

Usage Discovery is a step you run in your own pipeline, graphwake usage, part of the open source Graphwake agent. It reads an export from your gateway or tracing tool with your own access to it. Graphwake holds no credential for your gateway, your cloud or your tracing tool.

  1. Export the calls. A query or a log setting for your tool writes down who called which endpoint. graphwake usage query --source <preset> prints it.
  2. Read the summary, then send it. The step matches the requests to your endpoints and builds a summary; requests that match none are only counted. Run it with --dry-run first to read the summary before it is sent, then run it on a daily schedule.
  3. Confirm the callers. Callers appear in Discovery → Callers. A team confirms a caller once, and every endpoint the caller uses becomes a subscription of that team.
Only a summary leaves your networkInside your network, the graphwake usage step runs in your own pipeline and reads your gateway logs and traces. Requests and responses, headers and query strings, IP addresses and raw paths stay there, except the one value you choose as the caller name. Only a summary crosses into Graphwake: which caller called which endpoint, how often and when it was last seen. A team then confirms whether the caller is theirs.Your networkGateway logs and tracesgraphwake usageruns in your own pipelineStays hereRequests and responsesHeaders and query stringsIP addressesRaw pathsExcept the one value you choose as the caller name.summaryGraphwakecheckout-web → orders-apiGET /orders/{id} · about 14,200 calls · seen yesterdayIs checkout-web your team's?Suggested for checkout-teamConfirmNot us
Example. Graphwake receives who calls which endpoint and how often. Never the requests themselves.

Optional. Without it, Graphwake still needs only your spec.

Pick your tool

Anything else: a CSV with seven columns

Any tool that can export who called what can feed Usage Discovery through the generic preset. Write a CSV with a header line and these columns: caller, callerKind, service, method, path, count, lastSeen.

  • caller is the caller's name, and callerKind is client or service; an empty callerKind counts as client.
  • service is the Graphwake service that was called; method and path are the request, such as GET and /orders/8812.
  • count is the number of calls, and lastSeen the last day, such as 2026-11-18.
  • caller, method, path and lastSeen are required; callerKind, service and count may be left empty.
text
caller,callerKind,service,method,path,count,lastSeen
checkout-web,client,orders,GET,/v1/orders/8812,42,2026-11-18
What graphwake usage query --source generic prints: the header and one example line.
text
caller,callerKind,service,method,path,count,lastSeen
checkout-web,client,orders-api,GET,/orders/8812,14200,2026-11-18
partner-sync,client,orders-api,GET,/orders/5120,310,2026-11-17
Example: two callers of orders-api.
bash
graphwake usage --source generic --input usage.csv --dry-run
The generic preset also reads the same columns as a JSON array or as JSON lines.

When the gateway sits in front of your services

The step tries to match each request to one of your endpoints by its host and path. A call that went through a gateway carries the gateway's host, and often a path prefix of its own that your spec does not know. Add mapping rules on the usage source: each rule matches a gateway host, a path prefix or an API name, and sends those requests to one of your services. For example, gateway.internal with the prefix /orders goes to orders-api.

To see which rules you need, run the step with --dry-run. It lists the requests that matched no endpoint by host and path prefix; in a real run only their number is sent. The dry run prints that list to its output, which in CI is the job log: at most 20 rows, each with the host as it is (control characters escaped) and the first two segments of the path, where a segment that contains a digit, @ or %, or is longer than 24 characters, is printed as * and any other segment as it is. Requests to a host longer than 255 bytes are counted in one (other) row. A mapping rule decides first, then a host that one of your services' server URLs names. When an export holds the calls of one service only, --service <name> names the service for the requests neither decides; a path that matches none of its endpoints stays unmatched. A segment that mixes a parameter with fixed text, such as {id}.json in /files/{id}.json, is compared as fixed text: a request to /files/12.json does not match it, and counts as matching no endpoint unless another template, such as /files/{id}, matches it.

After a team confirms a caller

  • Every endpoint the caller uses becomes a subscription of that team, and new endpoints follow with later summaries.
  • A team member claims a caller for their own team, an Admin for any team. A suggestion can be confirmed, or dismissed with Not us.
  • A change that breaks an endpoint shows the callers no team has claimed yet on the impact page, and on GitHub and Azure DevOps in the pull request comment.
  • An Admin can ignore a caller that is not a client, such as a health check.

What it does not do

  • It never removes a subscription because traffic stopped. A job that runs once a quarter keeps its team.
  • It never subscribes a team without a confirmation. A team confirms each caller once, and a subscription the team removes is not added back.
  • It never needs access to your runtime. The step runs in your pipeline with your access to your logs, and Graphwake holds no credential for your gateway, your cloud or your tracing tool.

What is sent

A summary: the caller's name as your gateway or tracing tool knows it, the endpoint as a path template, the number of calls and the last day the caller was seen. Other than the one value you choose as the caller name, nothing from a request leaves your network: no body, header, query string or IP address. A summary that names more than 2,000 distinct callers is refused, because its caller field then usually names end users. A usage source holds at most 2,000 callers, claimed and ignored ones included. When a summary would take a source past that, the callers that are neither claimed nor ignored and are not named in that summary are removed, the ones last seen longest ago first, and the summary is refused only if that is still not enough. What the usage step sends lists every field.

See who your next breaking change reaches.Paste a spec URL or add one CI step. 7-day free trial. Cancel before day 7 and you pay nothing.
Start free trial

Questions

How does Graphwake know who calls an endpoint?

Teams subscribe to the endpoints they call. With Usage Discovery, on Pro and Enterprise, Graphwake also learns it from the gateway logs or traces you already have: a step in your own pipeline sends a summary, a team confirms a caller once, and its endpoints become subscriptions. Optional. Without it, Graphwake still needs only your spec.

Which gateways and tools does Usage Discovery support?

Azure API Management, Azure Application Insights, Datadog, OpenTelemetry, Kong and NGINX. Anything else can export a CSV with seven columns. Usage Discovery is optional.

Does Graphwake read our traffic?

No. Graphwake never receives a request or a response. Usage Discovery is optional: a step in your own pipeline reads your logs or traces there and sends only a summary of who calls which endpoint and how often.

Is Usage Discovery required?

No. It is optional, on Pro and Enterprise. Without it, Graphwake still needs only your spec, and teams subscribe to the endpoints they call.

Pick an endpoint. See who it reaches. 7-day free trial. Cancel before day 7 and you pay nothing.

Start free trial

Sources and last verified

Sources checked on 2026-11-19.