17 lines
458 B
Nix
17 lines
458 B
Nix
{ config, ... }: {
|
|
config.services.victoriametrics = {
|
|
enable = true;
|
|
extraOptions = [
|
|
"-storage.minFreeDiskSpaceBytes=5GB"
|
|
];
|
|
|
|
scrapeConfigs = {
|
|
forgejo = {
|
|
targets = [ "127.0.0.1:${toString config.services.forgejo.settings.server.HTTP_PORT}" ];
|
|
extraSettings.authorization.credentials_file = config.sops.secrets."forgejo/metrics-token".path;
|
|
};
|
|
coturn.targets = [ "127.0.0.1:9641" ];
|
|
};
|
|
};
|
|
}
|