Availability
Default Gateway Metrics
Whenopentelemetry.metrics.enabled is set to true, Tyk Gateway automatically exports three groups of metrics, no additional configuration required:
- Request metrics: Rate, Errors, and Duration (RED) for every API request
- Go runtime metrics: Memory, goroutines, and GC health
- Configuration state metrics: API/policy load counts and reload events
Request Metrics
These four instruments cover the standard RED signals for every API proxied by the Gateway.
The three-way latency breakdown is particularly useful for distinguishing gateway processing overhead from upstream service slowness.
Default Dimensions
Default dimensions vary by instrument:
You can add more dimensions to any instrument using custom metrics.
Go Runtime Metrics
These metrics are exported automatically and reflect the health of the Go runtime inside the Gateway process. They can be disabled by settingruntime_metrics: false in the metrics config.
Configuration State Metrics
These metrics reflect the operational state of the Gateway’s loaded configuration. They are useful for detecting silent configuration failures, for example, alerting when the number of loaded APIs drops unexpectedly.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
Using Resource Attributes in Prometheus
When using an OTel Collector to export to Prometheus, enableresource_to_telemetry_conversion to expose resource attributes as metric labels:
target_info metric and can be joined in PromQL.
Exemplars
Exemplars are sample observations attached to histogram metric data points that carry the active trace context (specifically thetrace_id and span_id of the request that produced the measurement). They create a direct, clickable link from an aggregated metric to the specific trace that caused an anomaly.
How they work in Tyk
When OpenTelemetry tracing is enabled and a histogram metric (such ashttp.server.request.duration) is recorded during an active sampled request, the OTel Go SDK automatically attaches the current trace and span IDs to the observation. Exemplars are only attached for sampled requests.