twenty20 / application-monitor-agent
Monitor cron and queue uptime.
Installs: 247
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/twenty20/application-monitor-agent
Requires
- php: ^8.1
- illuminate/bus: ^10.0|^11.0|^12.0
- illuminate/console: ^10.0|^11.0|^12.0
- illuminate/http: ^10.0|^11.0|^12.0
- illuminate/queue: ^10.0|^11.0|^12.0
- illuminate/support: ^10.0|^11.0|^12.0
README
Monitors scheduled tasks and queues by pinging the Application Monitor API every 5 minutes.
Installation
-
Add the site to the Application Monitor application
-
Install the agent:
composer require twenty20/application-monitor-agent
- Copy and update the below in your .env
APPLICATION_MONITOR_AGENT_ENDPOINT=
APPLICATION_MONITOR_AGENT_SITE_ID=
APPLICATION_MONITOR_AGENT_KEY=
APPLICATION_MONITOR_DEBUGGING_ENABLED=false
- Add the following to the console kernel/commands file in your app:
$schedule ->command('application-monitor-agent:run-agent') ->onOneServer() ->withoutOverlapping() ->everyFiveMinutes();