aurweb/web/lib
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
..
acctfuncs.inc.php Source valid ssh prefixes from config 2021-06-10 15:32:02 -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-08-31 19:39:27 -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 RSS: Add ability to specify isPermaLink="false" for GUID 2021-06-12 20:09:39 -07: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-02 18:51:45 -07:00
pkgbasefuncs.inc.php Stop redirecting stderr with proc_open 2021-02-20 11:24:30 -05:00
pkgfuncs.inc.php Add RSS feed for modified packages 2021-06-12 20:09:48 -07: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-02 18:51:45 -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