Skip to content

Kibana Gateway Metrics

This feature was introduced in Hydrolix version 6.6.

The cluster's Prometheus collects metrics from Kibana Gateway, which serves them on port 27182. Clusters that set prometheus_operator_installed also get a ServiceMonitor for them.

The metrics need Kibana Gateway v2.3.0 or later, the default version. A cluster that sets kibana_gateway_config.version to an earlier version exposes no metrics, and Prometheus reports the target as down.

Metric Type Components Description Labels
kgw_http_requests_total Counter Kibana Gateway Total HTTP requests Kibana Gateway received, by response status. status
kgw_http_request_duration_seconds Histogram Kibana Gateway Time in seconds from accepting an HTTP request to writing the response, by response status. status
kgw_http_active_requests Gauge Kibana Gateway HTTP requests Kibana Gateway is handling now.
kgw_operation_requests_total Counter Kibana Gateway Total operations Kibana Gateway ran, such as a search or a count, by operation and outcome. operation status
kgw_operation_request_duration_seconds Histogram Kibana Gateway Time in seconds to run an operation, by operation. operation
kgw_downstream_calls_total Counter Kibana Gateway Total calls from Kibana Gateway to Hydrolix or Elasticsearch, by destination and outcome. downstream status
kgw_downstream_call_duration_seconds Histogram Kibana Gateway Time in seconds for a call to Hydrolix or Elasticsearch, by destination. downstream
kgw_esql_rejections_total Counter Kibana Gateway Total ES|QL queries Kibana Gateway refused to run, by rejection kind and the construct that caused it. kind construct

Label values⚓︎

The labels take these values:

  • status on the HTTP and operation metrics: success for HTTP status codes 200 to 399, client_error for 400 to 499, and server_error for 500 and higher.
  • status on kgw_downstream_calls_total: success or error.
  • operation: the API route the request matched. A request that matches no route counts as unmatched.
  • kind: parse_error, unsupported_construct, verification_error, planning_rule, or internal.

The downstream label names where Kibana Gateway sent the call:

Value Call
clickhouse_query A query to Hydrolix
elastic_read, elastic_write A read or write sent to Elasticsearch
elastic_bypassed_read, elastic_bypassed_write A management request passed straight to Elasticsearch

The duration histograms share buckets from 0.05 to 30 seconds, the same boundaries other Hydrolix services use.