diff --git a/frontend/src/lib/components/Alerts/views/Alerts.tsx b/frontend/src/lib/components/Alerts/views/Alerts.tsx index 55d423add98e8..ede60d1e8523c 100644 --- a/frontend/src/lib/components/Alerts/views/Alerts.tsx +++ b/frontend/src/lib/components/Alerts/views/Alerts.tsx @@ -83,7 +83,7 @@ export function Alerts({ alertId }: AlertsProps): JSX.Element { to={urls.insightView(insight.short_id)} title={ -
{insight.name ?? insight.derived_name}
+
{insight.name || insight.derived_name}
} /> diff --git a/posthog/tasks/alerts/checks.py b/posthog/tasks/alerts/checks.py index 58abdfc34be94..35ee2394592cb 100644 --- a/posthog/tasks/alerts/checks.py +++ b/posthog/tasks/alerts/checks.py @@ -75,7 +75,7 @@ class TrendResult(TypedDict): ALERT_CHECKED_COUNTER = Counter( "alerts_checked", "Number of alerts we tried to check", - labelnames=["interval"], + labelnames=["calculation_interval"], ) @@ -215,7 +215,7 @@ def check_alert(alert_id: str) -> None: logger.warning("Alert not found or not enabled", alert_id=alert_id) return - ALERT_CHECKED_COUNTER.labels(interval=alert.calculation_interval).inc() + ALERT_CHECKED_COUNTER.labels(calculation_interval=alert.calculation_interval).inc() now = datetime.now(UTC) if alert.next_check_at and alert.next_check_at > now: