Impact GateDocs

Guides

Find API consumers with repository evidence and Prometheus or Datadog

Match Prometheus and Datadog observations to API routes, distinguish traffic from caller identity, and use runtime evidence alongside static consumer analysis.

On this page

Why runtime evidence complements static analysis#

Static analysis shows supported callers it can find in selected repositories. Runtime evidence shows matched traffic observed by an existing Prometheus or Datadog source. They answer different questions and should be read together.

EvidenceWhat it contributesImportant boundary
Static callerA source-level relationship in an indexed consumer repository.Does not measure traffic or capture every deployed consumer.
Prometheus route countEstimated request counts from counter increases for a configured provider, method, route, and window.Requires stable route labels; counts do not reveal caller identity unless it is recorded.
Datadog indexed span countPositive activity among indexed APM spans grouped by configured facets.Sampling, retention, group limits, and query scope can omit traffic; it never proves zero usage.
Runtime dependency edgeA caller identity was supplied and mapped to an indexed consumer service.Route activity without caller context does not identify a source call site.

What you need for consumer evidence#

  • An indexed provider API with a stable HTTP method and route template, such as /orders/{id}. Full URLs containing customer IDs cannot be guessed into templates.
  • Prometheus instrumentation with a cumulative request counter and labels for provider service, method, and route, or Datadog indexed server request spans with service and route/resource facets.
  • A reviewed mapping between source service names and indexed provider services. For a runtime consumer edge, also provide a trustworthy low-cardinality caller identity and map it to an indexed consumer service.
  • A query window and source scope that match the decision being reviewed. A current observation is aggregate evidence, not the timestamp of the last request.

Impact Gate reads existing Prometheus or Datadog data and matches it to endpoints discovered in selected repositories. Prometheus needs a reachable query server and the configured authentication; Datadog needs an API key and an application key with apm_read.

Interpret runtime consumer evidence#

  1. Check the provider match

    Verify the mapped source service, HTTP method, and normalized route template. An unmatched row is not evidence for a different endpoint.

  2. Read the observation state

    Positive Prometheus estimates or Datadog indexed spans show matched activity. Missing rows, failed imports, stale observations, and omitted spans leave usage unknown.

  3. Check caller identity

    If the source includes a caller service and it is mapped to an indexed consumer, the graph can show runtime or combined evidence. Otherwise keep the caller unknown.

  4. Compare with static evidence

    Follow the consumer source reference and compare its commit with the observation window. Runtime route activity can confirm service-level use without proving that a particular source line executed.

Prometheus and Datadog evidence are not interchangeable#

SourceCurrent product representationConsumer-evidence use
PrometheusEstimated requests from increase() over a counter window. A complete explicit zero over at least 30 days can qualify for Retirement Radar's confirmed-zero highlighting.Use counts for route activity and an optional caller_service label for mapped runtime edges.
DatadogCounts of indexed APM spans from the configured aggregate query. The result can be sampled or limited.Use positive span activity and optional caller facets; never interpret missing or sampled spans as zero.
Both sourcesPrometheus is preferred for volume when both observe the same route; counts are not added together.Retain caller evidence available from either source and compare source windows separately.

Next actions when evidence is incomplete#

  • If no endpoint matches, inspect service mapping, method, route template, exporter labels, Datadog facets, and the provider's indexed contract.
  • If traffic is positive but no consumer is named, add or map caller identity or continue with static source references.
  • If a route appears unused, check at least a full Prometheus 30-day window where possible, then review external and scheduled consumers before deprecation.
  • If Datadog routes are missing, narrow the environment/provider query, check server request spans and searchable facets, and inspect the provider console for retention or sampling context.

Explore the documentation

↑↓ NavigateEnter Open guideSearch stays in your browser