aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-03-10 09:49:34 +0100
committerKarel Kočí <cynerd@email.cz>2023-03-10 09:49:34 +0100
commitebb69064849b13cb0170b773c5ddfd5739d7efc5 (patch)
treef3ab9fe0794acfab53193535afb97b56a9de949b /nixos
parent9ebe78dd1e919e6b926e300082dac6cb10c0a9c0 (diff)
downloadnixos-personal-ebb69064849b13cb0170b773c5ddfd5739d7efc5.tar.gz
nixos-personal-ebb69064849b13cb0170b773c5ddfd5739d7efc5.tar.bz2
nixos-personal-ebb69064849b13cb0170b773c5ddfd5739d7efc5.zip
nixos/monitoring: monitoring runs on errol for now
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/monitoring.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/monitoring.nix b/nixos/modules/monitoring.nix
index 44d3cb5..2660461 100644
--- a/nixos/modules/monitoring.nix
+++ b/nixos/modules/monitoring.nix
@@ -7,7 +7,7 @@
with lib; let
cnf = config.cynerd.monitoring;
inherit (config.networking) hostName;
- isHost = cnf.host == hostName;
+ isHost = cnf.host == hostName || hostName == "errol";
in {
options.cynerd.monitoring = {
enable = mkOption {
@@ -29,7 +29,7 @@ in {
};
config = mkMerge [
- {cynerd.monitoring.host = "errol";}
+ {cynerd.monitoring.host = "lipwig";}
(mkIf cnf.enable {
# Telegraf configuration
@@ -40,6 +40,7 @@ in {
agent = {};
outputs.influxdb_v2 = [
{
+ # TODO change to lipwig!!
urls = ["http://errol:8086"];
token = "$INFLUX_TOKEN";
organization = "personal";