aurweb/web/html
Kevin Morris 986fa9ee30
feat(PHP): add aurweb Prometheus metrics
Along with this initial requests metric implementation,
we also now serve the `/metrics` route, which grabs request
metrics out of cache and renders them properly for Prometheus.

**NOTE** Metrics are only enabled when the aurweb system admin
has enabled caching by configuring `options.cache` correctly
in `$AUR_CONFIG`. Otherwise, an error is logged about no cache
being configured.

New dependencies have been added which require the use of
`composer`. See `INSTALL` for the dependency section in regards
to composer dependencies and how to install them properly for
aurweb.

Metrics are in the following forms:

    aurweb_http_requests_count(method="GET",route="/some_route")
    aurweb_api_requests_count(method="GET",route="/rpc",type="search")

This should allow us to search through the requests for specific routes
and queries.

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-10-02 18:51:45 -07:00
..
css Port package details page to pure JavaScript 2021-06-21 15:19:22 -04:00
images Remove 'new' tag from updates table 2016-01-31 20:12:56 +01:00
js Add archweb typeahead implementation 2021-06-25 17:08:54 +02:00
404.php 404.php: Squelch warning on empty PATH_INFO 2017-02-27 18:20:00 +01:00
503.php Implement a maintenance mode 2015-06-11 14:32:21 +02:00
account.php Fix PHP notices in the account form 2020-04-05 15:59:56 -04:00
addvote.php Call check_sid() from a central location 2017-04-27 09:22:53 +02:00
comaintainers.php Call check_sid() from a central location 2017-04-27 09:22:53 +02:00
commentedit.php Call check_sid() from a central location 2017-04-27 09:22:53 +02:00
home.php Add archweb typeahead implementation 2021-06-25 17:08:54 +02:00
index.php feat(PHP): add aurweb Prometheus metrics 2021-10-02 18:51:45 -07:00
login.php Redirect to referer after SSO login 2021-02-20 11:25:21 -05:00
logout.php Implement SSO logout 2021-02-20 11:24:30 -05:00
metrics.php feat(PHP): add aurweb Prometheus metrics 2021-10-02 18:51:45 -07:00
modified-rss.php Add RSS feed for modified packages 2021-06-12 20:09:48 -07:00
packages.php Fix JavaScript error on packages overview page 2021-06-25 17:08:47 +02:00
passreset.php Add support for backup email addresses 2020-02-02 12:12:42 +01:00
pkgbase.php Add "Enable notifications" checkbox in "Add Comment" form 2019-04-28 08:58:29 -04:00
pkgdel.php Call check_sid() from a central location 2017-04-27 09:22:53 +02:00
pkgdisown.php Add capability for co-maintainers to disown packages 2018-02-24 14:57:31 +01:00
pkgflag.php Display warning when flagging VCS packages 2019-05-25 19:01:33 -04:00
pkgflagcomment.php Call check_sid() from a central location 2017-04-27 09:22:53 +02:00
pkgmerge.php Add archweb typeahead implementation 2021-06-25 17:08:54 +02:00
pkgreq.php Call check_sid() from a central location 2017-04-27 09:22:53 +02:00
register.php Add support for backup email addresses 2020-02-02 12:12:42 +01:00
rpc.php rpc.php: Display generated documentation 2015-10-04 11:40:38 +02:00
rss.php RSS: Decrease cache time and increase item count 2021-02-20 11:25:21 -05:00
tos.php Add support for Terms of Service documents 2017-04-30 16:47:13 +02:00
tu.php Call check_sid() from a central location 2017-04-27 09:22:53 +02:00
voters.php Stop using each() 2018-05-12 13:35:11 +02:00