Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: metric (#15436)

ecmadao23bbf1274d18
diff --git a/backend/store/stats.go b/backend/store/stats.go
index da31e41662..e3b271791e 100644
--- a/backend/store/stats.go
+++ b/backend/store/stats.go
@@ -155,7 +155,7 @@ func (s *Store) CountInstanceGroupByEngineAndEnvironmentID(ctx context.Context)
defer tx.Rollback()
rows, err := tx.QueryContext(ctx, `
- SELECT engine, environment, COUNT(1)
+ SELECT metadata->>'engine' AS engine, environment, COUNT(1)
FROM instance
WHERE id > 101 AND deleted = FALSE
GROUP BY engine, environment`,