Prompt
How do I set up alerts for changes in product usage?
Latest observation
To set up alerts for changes in product usage, you generally want to track a metric, define what “change” means, and then connect that metric to an alerting tool. Here’s a practical approach:
1) Pick the usage metric you care about
Examples:
- Daily active users (DAU)
- Weekly active users (WAU)
- Number of logins
- Feature adoption rate
- Time spent in app
- API calls per customer
- Conversion from trial to paid
Choose one that reflects product health or a specific feature.
2) Define the alert condition
Decide what should trigger an alert:
- Absolute drop/rise: e.g. DAU drops below 80% of normal
- Percent change: e.g. usage falls by 20% week-over-week
- Anomaly detection: alert when the metric deviates unusually from historical patterns
- Segment-specific change: e.g. usage for enterprise users drops, even if overall usage is stable
Good alert rules are usually based on a baseline:
- Compare against the same hour/day last week
- Use a moving average over the last 7 or 28 days
- Require the change to persist for more than one interval to reduce noise
3) Instrument the product properly
Make sure you’re logging events consistently:
- User ID
- Event name
- Timestamp
- Feature name / page / action
- Segment attributes (plan, region, device, customer type)
Without clean event data, alerts will be noisy or misleading.
4) Store the data somewhere queryable
Common options:
- Product analytics tools: Amplitude, Mixpanel, PostHog, GA4
- Data warehouse: BigQuery, Snowflake, Redshift
- Monitoring tools: Datadog, Grafana, Prometheus
- BI tools with alerting: Looker, Tableau, Power BI
5) Create the alert
Depending on your stack:
In a product analytics tool
Many tools let you:
- Build a chart for the metric
- Set a threshold or anomaly alert
- Send alerts to email, Slack, or webhook
In SQL + scheduler
If you use a warehouse:
- Write a SQL query to calculate the metric
- Compare it to a baseline
- Schedule it to run hourly/daily
- Send a notification if it crosses your threshold
Example logic:
- Compute today’s DAU
- Compute 7-day average
- Alert if today’s DAU is 25% below average
In observability tools
If you already use Datadog/Grafana/Prometheus:
- Send product metrics there
- Create a monitor using threshold or anomaly detection
- Route alerts to Slack, PagerDuty, email, etc.
6) Route alerts to the right place
Common alert destinations:
- Slack channel for product/engineering
- Email digest for less urgent trends
- PagerDuty/on-call for critical issues
- Webhook to internal systems
7) Reduce false positives
To make alerts useful:
- Add a minimum volume threshold
- Alert only after sustained change, not one-off dips
- Exclude known maintenance windows or releases
- Set different thresholds by segment
- Use anomaly detection instead of fixed thresholds when usage is seasonal
8) Monitor and refine
After setup:
- Review alerts weekly
- Tune thresholds
- Track how often alerts were actionable
- Add context to the alert message: metric, baseline, current value, segment, time window
Example alert rule
“Alert when DAU drops more than 15% compared to the 7-day moving average for 2 consecutive days.”
Example alert message
- Metric: Feature X weekly active users
- Current: 1,240
- Baseline: 1,780
- Change: -30%
- Segment: Paid customers
- Period: Last 24 hours
If you want, I can also help you with:
- a SQL query for usage alerts,
- setting this up in Datadog/Grafana/Looker, or
- designing a product analytics alert strategy.