Introduction
Many plugins, as well as October CMS itself, fire events to notify users about what's happening around them. For example, the RainLab User plugin fires rainlab.user.login
event to indicate that some user has successfully signed in. You can take advantage of these events to monitor your website.
Adding Events To Monitor
To monitor an event, simply add its fully qualified name to the list of events provided by this plugin. For example, you can add rainlab.user.login
to monitor how many users log in to your system over time.
Monitoring Events
After you add your desired events, they will be automatically logged as they happen. On the Statistics
page under the Event Counter
menu, you can see the time-series chart of any of your events by selecting the event name from a dropdown menu.
Known Bugs
- The data point is not shown on the chart if the data is available only for one day.
Planned Features
- Add dashboard widgets
- Add an alert for counters that go above or below a threshold
- Add counter for page visits
- Log event parameters
- Add support for Prometheus monitoring system
Contribution
Please feel free to
- Send Suggestions
- Report Bugs
- Send Pull Requests
Installation
- From the main menu, select Settings > Update & Plugins > Install Plugins
- In the search box, type: "Event Counter" and click on it to install.
Configuration
In order for the date and time of events to be logged correctly:
- Make sure the timezone in your
app.php
file is set toUTC
- Set the dashboard timezone according to your location (On the upper right corner of dashboard click on your avatar, click on Back-end preferences, then select your Timezone.)
-
This plugin has not been reviewed yet.
-
1.0.6 |
Make the event_name column unique in meysam_eventcounter_events table Jul 21, 2019 |
---|---|
1.0.5 |
Add foreign key constraint to event_id column in meysam_eventcounter_event_logs table Jul 13, 2019 |
1.0.4 |
Add date column to meysam_eventcounter_event_logs table Jul 13, 2019 |
1.0.3 |
Created table meysam_eventcounter_event_logs Jul 13, 2019 |
1.0.2 |
Created table meysam_eventcounter_events Jul 13, 2019 |
1.0.1 |
Initialize plugin. Jul 13, 2019 |