mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Observability Dashboard: unified overview for service health and
database infrastructure with interactive charts and metric cards (CPU,
memory, disk I/O, connections, error rate, slow queries).
* Service Health Monitoring: per-service health cards and a
multi-service table with error/warning counts and drill-down links to
reports/logs.
* Interval Selector: new chart-interval dropdown with plan-aware
retention messaging.
* Menu & Reports: updated Observability menu with Overview entry and
Custom Reports management.
* **Documentation**
* Added a footer link to troubleshooting guides.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
37 lines
743 B
TypeScript
37 lines
743 B
TypeScript
import type { ChartIntervals } from 'types'
|
|
|
|
export const LOG_RETENTION = {
|
|
free: 1,
|
|
pro: 7,
|
|
team: 28,
|
|
enterprise: 90,
|
|
platform: 1,
|
|
}
|
|
|
|
export const CHART_INTERVALS: ChartIntervals[] = [
|
|
{
|
|
key: '1hr',
|
|
label: 'Last 60 minutes',
|
|
startValue: 1,
|
|
startUnit: 'hour',
|
|
format: 'MMM D, h:mma',
|
|
availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
|
|
},
|
|
{
|
|
key: '1day',
|
|
label: 'Last 24 hours',
|
|
startValue: 24,
|
|
startUnit: 'hour',
|
|
format: 'MMM D, ha',
|
|
availableIn: ['free', 'pro', 'team', 'enterprise', 'platform'],
|
|
},
|
|
{
|
|
key: '7day',
|
|
label: 'Last 7 days',
|
|
startValue: 7,
|
|
startUnit: 'day',
|
|
format: 'MMM D',
|
|
availableIn: ['pro', 'team', 'enterprise'],
|
|
},
|
|
]
|