Skip to main content

Availability

Tyk Gateway Metrics

When opentelemetry.metrics.enabled is set to true, Tyk Gateway automatically exports four groups of metrics:
  1. Request metrics: Rate, Errors, and Duration (RED) for every API request
  2. Go runtime metrics: Memory, goroutines, and GC health
  3. Configuration state metrics: API/policy load counts and reload events
  4. Token exchange metrics: Volume, latency, and cache hit-rate for token exchange (Enterprise only)
All metrics are exported as OpenTelemetry-semantic-convention-compliant instruments and include resource attributes that identify the gateway instance.

Request Metrics

These four instruments cover the standard RED signals for every API proxied by the gateway. For how to use the three latency histograms together, see Request Metrics. The histograms can also carry exemplars that link a data point to a trace. See Exemplars.

Default Dimensions

Default dimensions vary by instrument: You can add more dimensions to any instrument using custom metrics.

Go Runtime Metrics

Tyk Gateway, Tyk Dashboard, and Tyk MDCB export the same set of Go runtime metrics. For what these mean and how to read them, see Go Runtime Metrics in the concepts page.

Configuration State Metrics

These metrics reflect the operational state of the gateway’s loaded configuration. For how to use them, see Configuration State Metrics.

Token Exchange Metrics

Token exchange is an Enterprise-only feature, available from Tyk 5.15.0. These metrics are only emitted on APIs with oauth2.tokenExchange configured.
These metrics cover every token exchange decision the gateway makes when exchanging an inbound token for a downstream token (RFC 8693).

Dimensions

All three metrics carry the following dimensions: Identity, audience, and requested scopes are never metric labels or dimensions. They’re only available in structured logs and audit events. See Token exchange observability.

Resource Attributes

Every metric exported from a gateway instance carries resource attributes, metadata that identifies the source. These are set once at startup and attached to all metrics.

Tyk-Specific Resource Attributes

Standard OTel Resource Attributes

To use resource attributes as labels in Prometheus, see Resource Attributes in Prometheus. Tyk Dashboard and Tyk MDCB also carry control_plane_id. See Control Plane Identity.

Tyk Dashboard Metrics

The Tyk Dashboard example dashboard shows its datastore connections, connected gateways, license usage, and pool saturation. Tyk Dashboard example dashboard in Grafana showing datastore and Redis connection status, connected gateways, late heartbeats, license seats used, license expiry, and connection pool saturation

Uptime

Gateway Node Registry

Full label detail (node version, tags, address, process ID) depends on the connecting gateway sending node metadata headers. Older gateways report a limited label set until you upgrade them. See Connectivity and Fleet Health.

Management API

License

See Expiry and Build Info.

Change Propagation

Objects and Governance

Tyk Dashboard refreshes these counts every 300 seconds by default, independently of the export interval. To change it, set opentelemetry.metrics.objects_metrics.collection_interval. The governance metrics are only exported when the license includes governance and opentelemetry.metrics.objects_metrics.governance is not set to false. The inventory metrics keep exporting without them.

Dependency Pressure

See Dependency and Pool Metrics.

Self Health

Certificate Expiry

Build Info and Exporter Health

Tyk MDCB Metrics

The Tyk MDCB example dashboard shows its dependency health, connection pools, and RPC requests. Tyk MDCB example dashboard in Grafana showing dependency health, connection pool saturation, connections in use, idle and pool size, and RPC requests by result and latency

Uptime

Connectivity and Churn

See Connectivity and Fleet Health.

RPC

Configuration and Key Sync Health

Analytics Ingestion

Dependency Pressure

See Dependency and Pool Metrics.

Self Health

Certificate and License Expiry

See Expiry and Build Info.

Build Info and Exporter Health

See Expiry and Build Info.

Tyk Developer Portal Metrics

The Tyk Developer Portal example dashboard shows the sync status for each provider. Tyk Developer Portal example dashboard in Grafana showing provider sync status, Tyk Dashboard reachability, time since last successful sync, failed syncs by cause, syncs per hour, and sync duration

Uptime

Provider Sync Health

See Provider Sync Health.

Self Health

See Dependency and Pool Metrics.