You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<palign="center"><imgsrc="/art/top.gif"alt="Real-time monitoring with Laravel Top"></p>
6
8
7
9
```php
8
10
php artisan top
9
11
```
10
-
**Top** provides real-time monitoring directly from the command line for Laravel applications. It is designed for production environments, enabling you to effortlessly track essential metrics and identify the busiest routes.
12
+
**Top** provides a lightweight solution for real-time monitoring directly from the command line for Laravel applications. It is designed for production environments, enabling you to effortlessly track essential metrics and identify the busiest routes.
13
+
14
+
## How it works
11
15
12
-
## How it works?
16
+
**Top** listens to Laravel events and saves aggregated data to Redis behind the scenes to calculate metrics. The aggregated data is stored with a short TTL, ensuring that historical data is not retained and preventing Redis from becoming overloaded. During display, metrics are calculated based on the average of the last 5 seconds of data.
13
17
14
-
**Top** listens to Laravel events and saves aggregated data to Redis hashes behind the scenes to calculate metrics. The aggregated data is stored with a short TTL, ensuring that historical data is not retained and preventing Redis from becoming overloaded. During display, metrics are calculated based on the average of the last 5 seconds of data.
18
+
**Top** only listens to events from incoming requests, so metrics from operations performed via queues or commands are not reflected.
19
+
20
+
Since the data is stored in Redis, the output of the top command reflects data from all application servers, not just the server where you run the command.
0 commit comments