Skip to content

metrics: Add seat metrics#10599

Open
Yopi wants to merge 1 commit intomainfrom
Yopi/seats-metric
Open

metrics: Add seat metrics#10599
Yopi wants to merge 1 commit intomainfrom
Yopi/seats-metric

Conversation

@Yopi
Copy link
Copy Markdown
Contributor

@Yopi Yopi commented Mar 26, 2026

Adds total, pending and claimed seats as metrics

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
polar Ready Ready Preview, Comment Apr 23, 2026 2:46pm
polar-sandbox Ready Ready Preview, Comment Apr 23, 2026 2:46pm

Request Review

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 26, 2026

OpenAPI Changes

Schemas

  • 🔀 MetricPeriod (modified)
    • 🔼 Property seat_utilization_rate added
    • 🔼 Property seats_claimed added
    • 🔼 Property churned_seat_customers added
    • 🔼 Property seats_total added
    • 🔼 Property seat_customers added
    • 🔼 Property new_seat_customers added
    • 🔼 Property seats_pending added
    • 🔼 Property average_seats_per_customer added
  • 🔀 Metrics (modified)
    • 🔼 Property seat_utilization_rate added
    • 🔼 Property seats_claimed added
    • 🔼 Property churned_seat_customers added
    • 🔼 Property seats_total added
    • 🔼 Property seat_customers added
    • 🔼 Property new_seat_customers added
    • 🔼 Property seats_pending added
    • 🔼 Property average_seats_per_customer added
  • 🔀 MetricsTotals (modified)
    • 🔼 Property seat_utilization_rate added
    • 🔼 Property seats_claimed added
    • 🔼 Property churned_seat_customers added
    • 🔼 Property seats_total added
    • 🔼 Property seat_customers added
    • 🔼 Property new_seat_customers added
    • 🔼 Property seats_pending added
    • 🔼 Property average_seats_per_customer added

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 26, 2026

Preview Environment
URL: https://polar-preview-vm.taildbff7b.ts.net/pr-10599
API: https://polar-preview-vm.taildbff7b.ts.net/pr-10599/v1/
Logs: backend
SHA: d2ebd89be3c8f7367293bf668fc9b310caab208c

Comment thread server/polar/metrics/metrics.py
Copy link
Copy Markdown
Member

@frankie567 frankie567 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds sensible, but it means we now have metrics that don't rely on Tinybird events?

@blacksmith-sh

This comment has been minimized.

Total, pending and claimed seats

This will give the merchant a bit more insights
into how their subscriptions are used by their
customers.
@Yopi
Copy link
Copy Markdown
Contributor Author

Yopi commented Apr 23, 2026

Sounds sensible, but it means we now have metrics that don't rely on Tinybird events?

I was sure I wrote a reply here, but it's lost.

We already have some metrics that are still based on SQL for various reasons. The revenue ones are because we need to look up the FX rate, and some other ones we don't have the data in Tinybird.

For the seats, I think that maybe we could introduce events where they are missing and generate them via Tinybird, but I didn't feel like it warrants doing that before rolling these out, and then we can do it based on performance.

ActiveSubscriptionsMetric
CommittedSubscriptionsMetric
MonthlyRecurringRevenueMetric
CommittedMonthlyRecurringRevenueMetric
AverageRevenuePerUserMetric
CheckoutsMetric
SucceededCheckoutsMetric
ChurnedSubscriptionsMetric
ChurnRateMetric

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants