aurweb/web/lib
Kevin Morris aafde79148
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-05 16:11:38 -07:00
..
acctfuncs.inc.php Resolve SQL Error when deleting an account 2021-03-29 18:43:03 -04:00
aur.inc.php Fix invalid session ID check 2020-04-05 15:59:55 -04:00
aurjson.class.php RPC: add deprecation warning for v1-v4 usage 2021-09-03 21:10:03 -07:00
cachefuncs.inc.php Cache package provider and dependency information 2019-10-06 16:13:38 -04:00
confparser.inc.php confparser.inc.php: Add missing dollar sign 2018-05-12 12:37:16 +02:00
credentials.inc.php Move permission for LIST_COMMENTS to dev/tu block 2019-08-18 13:01:37 -04:00
DB.class.php Fix DB.class.php to match config and include SQLite support 2016-11-10 18:31:20 +01:00
feedcreator.class.php Avoid use of "<b>"/"</b>" 2012-09-24 12:23:05 +02:00
gettext.php Rename constructors to __construct 2016-01-28 22:55:32 +01:00
metricfuncs.inc.php feat(PHP): add aurweb Prometheus metrics 2021-10-05 16:11:38 -07:00
pkgbasefuncs.inc.php fix broken SQL query that always failed 2021-02-20 11:22:11 -05:00
pkgfuncs.inc.php pkg_search_page: Limit number of results on package search 2020-09-05 10:21:16 -04:00
pkgreqfuncs.inc.php Store timestamp and user ID when closing requests 2019-11-23 12:30:46 -05:00
routing.inc.php feat(PHP): add aurweb Prometheus metrics 2021-10-05 16:11:38 -07:00
stats.inc.php Handle empty resultset getting recent 10 packages 2018-03-21 07:45:26 +01:00
streams.php Rename constructors to __construct 2016-01-28 22:55:32 +01:00
timezone.inc.php Fix warning with invalid time zone 2017-02-27 18:20:00 +01:00
translator.inc.php Use native language name for Finnish 2019-05-24 12:37:08 -04:00
version.inc.php Release 5.0.0 2020-03-27 08:51:15 -04:00