monitoring: added services

This commit is contained in:
eyjhb 2025-03-14 16:45:42 +01:00
parent efb17ea7fa
commit cb121c5369
Signed by: eyjhb
GPG key ID: 609F508E3239F920
12 changed files with 228 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{ config, ... }:
{
services.hedgedoc.settings = {
# enabled by default anyways
# TODO(eyJhb): disable exposing this to the WORLD
enableStatsApi = true;
};
services.prometheus.scrapeConfigs = [
{
job_name = "hedgedoc";
static_configs = [{
targets = [ "localhost:${builtins.toString config.services.hedgedoc.settings.port}"];
}];
}
];
}