akko: enable prometheus

Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Cadey Ratio 2022-11-27 13:21:44 -05:00
parent d360681e66
commit 682cf975f1
2 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,6 @@ in {
}; };
":pleroma"."Pleroma.Web.Endpoint.MetricsExporter" = { ":pleroma"."Pleroma.Web.Endpoint.MetricsExporter" = {
enabled = true; enabled = true;
auth = false;
format = mkRaw ":text"; format = mkRaw ":text";
path = "/api/pleroma/app_metrics"; path = "/api/pleroma/app_metrics";
}; };

View File

@ -78,6 +78,12 @@
job_name = "pneuma"; job_name = "pneuma";
static_configs = [{ targets = [ "pneuma:9100" ]; }]; static_configs = [{ targets = [ "pneuma:9100" ]; }];
} }
{
job_name = "akkoma";
scheme = "https";
metrics_path = "/api/pleroma/app_metrics";
static_configs = [{ targets = [ "akko.within.website" ]; }];
}
]; ];
exporters = { exporters = {