New Relic Synthetics Runner
New Relic Synthetics is a suite of automated, scriptable tools to monitor websites, critical business transactions, and API endpoints. New Relic Synthetics ensures the website is not only available but fully functional.
New Relic Synthetics Scripted Browsers emulate and run complex test cases against a website with real, Selenium-powered Google Chrome browsers to ensure critical processes like checkout and login are always running smoothly.
Depending on the complexity of monitors, building scripts using New Relic Synthetics IDE-style script editor can take longer than expected to productionize. Because, for each validation, New Relic has to provision and run the monitor job in one of their public minion locations.
This repository enable Synthetics managers to build and validate New Relic Synthetics Monitor Scripts on a local machine using Docker and ship faster the well-validated script to production in New Relic.
cd newrelic-synthetics-runner
DOCKER_IMAGE_NAME
and DOCKER_IMAGE_TAG
values in the go
script file./go setup
to pull newrelic/synthetics-minion-runner
docker imagesrc-simple-browser.js
src-script-browser.js
src-script-api.js
env-simple-browser
env-script-browser
env-script-api
./go <MONITOR-TYPE>
to validate the monitor script./go simple-browser
./go script-browser
./go script-api
./go all
to validate all the monitor types at onceoutput-simple-browser
directoryoutput-script-browser
directoryoutput-script-api
directory./go clean
./go help
to view the usage of this scriptNote: This repository is purely aimed to augment the velocity of building and validating the New Relic Synthetics Advanced Monitor Scripts under New Relic License and Acceptable Use Policy