Configuration
Metrics collection can be configured in your TrustGate configuration file:/metrics
endpoint in Prometheus format. These metrics provide insights into request processing, latency, connections, and overall system health.
Connection Metrics
gateway_id
: Unique identifier for the gateway instancestate
: Connection state (e.g., “active”)
Request Metrics
gateway_id
: Gateway instance identifiermethod
: HTTP method (GET, POST, etc.)status
: HTTP status code category (2xx, 4xx, 5xx)
Latency Metrics
TrustGate provides three types of latency histograms:- Overall Request Latency
- Detailed Route/Service Latency
- Upstream Service Latency
gateway_id
: Gateway instance identifierroute
: Route ID (for detailed and upstream metrics)service
: Service ID (for detailed and upstream metrics)type
: Request path (for overall latency)