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 areporting.newrelic block to momentic.config.yaml:
momentic.config.yaml
regiondefaults toUS. UseEUfor accounts in New Relic’s EU data center.licenseKeyis optional. If omitted, the reporter reads theNEW_RELIC_LICENSE_KEYenvironment variable. Use an ingest license key.attributesadds static tags (e.g.service,team) to every event, useful when multiple projects report into the same account.accountId,licenseKey, andattributesvalues all support${ENV_VAR}interpolation.
2. Run with the New Relic reporter
Pass--reporter newrelic to
momentic run:
--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.