updates / experimental TC setup
This commit is contained in:
@@ -2,7 +2,12 @@
|
||||
#
|
||||
# Q19 decisions: Prometheus node_exporter + Loki promtail (now: Alloy) +
|
||||
# NetBird Inventory + Asset-Management-Tool (default: Snipe-IT).
|
||||
{config, lib, pkgs, ...}: let
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
cfg = config.az.tc;
|
||||
in {
|
||||
@@ -43,7 +48,7 @@ in {
|
||||
# Stored in agenix under secrets/snipeit-api-token.age.
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = mkIf (cfg.enable && cfg.features.monitoring) {
|
||||
services.prometheus.exporters.node = {
|
||||
enable = true;
|
||||
enabledCollectors = ["systemd" "processes" "tcpstat"];
|
||||
|
||||
Reference in New Issue
Block a user