Skip to content

Multiple operators and functions can be used in a nested manner. The following example calculates the maximum values by resource and cluster and then obtains the top 3 maximum values.

SQL
topk(3, max by (cluster, resource)(apiserver_request_total))

图 13