Availability
Previews are available in two places:- In the Create metric dialog for custom metrics. For custom metrics, data previews let you validate your instrumented events by showing recent event samples as you create or edit the metric.
- In the Metric details tab for custom metrics if LaunchDarkly has received recent event data.
- In the Create metric dialog, the preview displays “No event data available to preview” and includes a Learn more link.
- In the Metric details tab, the preview component does not appear.
Preview contents
Previews display a table with up to five of the most recent events LaunchDarkly received for the selected Event key. Each row displays:- Timestamp: when the event occurred
- Value: for custom numeric metrics, the numeric value of the event
- Context kinds: such as user or organization keys
- Event properties: the event JSON, truncated in the table. You can click the truncated version or expand the row to view the full JSON and copy it.

Event data preview with recent events in the Create metric dialog.
Preview states
The data preview can display different states depending on the event data available:- Recent events shown: displays rows from the five most recent records.
- No recent events: displays “No event data available to preview.” You can still create the metric.
- Unable to load data: displays an error message if LaunchDarkly cannot retrieve data.
Example
Consider a custom numeric metric that measures purchase amount:- Review the five most recent purchase events the preview displays, including the “Timestamp,” “Context kind,” and “Event properties.”
- Expand a row to open or review the full event details and copy them if needed.
- Confirm that the health check shows the event has been received recently and that all analysis units have generated events in the last 14 days.

Event data preview with recent events in the Metric details tab.
About event data previewsData previews use the same event data source as the Event explorer. For a complete view of event history and payloads, use the event explorer.