Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: supavisor egress chart (#22424)

Kevin Grüneberg927b61e7cf19
diff --git a/apps/studio/lib/constants/metrics.tsx b/apps/studio/lib/constants/metrics.tsx
index 8e26b057e86..490f6fedde4 100644
--- a/apps/studio/lib/constants/metrics.tsx
+++ b/apps/studio/lib/constants/metrics.tsx
@@ -1,24 +1,31 @@
-import { IconActivity, IconArchive, IconDatabase, IconKey, IconHeart } from 'ui'
+import {
+ ActivityIcon,
+ ArchiveIcon,
+ DatabaseIcon,
+ ServerIcon,
+ KeyIcon,
+ HeartIcon,
+} from 'lucide-react'
export const METRIC_CATEGORIES = {
API: {
label: 'All API usage',
- icon: <IconActivity />,
+ icon: <ActivityIcon />,
key: 'api',
},
API_DATABASE: {
label: 'Database API',
- icon: <IconDatabase size={16} />,
+ icon: <DatabaseIcon size={16} />,
key: 'api_database',
},
API_AUTH: {
label: 'Auth API',
- icon: <IconKey size={16} />,
+ icon: <KeyIcon size={16} />,
key: 'api_auth',
},
API_STORAGE: {
label: 'Storage API',
- icon: <IconArchive size={16} />,
+ icon: <ArchiveIcon size={16} />,
key: 'api_storage',
},
API_REALTIME: {
@@ -28,9 +35,14 @@ export const METRIC_CATEGORIES = {
},
INSTANCE: {
label: 'Instance health',
- icon: <IconHeart size={16} />,
+ icon: <HeartIcon size={16} />,
key: 'instance',
},
+ SUPAVISOR: {
+ label: 'Supavisor',
+ icon: <ServerIcon size={16} />,
+ key: 'supavisor',
+ },
}
export const METRICS = [
@@ -314,6 +326,14 @@ export const METRICS = [
provider: 'daily-stats',
category: METRIC_CATEGORIES.API,
},
+
+ /** Supavisor */
+ {
+ key: 'total_supavisor_egress_bytes',
+ label: 'Supavisor Egress',
+ provider: 'daily-stats',
+ category: METRIC_CATEGORIES.SUPAVISOR,
+ },
]
export const TIME_PERIODS_BILLING = [