On this page
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.
- 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. - 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-runfirst to read the summary before it is sent, then run it on a daily schedule. - 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.
Optional. Without it, Graphwake still needs only your spec.
Pick your tool
Azure API Management
Gateway logs in a Log Analytics workspace. The caller is the API Management subscription. Set it up for Azure API Management.
Azure Application Insights
The dependency calls your services record. The caller is the calling service. Set it up for Application Insights.
Datadog
APM client spans, counted for each calling service through Datadog's API. Set it up for Datadog.
OpenTelemetry
HTTP client spans your Collector writes to a file. The caller is the calling service. Set it up for OpenTelemetry.
Kong
The file-log plugin's log. The caller is the Kong consumer. Set it up for Kong.
NGINX
A JSON access log with a field that names the caller. Set it up for NGINX.
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.
calleris the caller's name, andcallerKindisclientorservice; an emptycallerKindcounts asclient.serviceis the Graphwake service that was called;methodandpathare the request, such asGETand/orders/8812.countis the number of calls, andlastSeenthe last day, such as2026-11-18.caller,method,pathandlastSeenare required;callerKind,serviceandcountmay be left empty.
caller,callerKind,service,method,path,count,lastSeen
checkout-web,client,orders,GET,/v1/orders/8812,42,2026-11-18graphwake usage query --source generic prints: the header and one example line.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-17orders-api.graphwake usage --source generic --input usage.csv --dry-runWhen 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.
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 trialSources and last verified
Sources checked on 2026-11-19.