You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As for right now any query that has a subquery are not sharded.
For instance the following query is shardable avg(kube_pod_container_status_running) by (pod, namespace, cluster_id) but not avg(kube_pod_container_status_running[1h:1m]) by (pod, namespace, cluster_id)
returnfmt.Errorf("expressions with subqueries are not shardable")
Describe the solution you'd like
Seems like queries like avg(kube_pod_container_status_running[1h:1m]) by (pod, namespace, cluster_id) could also take advantage of the query vertical sharding.
The text was updated successfully, but these errors were encountered:
Is your proposal related to a problem?
As for right now any query that has a subquery are not sharded.
For instance the following query is shardable
avg(kube_pod_container_status_running) by (pod, namespace, cluster_id)
but notavg(kube_pod_container_status_running[1h:1m]) by (pod, namespace, cluster_id)
See:
thanos/pkg/querysharding/analyzer.go
Lines 92 to 94 in 25d91c1
Describe the solution you'd like
Seems like queries like
avg(kube_pod_container_status_running[1h:1m]) by (pod, namespace, cluster_id)
could also take advantage of the query vertical sharding.The text was updated successfully, but these errors were encountered: