# Billing & Quotas

Billing is per team, metered on gigabytes ingested: log lines, trace spans and
metric points all count toward the same included GB. Every team is on one of
three plans.

## Plans

| Plan     | Included data / month | Max sources | Retention | Price  |
| -------- | --------------------- | ----------- | --------- | ------ |
| Free     | 1 GB                  | 1           | 7 days    | $0/mo  |
| Pro      | 30 GB                 | 10          | 14 days   | $29/mo |
| Business | 100 GB                | 30          | 30 days   | $99/mo |

Business includes 30 sources, 30 monitors and 30 alerts, and you can add more
(see [Add-ons](#add-ons)). Manage your plan from your team's **Billing** page (owners, admins and
members with the Billing role; other members see a read-only notice instead).

## What happens when you exceed your included data

**Free plan:** ingestion hard-stops for the rest of the billing month once
you cross your included 1 GB, logs, traces and metrics together. New data is rejected with `429` and
`"error": "quota_exceeded"` until the month rolls over or you upgrade (see
[HTTP API Reference](https://tailcove.dev/docs/sending-logs/http-api#responses)). There's no
overage billing on the free plan since it has no payment method on file.

**Pro and Business plans:** extra usage is metered and billed as overage at
**$0.15 per GB**, in whole GB. Stripe invoices it as soon as it reaches $50, and
otherwise on your next invoice. You'll always know where you stand from the
usage figure on the Billing page.

Ingestion on a paid plan stops (`429`, `"error": "quota_exceeded"`) only at a
monthly ceiling, shown on the Billing page:

- **Your own overage cap.** Set the most GB over your plan you are willing to pay
  for in a month under **Billing, Usage over the included GB**. Empty means no cap
  of your own; `0` means no overage at all.
- **The platform's limit:** 100 GB of overage on Pro and 500 GB on Business until
  your first payment has gone through, then 2,000 GB and 10,000 GB. Contact us if
  you need more.
- **A failing payment:** once a payment has been failing for 3 days, ingestion
  stops at your included GB until it is paid.

## Usage emails and the Billing page

Owners, admins and billing members get an email as the month's data adds up:
once when usage reaches each share of the included GB you chose under **Billing,
Alerts and add-ons, Usage alerts** (50%, 75%, 80% or 90%; 80% unless you change
it), and always once at 100%. You can also ask for one email as soon as the
month's pace would end above your included GB, while there is still time to set
a cap or send less.

The Billing page's Overview shows an **estimate of the next invoice** (the plan,
overage so far and at the current pace, custom domains, client groups and AI
overage; tax, proration and coupons are on the invoice itself), **how much of
each plan limit is in use**, and the **GB ingested in each of the last 12
months**.

## How usage is measured

Every ingested log line, span and metric point is counted against its source by
its size in real time (a log line by its size as sent, a span or metric point by
its size as stored), and rolled up to a per-team, per-day total overnight. That daily
total is what both the Billing page's "month to date" figure and Stripe
overage reporting are based on. Usage attributed to a given day may take
until the next day's rollup to be reflected in your Stripe invoice, even
though it's enforced (for free-plan hard-stops) immediately as it's
ingested.

## Quota checks and cache freshness

To keep the ingest endpoint fast, it checks your plan and quota against a
cached copy of your source's data rather than querying the database or
Stripe on every request. That cache refreshes automatically (at most a
few minutes' delay), so a plan change (upgrading to lift a free-plan
block, for instance) takes effect shortly after checkout completes, not
necessarily on the very next request.

## Retention

Each source has its own retention setting (in days), capped by your
plan's retention limit at creation time. If your plan changes to a shorter
retention window later, your **plan's limit becomes a ceiling**: older
data is pruned lazily on the next nightly retention run rather than
deleted immediately, using whichever of the source's own setting and the
plan's limit is shorter.

An [issue](https://tailcove.dev/docs/issues#history-after-the-lines-expire) keeps its daily
counts, the number of users it hit and the deploys around it for longer than
its raw lines: 90 days on Free, 365 on Pro and 730 on Business. These are a
few numbers per issue per day, so they don't count toward your data.

## Payment issues

If a subscription payment fails, nothing is disabled immediately: the
Billing page shows a payment-issue notice until a later payment succeeds
and clears it. Separately, if you cancel a subscription, your plan stays
active through the end of the period you already paid for (shown on the
Billing page); once that subscription is actually terminated, the team is
downgraded to the Free plan's limits.

## Sources per plan

Free and Pro plans include 1 and 10 sources respectively; Business is
unlimited. This figure is shown for comparison on the Billing page
alongside your current source count.

## Other limits per plan

Each limit is checked when the thing is created. After a downgrade you keep what
you have, but monitors past the limit are paused, and only the oldest alerts,
SLOs and rollups up to the limit keep running.

| Limit                        | Free      | Pro        | Business   |
| ---------------------------- | --------- | ---------- | ---------- |
| Monitors                     | 1         | 10         | 30, then add-on |
| Shortest monitor interval    | 5 minutes | 30 seconds | 30 seconds |
| Monitor regions              | 1         | 2          | 3          |
| Alerts (across all sources)  | 5         | 20         | 30, then add-on |
| SLOs                         | 1         | 10         | 50         |
| Dashboards (widgets each)    | 1 (6)     | 5 (12)     | 25 (24)    |
| Status pages                 | 1         | 3          | 10         |
| Transform rules per source   | 3         | 15         | 50         |
| Log rollups per source       | 2         | 10         | 30         |
| Source maps per source       | 50        | 2,000      | 10,000     |
| Open shared log links        | 5         | 100        | 1,000      |
| Log exports per day          | 3         | 10         | 25         |
| Days an export is kept       | 1         | 7          | 30         |
| Days of issue history        | 90        | 365        | 730        |
| SMS / call minutes per month | none      | 100 / 60   | 300 / 120  |

A log export (a source's **Export** tab) is a gzipped NDJSON file of a time range, up to 31 days and 20 million
lines, optionally filtered by a search. It is deleted when its days are up. On Business a source can also make
one automatically every day or every week. Archiving to your own S3-compatible
bucket on a schedule is a Business feature and has no such expiry: the files are yours.

SMS and call minutes are included for [paging by phone](https://tailcove.dev/docs/on-call#paging-by-phone) and
[SMS alerts](https://tailcove.dev/docs/alerts#who-gets-email-and-sms); past them paging goes on at each country's rate (see
[Add-ons](#add-ons)). A two-factor code texted at sign-in is not counted.

## Add-ons

**More sources, monitors and alerts (Business).** Past the 30 of each that Business includes, each extra source
is **$2 a month** and each extra monitor or alert **$1 a month**. It is added to your subscription pro rata the
day you create it and taken off when you delete it. The **Add-ons** tab of the Billing page shows how many you
use and what they cost.

**Paging past the included texts and calls (Pro and Business).** Your plan's texts and call minutes count as a
credit at the US and Canada rate. Each text or call minute takes the rate of the country it goes to:

| Paging to                                                                 | Text | Call minute |
| ------------------------------------------------------------------------- | ---- | ----------- |
| US, Canada                                                                | 3¢   | 3¢          |
| UK, Ireland, EU countries, Norway, Switzerland, Australia, New Zealand, Singapore, Japan | 12¢  | 8¢          |
| Everywhere else                                                           | 30¢  | 20¢         |

Past the credit, paging keeps going and the extra goes on your next invoice after the month ends. A monthly cap
stops it before the bill gets big: **$50** unless you change it under **Billing, Add-ons, Paging by text and
phone**. `0` stops texts and calls once the included amount is used; email, Slack and the other channels keep
going either way. Less than $0.10 in a month is not charged.

**Longer retention (Pro and Business).** A source can keep its logs longer than the plan: up to **90 days** on
Pro and **365 days** on Business, set in the source's **Settings, Retention**. Each 30 days (or part) past the
plan's retention costs **$0.10 per GB** that source takes in that month, billed after the month ends. Sources keep
the plan's retention unless you choose more, and a downgrade shortens a longer one to the new plan's ceiling
straight away.

## Status page limits

A status page's custom domain is a Business feature at **$9 a month per
domain**, added to your subscription pro rata when you set a domain on a page and
taken off when you remove it. The custom logo and white label are included in
Business. The number of email subscribers a page can have is 100 on Free,
1,000 on Pro and 10,000 on Business. See [Status Pages](https://tailcove.dev/docs/status-pages).

## Client groups

Client groups (for agencies: sources and monitors grouped per client, members
restricted to one client, monthly client reports and the All clients view, where each
client shows its usage and opens a report page for any of the last twelve months) are a
Business add-on at **$5 a month per client group**, added to your subscription
pro rata as you create groups and taken off as you delete them. Groups you already
have keep working on every plan, but creating new ones needs Business.

## Alert email

Email sent by your alerts, monitors, issue rules and status-page subscriptions
counts toward a monthly budget, one per recipient: **1,000 on Free, 10,000 on Pro
and 50,000 on Business**. When it is used up, that email pauses until the first
of the month and your owners and admins get one notice; Slack, webhooks, SMS and
the other channels keep working. Sign-in, invitation and billing email is never
counted.

A monitor that keeps going down and up sends at most three "down" notifications
an hour (with the matching "up"); the rest are recorded but not sent. An alert
stays quiet for at least five minutes after it fires.

## Trace limits

Traces are limited per source by spans per minute: 1,000 on Free, 10,000 on
Pro and 50,000 on Business. Spans also count toward your included GB, like log
lines.

## Metrics limits

Metrics are limited per source by points per minute and distinct series. Metric
points also count toward your included GB, like log lines.

| Plan     | Points per minute | Distinct series |
| -------- | ----------------- | --------------- |
| Free     | 1,500             | 100             |
| Pro      | 15,000            | 1,000           |
| Business | 60,000            | 5,000           |

A series is one metric name on one host with one set of labels. Points for
a new series past your limit are dropped and counted in the response's
`over_series_limit`; points for existing series keep flowing. Over the
points-per-minute limit the request is refused with `429` and a
`Retry-After` header.
