system.quotas_usage
在 ClickHouse Cloud 中查询
该系统表中的数据在 ClickHouse Cloud 的每个节点上本地保存。因此,要获得所有数据的完整视图,需要使用 clusterAllReplicas
函数。有关更多详细信息,请参见 here。
所有用户的配额使用情况。
列:
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)) — 此时间段内的选择请求总数。max_query_selects
(Nullable(UInt64)) — 最大选择请求数。query_inserts
(Nullable(UInt64)) — 此时间段内的插入请求总数。max_query_inserts
(Nullable(UInt64)) — 最大插入请求数。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)) — 从所有表和表函数中读取的最大字节数。failed_sequential_authentications
(Nullable(Float64)) — 连续身份验证失败的总计数。如果用户在超过failed_sequential_authentications
阈值之前输入了正确的密码,则计数器将被重置。max_failed_sequential_authentications
(Nullable(Float64)) — 最大连续身份验证失败计数。execution_time
(Nullable(UInt64)) — 查询的总执行时间,以秒为单位(实际时间)。max_execution_time
(Nullable(UInt64)) — 最大查询执行时间。