跳到主要内容
跳到主要内容

system.quotas_usage

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 for further details.

所有用户的配额使用情况。

列:

  • quota_name (String) — 配额名称。
  • quota_key (String) — 配额键值。
  • is_current (UInt8) — 当前用户的配额使用情况。
  • start_time (Nullable(DateTime)) — 计算资源消耗的开始时间。
  • end_time (Nullable(DateTime)) — 计算资源消耗的结束时间。
  • duration (Nullable(UInt32)) — 计算资源消耗的时间区间长度,单位为秒。
  • queries (Nullable(UInt64)) — 当前已执行的查询数量。
  • max_queries (Nullable(UInt64)) — 允许执行的各类查询的最大数量。
  • query_selects (Nullable(UInt64)) — 当前已执行的 SELECT 查询数量。
  • max_query_selects (Nullable(UInt64)) — 允许执行的 SELECT 查询的最大数量。
  • query_inserts (Nullable(UInt64)) — 当前已执行的 INSERT 查询数量。
  • max_query_inserts (Nullable(UInt64)) — 允许执行的 INSERT 查询的最大数量。
  • errors (Nullable(UInt64)) — 当前产生错误的查询数量。
  • max_errors (Nullable(UInt64)) — 在指定时间段内允许产生错误的查询最大数量。
  • result_rows (Nullable(UInt64)) — 当前时间段内所有查询结果集中行的总数。
  • max_result_rows (Nullable(UInt64)) — 在指定时间段内允许的所有查询结果集中行的最大总数。
  • result_bytes (Nullable(UInt64)) — 当前时间段内所有查询结果集的总字节数。
  • max_result_bytes (Nullable(UInt64)) — 在指定时间段内允许的所有查询结果集的最大总字节数。
  • read_rows (Nullable(UInt64)) — 当前时间段内执行所有查询时读取的行总数。
  • max_read_rows (Nullable(UInt64)) — 在指定时间段内允许在执行所有查询时读取的最大行数。
  • read_bytes (Nullable(UInt64)) — 当前时间段内执行所有查询时读取的总字节数。
  • max_read_bytes (Nullable(UInt64)) — 在指定时间段内允许在执行所有查询时读取的最大字节数。
  • execution_time (Nullable(Float64)) — 当前时间段内执行查询所花费的总时间(纳秒)。
  • max_execution_time (Nullable(Float64)) — 在指定时间段内允许执行所有查询的最大总时间(纳秒)。
  • written_bytes (Nullable(UInt64)) — 当前时间段内执行所有查询时写入的总字节数。
  • max_written_bytes (Nullable(UInt64)) — 在指定时间段内允许在执行所有查询时写入的最大字节数。
  • failed_sequential_authentications (Nullable(UInt64)) — 当前时间段内连续认证失败的次数。
  • max_failed_sequential_authentications (Nullable(UInt64)) — 在指定时间段内允许的连续认证失败最大次数。

另请参阅