2023-10-07 21:14:43 +01:00
|
|
|
{config, ...}: {
|
|
|
|
config.services.victoriametrics = {
|
|
|
|
enable = true;
|
2023-10-13 02:43:03 +01:00
|
|
|
extraOptions = [
|
|
|
|
"-storage.minFreeDiskSpaceBytes=5GB"
|
|
|
|
];
|
2023-10-07 21:14:43 +01:00
|
|
|
|
|
|
|
scrapeConfigs = {
|
|
|
|
gitea = {
|
|
|
|
targets = ["127.0.0.1:${toString config.services.gitea.settings.server.HTTP_PORT}"];
|
|
|
|
extraSettings.authorization.credentials_file = config.sops.secrets."gitea/metrics-token".path;
|
|
|
|
};
|
|
|
|
coturn.targets = ["127.0.0.1:9641"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|