This plugin creates a NewRelic alert policy, related synthetics monitors, and notification channels, utilizing workflows.
As monitoring can be sensitive in several cases not trying to be clever and delete resources. When resources are not needed anymore for the instance, the operator is responsible of cleaning them up, not the plugin.
pip install git+https://github.com/open-craft/tutor-contrib-newrelicAdd the following to the config:
NEWRELIC_API_KEY: <API_KEY>
NEWRELIC_ACCOUNT_ID: <ACCOUNT_ID>
NEWRELIC_REGION_CODE: <REGION (EU or US)>
NEWRELIC_SYNTHETICS_MONITORS:
- recipient: [email protected]
urls:
- https://instance.example.com/heartbeat
- https://instance.example.com/heartbeat?extended
- https://studio.instance.example.com/heartbeat
- https://mfe.instance.example.comEnable the plugin and create monitoring policy:
tutor plugins enable newrelic
tutor newrelic create-alert-workflowThis software is licensed under the terms of the AGPLv3, see LICENSE.txt.