Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions apps/docs/content/guides/telemetry/metrics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,18 @@ The endpoint discussed in this article is not available on self-hosted.

## Accessing the metrics endpoint

Your project's metrics endpoint is accessible at `https://<project-ref>.supabase.co/customer/v1/privileged/metrics`. Access to the endpoint is secured via HTTP Basic Auth; the username is `service_role`, while the password is the service role JWT available through the Supabase dashboard.
Your project's metrics endpoint is accessible at `https://<project-ref>.supabase.co/customer/v1/privileged/metrics`.

Access to the endpoint is secured via HTTP Basic Auth:

- username: `service_role`
- password: the service role JWT from the [Supabase dashboard](https://supabase.com/dashboard/project/_/settings/api-keys)

<ProjectConfigVariables variable="url" />

```shell
> curl https://<project-ref>.supabase.co/customer/v1/privileged/metrics --user 'service_role:<service-role-jwt>'
curl <project-url>/customer/v1/privileged/metrics \
--user 'service_role:<service-role-jwt>'
```

## Supabase Grafana
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export interface LogsWarning {
linkText?: string
}
export interface LogsEndpointParams {
project: string // project ref
iso_timestamp_start?: string
iso_timestamp_end?: string
sql?: string
Expand Down
16 changes: 7 additions & 9 deletions apps/studio/components/interfaces/SignIn/LastSignInWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LastSignInType, useLastSignIn } from 'hooks/misc/useLastSignIn'
import { ReactNode } from 'react'

import { cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { Badge, cn } from 'ui'

export function LastSignInWrapper({
children,
Expand All @@ -15,14 +15,12 @@ export function LastSignInWrapper({
return (
<div className="flex items-center relative">
{lastSignIn === type && (
<Tooltip key={`last-sign-in-${type}`}>
<TooltipTrigger asChild className="absolute -right-8">
<div className="p-2 flex">
<div className="w-2.5 h-2.5 bg-brand rounded-full animate-pulse" />
</div>
</TooltipTrigger>
<TooltipContent>Last used</TooltipContent>
</Tooltip>
<Badge
variant="brand"
className="absolute -right-4 -top-3 rounded-full px-2 py-0.5 shadow z-10 bg-brand-400 bg-opacity-100 text-foreground pointer-events-none"
>
Last used
</Badge>
)}
<div
className={cn('w-full', {
Expand Down
Loading
Loading