infrastructure/machines/nixos/vault01/monitoring/victorialogs.nix

23 lines
547 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
let
port = 9428;
in
{
services.victorialogs = {
enable = true;
flags = {
retentionPeriod = "52w";
# FIXME: We need to listen so that we are available for both the APs and the grafana
httpListenAddr = "0.0.0.0:${builtins.toString port}";
};
};
# FIXME: @catvayor please do a nft rule to open the firewall on the AP-facing interfaces
networking.firewall.interfaces.wt0.allowedTCPPorts = [ port ];
}