Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(alerts): list platform alerts in the sidebar as unreleased behind its flag (#126156)

Jon McCallumfeefb12b6614
diff --git a/frontend/src/layout/panel-layout/sidebarProductMeta.ts b/frontend/src/layout/panel-layout/sidebarProductMeta.ts
index 0852fa29106b..5d2ff4ce0c26 100644
--- a/frontend/src/layout/panel-layout/sidebarProductMeta.ts
+++ b/frontend/src/layout/panel-layout/sidebarProductMeta.ts
@@ -74,6 +74,7 @@ export const SIDEBAR_PRODUCTS_WITHOUT_DOCS = new Set<string>([
'Code review',
'Engineering analytics',
'Identity matching',
+ 'Platform alerts',
'Product tours',
'Pulse',
'Transactional',
diff --git a/frontend/src/products.json b/frontend/src/products.json
index 0ac984a1b6d7..87edef5abea5 100644
--- a/frontend/src/products.json
+++ b/frontend/src/products.json
@@ -42,6 +42,7 @@
"type": "llm_prompts",
"intents": ["llm_prompts"]
},
+ { "path": "Platform alerts", "category": "Unreleased", "iconType": "inbox", "type": null, "intents": [] },
{
"path": "Application observability",
"category": "Monitoring",
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index 6425e64cefb5..92ec406f8029 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -740,7 +740,13 @@ export const productConfiguration: Record<string, any> = {
iconType: 'inbox',
description: 'Monitor insight metrics and get notified when conditions are met.',
},
- PlatformAlerts: { name: 'Platform alerts', projectBased: true, iconType: 'inbox' },
+ PlatformAlerts: {
+ name: 'Platform alerts',
+ description:
+ 'Get told when your logs or data cross a threshold you set, in Slack, email, PagerDuty, or another tool.',
+ projectBased: true,
+ iconType: 'inbox',
+ },
PlatformAlert: { name: 'Platform alert', projectBased: true, iconType: 'inbox' },
PrecomputeDebug: {
projectBased: true,
@@ -2401,6 +2407,7 @@ export type ProductTreePath =
| 'MCP servers'
| 'Metrics'
| 'Notebooks'
+ | 'Platform alerts'
| 'Playground'
| 'Product analytics'
| 'Product tours'
@@ -3041,6 +3048,17 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [
sceneKey: 'Notebooks',
sceneKeys: ['Notebook', 'Notebooks'],
},
+ {
+ path: 'Platform alerts',
+ intents: [],
+ category: ProductItemCategory.UNRELEASED,
+ iconType: 'inbox',
+ href: urls.platformAlerts(),
+ searchKeywords: ['alerts', 'alerting', 'notifications', 'monitors'],
+ flag: FEATURE_FLAGS.PLATFORM_ALERTS,
+ sceneKey: 'PlatformAlerts',
+ sceneKeys: ['PlatformAlerts', 'PlatformAlert'],
+ },
{
path: 'Playground',
intents: [ProductKey.AI_OBSERVABILITY],
diff --git a/products/alerts_platform/manifest.tsx b/products/alerts_platform/manifest.tsx
index dabb5e689b39..9e54ee84b6b7 100644
--- a/products/alerts_platform/manifest.tsx
+++ b/products/alerts_platform/manifest.tsx
@@ -1,10 +1,16 @@
-import { ProductManifest } from '../../frontend/src/types'
+import { FEATURE_FLAGS } from 'lib/constants'
+import { urls } from 'scenes/urls'
+
+import { ProductItemCategory } from '~/queries/schema/schema-general'
+import { ProductManifest } from '~/types'
export const manifest: ProductManifest = {
name: 'AlertsPlatform',
scenes: {
PlatformAlerts: {
name: 'Platform alerts',
+ description:
+ 'Get told when your logs or data cross a threshold you set, in Slack, email, PagerDuty, or another tool.',
import: () => import('./frontend/PlatformAlertsScene'),
projectBased: true,
iconType: 'inbox',
@@ -27,5 +33,17 @@ export const manifest: ProductManifest = {
},
fileSystemTypes: {},
treeItemsNew: [],
- treeItemsProducts: [],
+ treeItemsProducts: [
+ {
+ path: 'Platform alerts',
+ intents: [],
+ category: ProductItemCategory.UNRELEASED,
+ iconType: 'inbox',
+ href: urls.platformAlerts(),
+ searchKeywords: ['alerts', 'alerting', 'notifications', 'monitors'],
+ flag: FEATURE_FLAGS.PLATFORM_ALERTS,
+ sceneKey: 'PlatformAlerts',
+ sceneKeys: ['PlatformAlerts', 'PlatformAlert'],
+ },
+ ],
}