system.quota_usage
在 ClickHouse Cloud 中查询
该系统表中的数据在 ClickHouse Cloud 的每个节点上本地保存。因此,要获得所有数据的完整视图,需要使用 clusterAllReplicas
函数。有关更多详细信息,请参见 here。
当前用户的配额使用情况:已使用多少,剩余多少。
列:
quota_name
(String) — 配额名称。quota_key
(String) — 键值。例如,如果键 = [ip address
],quota_key
可能的值为 '192.168.1.1'。start_time
(Nullable(DateTime)) — 计算资源消耗的开始时间。end_time
(Nullable(DateTime)) — 计算资源消耗的结束时间。duration
(Nullable(UInt64)) — 计算资源消耗的时间间隔长度,单位为秒。queries
(Nullable(UInt64)) — 该时间间隔内的请求总数。query_selects
(Nullable(UInt64)) — 该时间间隔内的选择请求总数。query_inserts
(Nullable(UInt64)) — 该时间间隔内的插入请求总数。max_queries
(Nullable(UInt64)) — 最大请求数。errors
(Nullable(UInt64)) — 引发异常的查询数量。max_errors
(Nullable(UInt64)) — 最大错误数。result_rows
(Nullable(UInt64)) — 返回结果的行总数。max_result_rows
(Nullable(UInt64)) — 最大结果行数。result_bytes
(Nullable(UInt64)) — 用于存储查询结果的 RAM 占用字节数。max_result_bytes
(Nullable(UInt64)) — 存储查询结果所用的最大 RAM 占用字节数。read_rows
(Nullable(UInt64)) — 为运行查询而从所有远程服务器上的表中读取的源行总数。max_read_rows
(Nullable(UInt64)) — 从所有参与查询的表和表函数中读取的最大行数。read_bytes
(Nullable(UInt64)) — 从所有参与查询的表和表函数中读取的总字节数。max_read_bytes
(Nullable(UInt64)) — 从所有表和表函数中读取的最大字节数。failed_sequential_authentications
(Nullable(UInt64)) — 连续身份验证失败的总次数。如果用户在超过failed_sequential_authentications
阈值之前输入正确的密码,则计数器将重置。max_failed_sequential_authentications
(Nullable(UInt64)) — 最大连续身份验证失败次数。execution_time
(Nullable(Float64)) — 查询的总执行时间,单位为秒(墙时间)。max_execution_time
(Nullable(Float64)) — 查询执行时间的最大值。