tlaternet-server/configuration/services/metrics/victoriametrics.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
448 B
Nix
Raw Normal View History

2024-08-18 19:41:20 +01:00
{ config, ... }:
{
config.services.victoriametrics = {
enable = true;
2024-08-18 19:41:20 +01:00
extraOptions = [ "-storage.minFreeDiskSpaceBytes=5GB" ];
scrapeConfigs = {
2023-12-29 15:11:16 +00:00
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" ];
};
};
}