Linking Metronome as a source

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Alpha release

This source is currently in alpha. The interface and available tables may change.

The Metronome connector syncs customers, invoices, contracts, and more into the PostHog data warehouse, so you can analyze them alongside your product data.

Prerequisites

Credentials that can read the data you want to sync. PostHog only reads data, so read access is enough.

Adding a data source

  1. In PostHog, go to the Sources tab of the data pipeline section.
  2. Click + New source and click Link next to this source.
  3. Enter your credentials (see Configuration below) and click Next.
  4. Select the tables you want to sync, choose a sync method and frequency, then click Import.

Once the syncs are complete, you can start querying this data in PostHog.

Create an API token in Metronome under Developer > API tokens. Metronome shows the token once, so copy it before closing the dialog.

You'll be asked for:

  • API token

Sync modes

Each table can be synced in one of several modes, depending on what the source supports:

  • Webhook (when available) – the source pushes changes to PostHog in real time. Fastest freshness, lowest ongoing cost, and the only mode that reliably captures updates and deletes.
  • Incremental – only new or updated rows are synced on each run, using a cursor field (such as an updated_at timestamp). Cheaper than a full refresh, but deletes aren't captured.
  • Append only – new rows are appended using a cursor field; existing rows are never updated. Ideal for immutable, append-only tables like event logs.
  • Full refresh – the whole table is reloaded on every sync. Use it when a table has no reliable cursor or when you need deletions reflected.

See sync methods for a full explanation of how each mode works and how to choose between them.

All Metronome tables are full refresh. Each sync replaces the contents of the table.

Configuration

OptionTypeRequired
API tokenpasswordYes
Hourly usage history (days)numberNo
Daily usage history (months)numberNo

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
customers

The companies or accounts you bill. Usage events, contracts and invoices all hang off a customer. Only active customers are synced; Metronome's list endpoint returns archived customers only as a separate, exclusive result set.

Full refresh——
invoices

Invoices issued to a customer, with their line items. Fetched per customer; Metronome has no account-wide invoice list endpoint.

Full refresh——
contracts

Contracts define what a customer is charged: the rate card in force, plus its commits, credits, overrides, discounts and scheduled charges. Fetched per customer from the v2 endpoint.

Full refresh——
products

Products are the billable things a rate card prices: usage, subscription, composite, fixed, or professional-services. Includes archived products.

Full refresh——
rate_cards

Rate cards hold the prices charged for products. Contracts reference a rate card rather than carrying prices themselves. The rates on a card are fetched separately and are not part of this table.

Full refresh——
packages

Packages are reusable contract templates: a rate card plus the commits, credits, overrides and charges a new contract should start with. Includes archived packages.

Full refresh——
billable_metrics

Billable metrics turn raw usage events into the quantities products charge for, by filtering events and aggregating a property. Includes archived metrics.

Full refresh——
pricing_units

The units prices and balances are denominated in: fiat currencies plus any custom credit types your account defines.

Full refresh——
plans

Plans are Metronome's original way to price a customer. This table lists the plans defined in your account, with each plan's name, description, and custom fields. Metronome has deprecated plans in favor of contracts. It holds plan definitions only, not which customer is on which plan, so it does not by itself link a plan to a customer or an invoice.

Full refresh——
usage

Aggregated usage per customer and billable metric, across every customer in the account. Each row is one lifetime total for a customer and metric pair. To see how much a customer used inside a period, sync the usage_daily or usage_hourly table instead.

Full refresh——
usage_daily

Usage per customer, billable metric and day, across every customer in the account. Use it to track what a customer consumed inside a billing period, or to chart usage over time. The first sync covers the last 365 days, and later syncs add each new day. The day in progress is included, and every sync updates it. Metronome accepts usage events backdated up to 34 days, so to keep earlier days up to date as well, set a lookback window in the table's sync settings.

Incremental, Full refreshstart_timestamp—
usage_hourly

Usage per customer, billable metric and hour, across every customer in the account. It answers the same questions as the daily table at a finer grain, which helps when you need to see spikes inside a day. It holds 24 times as many rows, so the first sync covers the last 30 days rather than a year. The hour in progress is included, and every sync updates it. Metronome accepts usage events backdated up to 34 days, so to keep earlier hours up to date as well, set a lookback window in the table's sync settings.

Incremental, Full refreshstart_timestamp—
audit_logs

One row per change made through the Metronome app or API: who did it, to what, and whether it succeeded. It is the only Metronome list endpoint with a server-side time filter, so each sync reads only the entries recorded since the last one.

Incremental, Full refreshtimestamp—

Troubleshooting

  • If the connection fails with an authorization error, the API token is wrong, expired, or has been revoked. Create a new one, then reconnect the source.
  • If a table syncs no rows, the credential may not have access to that data. Check its permissions, then reconnect the source.

If your sync is failing or data looks wrong, see the Data warehouse troubleshooting guide. If that doesn't help, contact support – we're happy to help.

Still have questions?

Was this page useful?