journalbeat: set logging host

This commit is contained in:
Astro 2021-10-06 19:12:32 +02:00
parent 2fbc48e116
commit 2be650b93e
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { hostRegistry, config, pkgs, lib, ... }:
let let
@ -47,8 +47,8 @@ in {
output.logstash: output.logstash:
# Boolean flag to enable or disable the output module. # Boolean flag to enable or disable the output module.
enabled: true enabled: true
hosts: ["logging.serv.zentralwerk.org:5044", "172.20.73.13:5044"] hosts: ["${hostRegistry.hosts.logging.ip4}:5044"]
''; '';
}; };
services.prometheus.exporters.node.enable = true; services.prometheus.exporters.node.enable = true;

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, modulesPath, ... }: { hostRegistry, config, pkgs, lib, modulesPath, ... }:
{ {
imports = [ imports = [
@ -74,8 +74,8 @@
output.logstash: output.logstash:
# Boolean flag to enable or disable the output module. # Boolean flag to enable or disable the output module.
enabled: true enabled: true
hosts: ["logging.serv.zentralwerk.org:5044", "172.20.73.13:5044"] hosts: ["${hostRegistry.hosts.logging.ip4}:5044"]
''; '';
}; };
# Required for remote deployment # Required for remote deployment