larashed / agent
Larashed - Laravel monitoring toolkit
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 3 855
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- laravel/framework: 8.*
Requires (Dev)
- dms/phpunit-arraysubset-asserts: ^0.1 | ^0.2
- mockery/mockery: ^1.0
- orchestra/testbench: 6.*
- phpunit/phpunit: ^8.4 || ^9.0
- dev-main
- 8.1.2
- 8.1.1
- 8.1.0
- 8.0.3
- 8.0.2
- 8.0.1
- 8.0.0
- 7.x-dev
- 7.1.2
- 7.1.1
- 7.1.0
- 7.0.6
- 7.0.5
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.x-dev
- 6.1.2
- 6.1.1
- 6.1.0
- 6.0.17
- 6.0.16
- 6.0.15
- 6.0.14
- 6.0.13
- 6.0.12
- 6.0.11
- 6.0.10
- 6.0.9
- 6.0.8
- 6.0.7
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.8.x-dev
- 5.8.22
- 5.8.21
- 5.8.20
- 5.8.15
- 5.8.14
- 5.8.13
- 5.8.12
- 5.8.11
- 5.8.10
- 5.8.9
- 5.8.8
- 5.8.7
- 5.8.6
- 5.8.5
- 5.8.4
- 5.8.3
- 5.8.2
- 5.8.1
- 5.8.0
- 5.7.x-dev
- 5.7.17
- 5.7.16
- 5.7.15
- 5.7.14
- 5.7.13
- 5.7.12
- 5.7.11
- 5.7.10
- 5.7.9
- 5.7.8
- 5.7.7
- 5.7.6
- 5.7.5
- 5.7.4
- 5.7.3
- 5.7.2
- 5.7.1
- 5.7.0
- 5.6.x-dev
- 5.6.16
- 5.6.15
- 5.6.14
- 5.6.13
- 5.6.12
- 5.6.11
- 5.6.10
- 5.6.9
- 5.6.8
- 5.6.7
- 5.6.6
- 5.6.5
- 5.6.4
- 5.6.3
- 5.6.2
- 5.6.1
- 5.6.0
- 5.5.x-dev
- 5.5.16
- 5.5.15
- 5.5.14
- 5.5.13
- 5.5.12
- 5.5.11
- 5.5.10
- 5.5.9
- 5.5.8
- 5.5.7
- 5.5.6
- 5.5.5
- 5.5.4
- 5.5.3
- 5.5.2
- 5.5.1
- 5.5.0
- 5.4.x-dev
- 5.4.9
- 5.4.8
- 5.4.7
- 5.4.6
- 5.4.5
- 5.4.4
- 5.4.3
- 5.4.2
- 5.4.1
- 5.4.0
- 5.3.x-dev
- 5.3.12
- 5.3.11
- 5.3.10
- 5.3.9
- 5.3.8
- 5.3.7
- 5.3.6
- 5.3.5
- 5.3.4
- 5.3.3
- 5.3.2
- 5.3.1
- 5.3.0
- 5.2.x-dev
- 5.2.12
- 5.2.11
- 5.2.10
- 5.2.9
- 5.2.8
- 5.2.7
- 5.2.6
- 5.2.5
- 5.2.4
- 5.2.3
- 5.2.2
- 5.2.1
- 5.2.0
- dev-queue-tests
- dev-feature/shared-hosting
This package is auto-updated.
Last update: 2021-12-06 13:57:42 UTC
README
This package hooks into your Laravel application and sends monitoring data to larashed.com
- Version Compatibility
- Installation
- Configuration
- Running the agent
- Tracking deployments
- Golang agent
- Release history
Version Compatibility
We support all Laravel versions from 5.2.x
Laravel | Larashed Agent |
---|---|
5.2.x | 5.2.x |
5.3.x | 5.3.x |
5.4.x | 5.4.x |
5.5.x | 5.5.x |
5.6.x | 5.6.x |
5.7.x. | 5.7.x |
5.8.x. | 5.8.x |
6.x | 6.x |
7.x | 7.x |
8.x | 8.x |
Only Linux based environments are supported. macOS and Windows are coming.
Installation for Laravel 8.x
Using the composer require
command:
composer require larashed/agent
Installation for Laravel 7.x
Using the composer require
command:
composer require larashed/agent:7.*
Installation for Laravel 6.x
Using the composer require
command:
composer require larashed/agent:6.*
Installation for Laravel 5.x
Using the composer require
command:
composer require larashed/agent:5.x.*
For Laravel 5.4 and below, add service provider
Larashed\Agent\AgentServiceProvider::class
Configuration
Edit your .env
file and add the following:
LARASHED_APP_ID=<Your App ID> LARASHED_APP_KEY=<Your App key>
If you'd like to disable monitoring for certain environments use:
LARASHED_IGNORED_ENVS=env1,env2
By default requests are tracked with your application's user's Id and name. If you'd like to disable it, use:
LARASHED_COLLECT_USER_DATA=false
In some cases you may need to configure the agent to use a socket path not relative to the project's storage directory.
If you're running Linux on WSL (Windows Subsystem for Linux), you cannot make use of unix domain sockets located in /mnt
.
To change the directory of the domain socket use:
LARASHED_SOCKET_DIR=/absolute/dir/to/socket
Running the agent
Artisan command
php artisan larashed:agent
Supervisord
We recommend using Supervisord to keep the agent daemon alive, but you can use any software you prefer to keep it running.
[program:larashed-agent]
command=php /home/forge/app.com/artisan larashed:agent
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/home/forge/app.com/larashed-agent.log
Laravel Forge
For Laravel Forge users, go to your Server details page and setup a new Daemon.
Docker
Under development.
Tracking deployments
php artisan larashed:deploy
Publishing config file
The default agent config should suffice for most users, however if you need to change it, you'll have to publish it first.
To publish larashed.php
configuration file, run:
php artisan vendor:publish --tag=larashed
Golang agent
The larashed/agent
PHP composer package hooks into your application and collects the necessary metrics (HTTP requests, queue jobs, database queries, etc.), that data is then sent over IPC using a UNIX domain socket.
When you run php artisan larashed:agent
, it downloads our Golang agent which is responsible for a number of things:
- Starts the socket server
- Collects and sends server metrics
- Sends application metrics received from this package
We'd love to hear your feedback!
If you have any questions, feature requests, issues or just want to say hi, don't hesitate to get in touch via hello@larashed.com. For issues regarding this package, please submit a new issue in this repository.