Skip to content

mixpanel_metric (Data Source)

Fetches a Mixpanel metric — a saved calculation that aggregates events or properties to produce a single measurable value. See also mixpanel_metric resource.

Example Usage

data "mixpanel_metric" "monthly_revenue" {
  project_id = 1234567
  metric_id  = 909
}

Only metric_id and project_id are inputs; the remaining attributes are populated from the fetched metric.

Returns metadata (name, description, type, created, modified, verified, is_locked, is_visible), creator and ownership details (created_by, owned_by, last_verified_by nested objects), permissions (can_view, can_share, can_update_basic, can_update_restricted, can_update_visibility, allow_staff_override), and contact information (contacts list).

Schema

Required

  • metric_id (Number)
  • project_id (Number)

Optional

  • definition (String)