newrelic reporter pushes run results to the
New Relic Event API.
The reporter sends each test run as a MomenticRun custom event and each run
group as a MomenticRunGroup summary event. Query both with New Relic Query
Language (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
The reporter sendsMomenticRun once per executed test:
The reporter sends
MomenticRunGroup once per run as a summary:
The reporter adds custom
attributes from the config to both event types.