Skip to main content

Metrics Reference

Metrics queries the metric streams of the environment with PromQL. Every series carries service_name, the integration or the gateway, and service_namespace, the environment.

Rationale: What metrics are for.

Camel metrics​

These series describe what the routes do: how many exchanges, how many at once, how long. They are the first place to look when a flow is slow or stalled.

MetricTypeUseful labels
camel_routes_runningGaugecamelcontext
camel_exchanges_totalCounterrouteid
camel_exchanges_inflightGaugerouteid
camel_route_policy_sum, camel_route_policy_countTimer: seconds and countrouteid
Exchange rate per route
sum(rate(camel_exchanges_total{service_name="orders-api"}[5m])) by (routeid)
Mean processing time per route, in milliseconds
(sum(rate(camel_route_policy_sum{service_name="orders-api"}[5m])) by (routeid)
/ sum(rate(camel_route_policy_count{service_name="orders-api"}[5m])) by (routeid)) * 1000

JVM and process metrics​

These series describe the health of the process that runs the routes. Look here when an integration restarts, slows down over time, or reaches its memory limit.

MetricTypeUseful labels
jvm_memory_usedGauge, bytesarea (heap, nonheap), id
jvm_threads_liveGauge—
jvm_gc_pause_sum, jvm_gc_pause_countTimergc
process_cpu_usageGauge, 0 to 1—
Mean GC pause, in milliseconds
(sum(rate(jvm_gc_pause_sum{service_name="orders-api"}[5m])) by (gc)
/ sum(rate(jvm_gc_pause_count{service_name="orders-api"}[5m])) by (gc)) * 1000

Gateway metrics (Envoy)​

These series describe traffic as the gateway sees it: what callers sent and what they received. They exist even when the backend is down.

MetricMeaningUseful labels
http_downstream_rq_totalRequests receivedenvoy_http_conn_manager_prefix
listener_http_downstream_rq_xxResponses by code classenvoy_response_code_class
http_downstream_rq_time_sum, http_downstream_rq_time_countRequest durationenvoy_http_conn_manager_prefix
http_downstream_cx_activeActive HTTP connectionsenvoy_http_conn_manager_prefix
listener_downstream_cx_active, listener_downstream_cx_totalConnections per listenerenvoy_listener_address
cluster_upstream_cx_activeConnections to backendsenvoy_cluster_name
listener_ssl_handshakeTLS handshakesenvoy_listener_address
Share of 5xx responses
sum(rate(listener_http_downstream_rq_xx{envoy_response_code_class="5"}[5m]))
/ sum(rate(listener_http_downstream_rq_xx[5m]))

An empty chart​

A chart stays empty when the stream of its first metric does not exist yet: the integration has not emitted that meter. camel_route_policy_* appears after the first exchange, jvm_gc_pause_* after the first collection.