This PR adds a table and an endpoint for collecting usage metrics for each site.
To get monitoring data some can call for example http://localhost:8080/api/monitoring?spotterId=SPOT-1576.
Also add a directly accessible page at /monitoring for site admins and super admins.
The available metrics:
Total Requests: the number of total request done
Registered Users Requests: sum of time series and csv download request done by registered users
Site Admin Requests: sum of time series and csv download request done by the site admins
resolves https://github.com/aqualinkorg/aqualink-app/issues/934
This PR adds a table and an endpoint for collecting usage metrics for each site. To get monitoring data some can call for example
http://localhost:8080/api/monitoring?spotterId=SPOT-1576
. Also add a directly accessible page at/monitoring
for site admins and super admins.The available metrics:
Total Requests
: the number of total request doneRegistered Users Requests
: sum of time series and csv download request done by registered usersSite Admin Requests
: sum of time series and csv download request done by the site adminsSite Visits
: times a dashboard is visitedCSV Downloads
: times a csv is downloaded