Minimal NewRelic Functionality for Laravel
igormatkovic/laravel-newrelic is a Laravel package for minimal newrelic functionality for laravel.
It currently has 0 GitHub stars and 1.689 downloads on Packagist (latest version v0.1.2).
Install it with composer require igormatkovic/laravel-newrelic.
Discover more Laravel packages by igormatkovic
or browse all Laravel packages to compare alternatives.
Last updated
Simple NewRelic integration that names the APP in Newrelic for both CLI and Web requests.
It also includes a helper for the synthetics monitor and a deployment command helper.
You can install the package via composer:
composer require igormatkovic/laravel-newrelic
You can publish the config file with:
php artisan vendor:publish
These are the ENV variables you can edit
NEWRELIC_APP_NAME=MY.domain.com
NEWRELIC_API_KEY=some-api-key
NEWRELIC_APP_ID=1234567
NEWRELIC_DEFAULT_USER=[email protected]
# Optional
NEWRELIC_ENABLED=true
NEWRELIC_MONITOR_ENABLED=true
NEWRELIC_MONITOR_ENDPOINT="newrelic/ping"
NEWRELIC_MONITOR_RESPONSE=pong
Out of the box the App will automatically name the APP in NewRelic.
NewRelic > Synthetic monitoring
Click on the Create Monitor > Availability
Populate the fields:
Name: Ping Monitor
Url: https://mydomain.com/newrelic/ping
#Advanced Options
Text validation: pong
After each deployment you should run the Deployment trigger
Example if you are using Envoyer
php artisan newrelic:deploy "{{message}}" --user="{{author}}" --revision="{{sha}}" --changelog="Deployed from: {{branch}}"
composer test
The MIT License (MIT)