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:
parent
07c29ab914
commit
d5206cd22c
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue