The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add Elastic Tile to Supabase Metrics API page (#48564)
Ishleen Kaur3c903b7dfa4d
diff --git a/apps/docs/components/MetricsStackCards.data.ts b/apps/docs/components/MetricsStackCards.data.tsindex d9217a23019..04c76f26e02 100644--- a/apps/docs/components/MetricsStackCards.data.ts+++ b/apps/docs/components/MetricsStackCards.data.ts@@ -2,7 +2,7 @@ export type MetricsStackOption = {title: stringdescription: stringhref: string- iconKind: 'grafana' | 'datadog' | 'flame'+ iconKind: 'grafana' | 'datadog' | 'elastic' | 'flame'iconColor: stringiconBg: stringbadges: { label: string; variant: 'default' | 'community' }[]@@ -39,6 +39,16 @@ export const metricsStackOptions: MetricsStackOption[] = [iconBg: 'rgba(99,44,166,0.1)',badges: [{ label: 'Community', variant: 'community' }],},+ {+ title: 'Elastic',+ description:+ "Use Elastic's managed Supabase integration to scrape metrics. The integration automatically installs dashboards, alert templates, and SLO templates as data arrives.",+ href: 'https://www.elastic.co/docs/reference/integrations/supabase',+ iconKind: 'elastic',+ iconColor: '#00BFB3',+ iconBg: 'rgba(0,191,179,0.1)',+ badges: [{ label: 'Community', variant: 'community' }],+ },{title: 'Vendor-agnostic / BYO Prometheus',description:diff --git a/apps/docs/components/MetricsStackCards.tsx b/apps/docs/components/MetricsStackCards.tsxindex 895a5b7daee..6d02659cfc3 100644--- a/apps/docs/components/MetricsStackCards.tsx+++ b/apps/docs/components/MetricsStackCards.tsx@@ -1,4 +1,4 @@-import { Datadog, Grafana } from 'icons'+import { Datadog, Elastic, Grafana } from 'icons'import { Flame } from 'lucide-react'import Link from 'next/link'import type { ReactNode } from 'react'@@ -8,6 +8,7 @@ import { metricsStackOptions, type MetricsStackOption } from './MetricsStackCardconst ICONS: Record<MetricsStackOption['iconKind'], ReactNode> = {grafana: <Grafana className="h-5 w-5" />,datadog: <Datadog className="h-5 w-5" />,+ elastic: <Elastic className="h-5 w-5" />,flame: <Flame className="h-5 w-5" strokeWidth={1.5} />,}diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.tsindex 8f7c97d96f7..b0b872ff4e7 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts@@ -3047,6 +3047,10 @@ export const telemetry: NavMenuConstant = {name: 'Datadog',url: 'https://docs.datadoghq.com/integrations/supabase/' as `/${string}`,},+ {+ name: 'Elastic',+ url: 'https://www.elastic.co/docs/reference/integrations/supabase' as `/${string}`,+ },{name: 'Vendor-agnostic setup',url: '/guides/monitoring-and-debugging/metrics/vendor-agnostic' as `/${string}`,diff --git a/apps/docs/content/guides/monitoring-and-debugging/metrics.mdx b/apps/docs/content/guides/monitoring-and-debugging/metrics.mdxindex 98014a38966..addbd36aba8 100644--- a/apps/docs/content/guides/monitoring-and-debugging/metrics.mdx+++ b/apps/docs/content/guides/monitoring-and-debugging/metrics.mdx@@ -39,5 +39,6 @@ Pick the workflow that best matches your tooling. Cards link to Supabase-authore- [Supabase Grafana repository](https://github.com/supabase/supabase-grafana) for dashboard JSON and alert examples.- [Grafana Cloud’s Supabase integration doc](https://grafana.com/docs/grafana-cloud/monitor-infrastructure/integrations/integration-reference/integration-supabase/) (community-maintained, built on this Metrics API).- [Datadog’s Supabase integration doc](https://docs.datadoghq.com/integrations/supabase/) (community-maintained, built on this Metrics API).+- [Elastic’s Supabase integration doc](https://www.elastic.co/docs/reference/integrations/supabase) (community-maintained).- [Log Drains ](/docs/guides/monitoring-and-debugging/log-drains) for exporting event-based telemetry alongside metrics.- [Query Performance report](/dashboard/project/_/observability/query-performance) for built-in visualizations based on the same underlying metrics.diff --git a/packages/icons/__registry__/index.tsx b/packages/icons/__registry__/index.tsxindex ef6d1913e98..6c75467e9ee 100644--- a/packages/icons/__registry__/index.tsx+++ b/packages/icons/__registry__/index.tsx@@ -154,6 +154,16 @@ export const Index: Record<string, any> = [svg: "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\"\n stroke-width=\"1.5\">\n <path\n d=\"M18 12.1055C18 15.4192 15.3137 18.1055 12 18.1055C8.6863 18.1055 6.00001 15.4192 6.00001 12.1055C6.00001 8.79176 8.6863 6.10547 12 6.10547C15.3137 6.10547 18 8.79176 18 12.1055Z\" />\n <path\n d=\"M21.3999 5.70154C21.3999 7.35839 20.0568 8.70154 18.3999 8.70154C16.7431 8.70154 15.3999 7.35839 15.3999 5.70154C15.3999 4.04468 16.7431 2.70154 18.3999 2.70154C20.0568 2.70154 21.3999 4.04468 21.3999 5.70154Z\" />\n <path\n d=\"M8.62216 18.4363C8.62216 20.0932 7.27902 21.4363 5.62216 21.4363C3.96531 21.4363 2.62216 20.0932 2.62216 18.4363C2.62216 16.7795 3.96531 15.4363 5.62216 15.4363C7.27902 15.4363 8.62216 16.7795 8.62216 18.4363Z\" />\n <path\n d=\"M3.18121 16.2691C2.58401 15.0065 2.25 13.595 2.25 12.1055C2.25 6.72069 6.61522 2.35547 12 2.35547C13.4893 2.35547 14.9005 2.68937 16.163 3.28638M7.68679 20.852C8.98715 21.4944 10.4514 21.8555 12 21.8555C17.3848 21.8555 21.75 17.4902 21.75 12.1055C21.75 10.6162 21.4161 9.20493 20.8191 7.94242\" />\n</svg>",jsx: "import { EdgeFunctions } from \"icons\"\n <EdgeFunctions/>\n "},+{+ name: "elastic",+ componentName: "Elastic",+ deprecated: false,+ raw: "import createSupabaseIcon from '../createSupabaseIcon';\n\n/**\n * @component @name Elastic\n * @description Supabase SVG icon component, renders SVG Element with children.\n *\n * @preview \n *\n * @param {Object} props - Supabase icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Elastic = createSupabaseIcon(\n 'Elastic',\n [\n [\n 'path',\n {\n fill: '#0B64DD',\n stroke: '#fff',\n 'stroke-width': '1.2',\n d: 'M27.565 11.242c5.1 1.94 4.872 9.396-.245 11.127l-.162.055-.167-.039-5.28-1.238-.268-.063-.127-.244-1.4-2.69-.217-.417.352-.31 6.904-6.07.272-.24.338.13Z',\n key: 'el1',\n },\n ],\n [\n 'path',\n {\n fill: '#9ADC30',\n stroke: '#fff',\n 'stroke-width': '1.2',\n d: 'm22.047 21.239 4.8 1.125.316.074.11.304.066.19c.623 1.964-.26 3.78-1.652 4.797-1.434 1.048-3.51 1.32-5.182.022l-.29-.225.069-.361 1.037-5.454.117-.615.61.143Z',\n key: 'el2',\n },\n ],\n [\n 'path',\n {\n fill: '#1BA9F5',\n stroke: '#fff',\n 'stroke-width': '1.2',\n d: 'm5.01 9.63 5.267 1.255.283.067.122.264 1.235 2.65.187.4-.328.298-6.733 6.1-.272.248-.345-.132C1.939 19.83.72 17.456.752 15.153c.032-2.308 1.321-4.644 3.932-5.508l.162-.054.165.039Z',\n key: 'el3',\n },\n ],\n [\n 'path',\n {\n fill: '#F04E98',\n stroke: '#fff',\n 'stroke-width': '1.2',\n d: 'M6.281 4.32c1.416-1.08 3.48-1.387 5.222-.069l.297.226-.07.366-1.053 5.474-.118.615-.609-.144-4.8-1.137-.316-.075-.11-.306c-.709-1.967.149-3.876 1.557-4.95Z',\n key: 'el4',\n },\n ],\n [\n 'path',\n {\n fill: '#02BCB7',\n stroke: '#fff',\n 'stroke-width': '1.2',\n d: 'm12.466 14.433 7.03 3.211.188.086.095.183 1.555 2.985.096.184-.04.206-1.165 6.101-.024.122-.068.103c-2.68 3.958-6.902 4.71-10.268 3.26-3.356-1.447-5.834-5.07-5.126-9.736l.033-.21.158-.144 6.884-6.25.293-.265.36.164Z',\n key: 'el5',\n },\n ],\n [\n 'path',\n {\n fill: '#FEC514',\n stroke: '#fff',\n 'stroke-width': '1.2',\n d: 'M11.892 4.41C14.438.676 18.741.105 22.134 1.54c3.392 1.433 5.99 4.92 5.102 9.362l-.039.2-.153.133-7.066 6.213-.293.258-.353-.163-7.002-3.21-.201-.093-.094-.2-1.38-2.988-.081-.177.037-.19L11.8 4.633l.023-.121.07-.102Z',\n key: 'el6',\n },\n ],\n ],\n { fill: 'none', stroke: 'none', viewBox: '0 0 32 32' },\n);\n\nexport default Elastic;\n",+ component: React.lazy(() => import('icons/src/icons/elastic')),+ import: "import { Elastic } from 'icons'",+ svg: "<svg width=\"24\" height=\"24\" viewBox=\"0 0 32 32\" fill=\"none\" stroke=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill=\"#0B64DD\" stroke=\"#fff\" stroke-width=\"1.2\" d=\"M27.565 11.242c5.1 1.94 4.872 9.396-.245 11.127l-.162.055-.167-.039-5.28-1.238-.268-.063-.127-.244-1.4-2.69-.217-.417.352-.31 6.904-6.07.272-.24.338.13Z\"/>\n<path fill=\"#9ADC30\" stroke=\"#fff\" stroke-width=\"1.2\" d=\"m22.047 21.239 4.8 1.125.316.074.11.304.066.19c.623 1.964-.26 3.78-1.652 4.797-1.434 1.048-3.51 1.32-5.182.022l-.29-.225.069-.361 1.037-5.454.117-.615.61.143Z\"/>\n<path fill=\"#1BA9F5\" stroke=\"#fff\" stroke-width=\"1.2\" d=\"m5.01 9.63 5.267 1.255.283.067.122.264 1.235 2.65.187.4-.328.298-6.733 6.1-.272.248-.345-.132C1.939 19.83.72 17.456.752 15.153c.032-2.308 1.321-4.644 3.932-5.508l.162-.054.165.039Z\"/>\n<path fill=\"#F04E98\" stroke=\"#fff\" stroke-width=\"1.2\" d=\"M6.281 4.32c1.416-1.08 3.48-1.387 5.222-.069l.297.226-.07.366-1.053 5.474-.118.615-.609-.144-4.8-1.137-.316-.075-.11-.306c-.709-1.967.149-3.876 1.557-4.95Z\"/>\n<path fill=\"#02BCB7\" stroke=\"#fff\" stroke-width=\"1.2\" d=\"m12.466 14.433 7.03 3.211.188.086.095.183 1.555 2.985.096.184-.04.206-1.165 6.101-.024.122-.068.103c-2.68 3.958-6.902 4.71-10.268 3.26-3.356-1.447-5.834-5.07-5.126-9.736l.033-.21.158-.144 6.884-6.25.293-.265.36.164Z\"/>\n<path fill=\"#FEC514\" stroke=\"#fff\" stroke-width=\"1.2\" d=\"M11.892 4.41C14.438.676 18.741.105 22.134 1.54c3.392 1.433 5.99 4.92 5.102 9.362l-.039.2-.153.133-7.066 6.213-.293.258-.353-.163-7.002-3.21-.201-.093-.094-.2-1.38-2.988-.081-.177.037-.19L11.8 4.633l.023-.121.07-.102Z\"/>\n</svg>\n",+ jsx: "import { Elastic } from \"icons\"\n <Elastic/>\n "+},{name: "files-bucket",componentName: "FilesBucket",diff --git a/packages/icons/src/icons/elastic.ts b/packages/icons/src/icons/elastic.tsnew file mode 100644index 00000000000..3363932c4e4--- /dev/null+++ b/packages/icons/src/icons/elastic.ts@@ -0,0 +1,80 @@+import createSupabaseIcon from '../createSupabaseIcon';++/**+ * @component @name Elastic+ * @description Supabase SVG icon component, renders SVG Element with children.+ *+ * @preview + *+ * @param {Object} props - Supabase icons props and any valid SVG attribute+ * @returns {JSX.Element} JSX Element+ *+ */+const Elastic = createSupabaseIcon(+ 'Elastic',+ [+ [+ 'path',+ {+ fill: '#0B64DD',+ stroke: '#fff',+ 'stroke-width': '1.2',+ d: 'M27.565 11.242c5.1 1.94 4.872 9.396-.245 11.127l-.162.055-.167-.039-5.28-1.238-.268-.063-.127-.244-1.4-2.69-.217-.417.352-.31 6.904-6.07.272-.24.338.13Z',+ key: 'el1',+ },+ ],+ [+ 'path',+ {+ fill: '#9ADC30',+ stroke: '#fff',+ 'stroke-width': '1.2',+ d: 'm22.047 21.239 4.8 1.125.316.074.11.304.066.19c.623 1.964-.26 3.78-1.652 4.797-1.434 1.048-3.51 1.32-5.182.022l-.29-.225.069-.361 1.037-5.454.117-.615.61.143Z',+ key: 'el2',+ },+ ],+ [+ 'path',+ {+ fill: '#1BA9F5',+ stroke: '#fff',+ 'stroke-width': '1.2',+ d: 'm5.01 9.63 5.267 1.255.283.067.122.264 1.235 2.65.187.4-.328.298-6.733 6.1-.272.248-.345-.132C1.939 19.83.72 17.456.752 15.153c.032-2.308 1.321-4.644 3.932-5.508l.162-.054.165.039Z',+ key: 'el3',+ },+ ],+ [+ 'path',+ {+ fill: '#F04E98',+ stroke: '#fff',+ 'stroke-width': '1.2',+ d: 'M6.281 4.32c1.416-1.08 3.48-1.387 5.222-.069l.297.226-.07.366-1.053 5.474-.118.615-.609-.144-4.8-1.137-.316-.075-.11-.306c-.709-1.967.149-3.876 1.557-4.95Z',+ key: 'el4',+ },+ ],+ [+ 'path',+ {+ fill: '#02BCB7',+ stroke: '#fff',+ 'stroke-width': '1.2',+ d: 'm12.466 14.433 7.03 3.211.188.086.095.183 1.555 2.985.096.184-.04.206-1.165 6.101-.024.122-.068.103c-2.68 3.958-6.902 4.71-10.268 3.26-3.356-1.447-5.834-5.07-5.126-9.736l.033-.21.158-.144 6.884-6.25.293-.265.36.164Z',+ key: 'el5',+ },+ ],+ [+ 'path',+ {+ fill: '#FEC514',+ stroke: '#fff',+ 'stroke-width': '1.2',+ d: 'M11.892 4.41C14.438.676 18.741.105 22.134 1.54c3.392 1.433 5.99 4.92 5.102 9.362l-.039.2-.153.133-7.066 6.213-.293.258-.353-.163-7.002-3.21-.201-.093-.094-.2-1.38-2.988-.081-.177.037-.19L11.8 4.633l.023-.121.07-.102Z',+ key: 'el6',+ },+ ],+ ],+ { fill: 'none', stroke: 'none', viewBox: '0 0 32 32' },+);++export default Elastic;diff --git a/packages/icons/src/icons/index.ts b/packages/icons/src/icons/index.tsindex 97174acb47c..4348e1c6508 100644--- a/packages/icons/src/icons/index.ts+++ b/packages/icons/src/icons/index.ts@@ -13,6 +13,7 @@ export { default as ClickHouse } from './click-house';export { default as Database } from './database';export { default as Datadog } from './datadog';export { default as EdgeFunctions } from './edge-functions';+export { default as Elastic } from './elastic';export { default as FilesBucket } from './files-bucket';export { default as Grafana } from './grafana';export { default as Graphql } from './graphql';diff --git a/packages/icons/src/raw-icons/elastic.svg b/packages/icons/src/raw-icons/elastic.svgnew file mode 100644index 00000000000..d104b19fb93--- /dev/null+++ b/packages/icons/src/raw-icons/elastic.svg@@ -0,0 +1,8 @@+<svg width="24" height="24" viewBox="0 0 32 32" fill="none" stroke="none" xmlns="http://www.w3.org/2000/svg">+<path fill="#0B64DD" stroke="#fff" stroke-width="1.2" d="M27.565 11.242c5.1 1.94 4.872 9.396-.245 11.127l-.162.055-.167-.039-5.28-1.238-.268-.063-.127-.244-1.4-2.69-.217-.417.352-.31 6.904-6.07.272-.24.338.13Z"/>+<path fill="#9ADC30" stroke="#fff" stroke-width="1.2" d="m22.047 21.239 4.8 1.125.316.074.11.304.066.19c.623 1.964-.26 3.78-1.652 4.797-1.434 1.048-3.51 1.32-5.182.022l-.29-.225.069-.361 1.037-5.454.117-.615.61.143Z"/>+<path fill="#1BA9F5" stroke="#fff" stroke-width="1.2" d="m5.01 9.63 5.267 1.255.283.067.122.264 1.235 2.65.187.4-.328.298-6.733 6.1-.272.248-.345-.132C1.939 19.83.72 17.456.752 15.153c.032-2.308 1.321-4.644 3.932-5.508l.162-.054.165.039Z"/>+<path fill="#F04E98" stroke="#fff" stroke-width="1.2" d="M6.281 4.32c1.416-1.08 3.48-1.387 5.222-.069l.297.226-.07.366-1.053 5.474-.118.615-.609-.144-4.8-1.137-.316-.075-.11-.306c-.709-1.967.149-3.876 1.557-4.95Z"/>+<path fill="#02BCB7" stroke="#fff" stroke-width="1.2" d="m12.466 14.433 7.03 3.211.188.086.095.183 1.555 2.985.096.184-.04.206-1.165 6.101-.024.122-.068.103c-2.68 3.958-6.902 4.71-10.268 3.26-3.356-1.447-5.834-5.07-5.126-9.736l.033-.21.158-.144 6.884-6.25.293-.265.36.164Z"/>+<path fill="#FEC514" stroke="#fff" stroke-width="1.2" d="M11.892 4.41C14.438.676 18.741.105 22.134 1.54c3.392 1.433 5.99 4.92 5.102 9.362l-.039.2-.153.133-7.066 6.213-.293.258-.353-.163-7.002-3.21-.201-.093-.094-.2-1.38-2.988-.081-.177.037-.19L11.8 4.633l.023-.121.07-.102Z"/>+</svg>