PostHog / PostHog/posthog

Alert stays in “NOT FIRING” and notifications cannot be created

Open
#43,598 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
7h 27m
Merged PRs (30d)
222

Description

Bug Description

Please describe.
If this affects the front-end, screenshots would be of great help.

I’m trying to configure an alert on an insight so that it fires when a threshold is reached and sends a notification (email / webhook). We're sending events from an application made in Unity, using the .NET package.

The alert is created and enabled, but it never fires: it always appears in green with the status “NOT FIRING”, even when the underlying insight clearly exceeds the configured threshold.

Image

Additionally, when I try to add a new notification to this alert, the notification panel opens but the UI does not let me select any event for the filter, and the configuration cannot be completed even if it says it is saved. Because the notification won't appear, and no email (or other notification) is ever sent.

Image Image

Also, in the alerting section, the rules cannot be personalized to include the alerts with specific events and counts

Image

How to reproduce

  1. Create and save a Trend insight for a specific event, then create an Alert from that insight with a “has value” condition (for example, “more than 9”) and enable it.

  2. Generate enough events so that the insight metric clearly goes above the threshold, then check the alert status in the Alerts view: it remains in “NOT FIRING” instead of firing.

  3. From the same alert, click Add notification and try to configure a new notification (email / webhook): the UI does not allow selecting any event for the filter, the form is effectively incomplete, and the notification cannot be saved, so no email or webhook is ever sent.

Additional context

This behavior happens consistently every time I try to use alerts.

The main issues are:
Alert state never changes from “NOT FIRING” even when the condition is met.
Notification creation fails because no event can be selected in the filter, so the notification cannot be saved or triggered.

Debug info
- Self-Hosted Docker

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named in the report. Reproduce the alert condition and the Add notification flow in the self-hosted Docker setup, then trace the alert status and notification event-selection paths. Done means the alert changes to FIRING when the threshold is exceeded and a notification can be configured, saved, and delivered.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, react, typescript, unity
Domain
analytics, backend, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.