Skip to main content
The newrelic reporter pushes run results to the New Relic Event API. Each test run is sent as a MomenticRun custom event and each run group as a MomenticRunGroup summary event, which can be queried with NRQL.

1. Configure the reporter

Add a reporting.newrelic block to momentic.config.yaml:
momentic.config.yaml
  • region defaults to US. Use EU for accounts in New Relic’s EU data center.
  • licenseKey is optional. If omitted, the reporter reads the NEW_RELIC_LICENSE_KEY environment variable. Use an ingest license key.
  • attributes adds static tags (e.g. service, team) to every event, useful when multiple projects report into the same account.
  • accountId, licenseKey, and attributes values all support ${ENV_VAR} interpolation.

2. Run with the New Relic reporter

Pass --reporter newrelic to momentic run:
Pass --reporter multiple times to combine reporters:

3. Event reference

MomenticRun is sent once per executed test: MomenticRunGroup is sent once per run as a summary: Custom attributes from the config are added to both event types.

4. Query in New Relic

Pass rate per test over the last day:
Alert on run group pass rate: