mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 05:37:53 +08:00
Storage/SQL: Support more filter by namespace/group/resource (#99249)
This commit is contained in:
14
pkg/storage/unified/sql/testdata/sqlite--resource_stats-namespace.sql
vendored
Executable file
14
pkg/storage/unified/sql/testdata/sqlite--resource_stats-namespace.sql
vendored
Executable file
@ -0,0 +1,14 @@
|
||||
SELECT
|
||||
"namespace",
|
||||
"group",
|
||||
"resource",
|
||||
COUNT(*),
|
||||
MAX("resource_version")
|
||||
FROM "resource"
|
||||
WHERE 1 = 1
|
||||
AND "namespace" = 'default'
|
||||
GROUP BY
|
||||
"namespace",
|
||||
"group",
|
||||
"resource"
|
||||
;
|
Reference in New Issue
Block a user