diff --git a/systems/monitoring.noc.eh22.intern/mimir.nix b/systems/monitoring.noc.eh22.intern/mimir.nix index 1939e17..fb53919 100644 --- a/systems/monitoring.noc.eh22.intern/mimir.nix +++ b/systems/monitoring.noc.eh22.intern/mimir.nix @@ -24,18 +24,7 @@ in configuration = { multitenancy_enabled = false; target = "all,alertmanager"; - - blocks_storage = { - backend = "filesystem"; - }; - - server = { - http_listen_port = 9009; - log_level = "warn"; - grpc_listen_port = 9096; - }; - - ingester.ring.replication_factor = 1; + usage_stats.enabled = false; limits = { ingestion_rate = 1000000; # can't set to unlimited :( @@ -44,15 +33,43 @@ in max_label_value_length = 10000; # we have pgscv queries that are LONG }; + server = { + http_listen_port = 9009; + http_listen_address = "127.0.0.1"; + log_level = "warn"; + grpc_listen_port = 9096; + grpc_listen_address = "127.0.0.1"; + }; + + blocks_storage = { + backend = "filesystem"; + }; + + ingester = { + ring = { + instance_addr = "127.0.0.1"; + kvstore = { + store = "memberlist"; + }; + replication_factor = 1; + }; + }; + alertmanager_storage.backend = "filesystem"; alertmanager = { - sharding_ring.replication_factor = 1; + sharding_ring = { + replication_factor = 1; + instance_addr = "127.0.0.1"; + }; }; ruler_storage = { backend = "local"; local.directory = alerts; }; + memberlist = { + bind_addr = ["127.0.0.1"]; + }; }; }; diff --git a/systems/monitoring.noc.eh22.intern/system.nix b/systems/monitoring.noc.eh22.intern/system.nix index 23c5306..09e4811 100644 --- a/systems/monitoring.noc.eh22.intern/system.nix +++ b/systems/monitoring.noc.eh22.intern/system.nix @@ -34,6 +34,7 @@ }; networking.firewall.allowedTCPPorts = [ 80 ]; + networking.usePredictableInterfaceNames = false; services.nginx = { enable = true;