system.quota_usage
在 ClickHouse Cloud 中查询
此系统表中的数据在 ClickHouse Cloud 中的每个节点上本地保存。因此,要获得所有数据的完整视图,需要使用 clusterAllReplicas
函数。有关进一步的详细信息,请参见 这里。
当前用户的配额使用情况:使用了多少,剩余多少。
列:
quota_name
(String) — 配额名称。quota_key
(String) — 键值。例如,如果 keys = [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)) — 查询执行时间的最大值。