histogram_metrics

[Edit this page](https://github.com/ClickHouse/ClickHouse/tree/master/docs/en/operations/system-tables/histogram_metrics.md)

Querying in ClickHouse Cloud

The data in this system table is held locally on each node in ClickHouse Cloud. Obtaining a complete view of all data, therefore, requires the `clusterAllReplicas` function. See [here](/docs/operations/system-tables/overview#system-tables-in-clickhouse-cloud) for further details.

This table contains histogram metrics that can be calculated instantly and exported in the Prometheus format. It is always up to date. Replaces the deprecated `system.latency_log`.

Columns:

- `metric` ([String](/docs/sql-reference/data-types)) — Metric name.
- `value` ([Int64](/docs/sql-reference/data-types)) — Metric value.
- `description` ([String](/docs/sql-reference/data-types)) — Metric description.
- `labels` ([Map(String, String)](/docs/sql-reference/data-types)) — Metric labels.

**Example**

You can use a query like this to export all the histogram metrics in the Prometheus format.

```
SELECT
  metric AS name,
  toFloat64(value) AS value,
  description AS help,
  labels,
  'histogram' AS type
FROM system.histogram_metrics
FORMAT Prometheus
```

## Metric descriptions[​](#metric-descriptions "Direct link to Metric descriptions")

### keeper\_batch\_size\_bytes[​](#keeper_batch_size_bytes "Direct link to keeper_batch_size_bytes")

Size of batch sent to Raft in bytes.

### keeper\_batch\_size\_bytes[​](#keeper_batch_size_bytes "Direct link to keeper_batch_size_bytes")

Size of batch sent to Raft in bytes.

### keeper\_batch\_size\_bytes[​](#keeper_batch_size_bytes "Direct link to keeper_batch_size_bytes")

Size of batch sent to Raft in bytes.

### keeper\_batch\_size\_bytes[​](#keeper_batch_size_bytes "Direct link to keeper_batch_size_bytes")

Size of batch sent to Raft in bytes.

### keeper\_batch\_size\_bytes[​](#keeper_batch_size_bytes "Direct link to keeper_batch_size_bytes")

Size of batch sent to Raft in bytes.

### keeper\_batch\_size\_bytes[​](#keeper_batch_size_bytes "Direct link to keeper_batch_size_bytes")

Size of batch sent to Raft in bytes.

### keeper\_batch\_size\_bytes[​](#keeper_batch_size_bytes "Direct link to keeper_batch_size_bytes")

Size of batch sent to Raft in bytes.

### keeper\_batch\_size\_bytes[​](#keeper_batch_size_bytes "Direct link to keeper_batch_size_bytes")

Size of batch sent to Raft in bytes.

### keeper\_batch\_size\_bytes[​](#keeper_batch_size_bytes "Direct link to keeper_batch_size_bytes")

Size of batch sent to Raft in bytes.

### keeper\_batch\_size\_bytes\_sum[​](#keeper_batch_size_bytes_sum "Direct link to keeper_batch_size_bytes_sum")

Size of batch sent to Raft in bytes.

### keeper\_batch\_size\_elements[​](#keeper_batch_size_elements "Direct link to keeper_batch_size_elements")

Size of batch sent to Raft in elements.

### keeper\_batch\_size\_elements[​](#keeper_batch_size_elements "Direct link to keeper_batch_size_elements")

Size of batch sent to Raft in elements.

### keeper\_batch\_size\_elements[​](#keeper_batch_size_elements "Direct link to keeper_batch_size_elements")

Size of batch sent to Raft in elements.

### keeper\_batch\_size\_elements[​](#keeper_batch_size_elements "Direct link to keeper_batch_size_elements")

Size of batch sent to Raft in elements.

### keeper\_batch\_size\_elements[​](#keeper_batch_size_elements "Direct link to keeper_batch_size_elements")

Size of batch sent to Raft in elements.

### keeper\_batch\_size\_elements[​](#keeper_batch_size_elements "Direct link to keeper_batch_size_elements")

Size of batch sent to Raft in elements.

### keeper\_batch\_size\_elements[​](#keeper_batch_size_elements "Direct link to keeper_batch_size_elements")

Size of batch sent to Raft in elements.

### keeper\_batch\_size\_elements[​](#keeper_batch_size_elements "Direct link to keeper_batch_size_elements")

Size of batch sent to Raft in elements.

### keeper\_batch\_size\_elements[​](#keeper_batch_size_elements "Direct link to keeper_batch_size_elements")

Size of batch sent to Raft in elements.

### keeper\_batch\_size\_elements\_sum[​](#keeper_batch_size_elements_sum "Direct link to keeper_batch_size_elements_sum")

Size of batch sent to Raft in elements.

### keeper\_client\_queue\_duration\_milliseconds[​](#keeper_client_queue_duration_milliseconds "Direct link to keeper_client_queue_duration_milliseconds")

Time requests spend waiting to be enqueued and waiting in the queue before processed

### keeper\_client\_queue\_duration\_milliseconds[​](#keeper_client_queue_duration_milliseconds "Direct link to keeper_client_queue_duration_milliseconds")

Time requests spend waiting to be enqueued and waiting in the queue before processed

### keeper\_client\_queue\_duration\_milliseconds[​](#keeper_client_queue_duration_milliseconds "Direct link to keeper_client_queue_duration_milliseconds")

Time requests spend waiting to be enqueued and waiting in the queue before processed

### keeper\_client\_queue\_duration\_milliseconds[​](#keeper_client_queue_duration_milliseconds "Direct link to keeper_client_queue_duration_milliseconds")

Time requests spend waiting to be enqueued and waiting in the queue before processed

### keeper\_client\_queue\_duration\_milliseconds[​](#keeper_client_queue_duration_milliseconds "Direct link to keeper_client_queue_duration_milliseconds")

Time requests spend waiting to be enqueued and waiting in the queue before processed

### keeper\_client\_queue\_duration\_milliseconds\_sum[​](#keeper_client_queue_duration_milliseconds_sum "Direct link to keeper_client_queue_duration_milliseconds_sum")

Time requests spend waiting to be enqueued and waiting in the queue before processed

### keeper\_dispatcher\_requests\_queue\_time\_milliseconds[​](#keeper_dispatcher_requests_queue_time_milliseconds "Direct link to keeper_dispatcher_requests_queue_time_milliseconds")

Time request spends in dispatcher requests queue

### keeper\_dispatcher\_requests\_queue\_time\_milliseconds[​](#keeper_dispatcher_requests_queue_time_milliseconds "Direct link to keeper_dispatcher_requests_queue_time_milliseconds")

Time request spends in dispatcher requests queue

### keeper\_dispatcher\_requests\_queue\_time\_milliseconds[​](#keeper_dispatcher_requests_queue_time_milliseconds "Direct link to keeper_dispatcher_requests_queue_time_milliseconds")

Time request spends in dispatcher requests queue

### keeper\_dispatcher\_requests\_queue\_time\_milliseconds[​](#keeper_dispatcher_requests_queue_time_milliseconds "Direct link to keeper_dispatcher_requests_queue_time_milliseconds")

Time request spends in dispatcher requests queue

### keeper\_dispatcher\_requests\_queue\_time\_milliseconds[​](#keeper_dispatcher_requests_queue_time_milliseconds "Direct link to keeper_dispatcher_requests_queue_time_milliseconds")

Time request spends in dispatcher requests queue

### keeper\_dispatcher\_requests\_queue\_time\_milliseconds\_sum[​](#keeper_dispatcher_requests_queue_time_milliseconds_sum "Direct link to keeper_dispatcher_requests_queue_time_milliseconds_sum")

Time request spends in dispatcher requests queue

### keeper\_dispatcher\_responses\_queue\_time\_milliseconds[​](#keeper_dispatcher_responses_queue_time_milliseconds "Direct link to keeper_dispatcher_responses_queue_time_milliseconds")

Time response spends in dispatcher responses queue

### keeper\_dispatcher\_responses\_queue\_time\_milliseconds[​](#keeper_dispatcher_responses_queue_time_milliseconds "Direct link to keeper_dispatcher_responses_queue_time_milliseconds")

Time response spends in dispatcher responses queue

### keeper\_dispatcher\_responses\_queue\_time\_milliseconds[​](#keeper_dispatcher_responses_queue_time_milliseconds "Direct link to keeper_dispatcher_responses_queue_time_milliseconds")

Time response spends in dispatcher responses queue

### keeper\_dispatcher\_responses\_queue\_time\_milliseconds[​](#keeper_dispatcher_responses_queue_time_milliseconds "Direct link to keeper_dispatcher_responses_queue_time_milliseconds")

Time response spends in dispatcher responses queue