0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-31 19:08:59 +01:00

modules/stats: Rename metrics to stats.

This commit is contained in:
Jason Volk 2019-08-03 14:58:52 -07:00
parent 07c29ab914
commit d5206cd22c

View file

@ -17,27 +17,27 @@ IRCD_MODULE
};
resource
metrics_resource
stats_resource
{
"/metrics",
"/stats",
{
"Prometheus Metrics"
}
};
static resource::response
get__metrics(client &,
const resource::request &);
get__stats(client &,
const resource::request &);
resource::method
metrics_get
stats_get
{
metrics_resource, "GET", get__metrics
stats_resource, "GET", get__stats
};
resource::response
get__metrics(client &client,
const resource::request &request)
get__stats(client &client,
const resource::request &request)
{
static const size_t buf_max
{