add mimir and loki
This commit is contained in:
parent
814656552a
commit
2954f665e5
6 changed files with 197 additions and 2 deletions
46
systems/monitoring.noc.eh22.intern/mimir.nix
Normal file
46
systems/monitoring.noc.eh22.intern/mimir.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services.mimir = {
|
||||
enable = true;
|
||||
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;
|
||||
|
||||
limits = {
|
||||
ingestion_rate = 1000000; # can't set to unlimited :(
|
||||
out_of_order_time_window = "12h";
|
||||
max_global_series_per_user = 0; # unlimited
|
||||
max_label_value_length = 10000; # we have pgscv queries that are LONG
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
upstreams.mimir = {
|
||||
servers."127.0.0.1:${toString config.services.mimir.configuration.server.http_listen_port}" = { };
|
||||
extraConfig = "keepalive 20;";
|
||||
};
|
||||
|
||||
virtualHosts."mimir.noc.eh22.intern" = {
|
||||
locations."/api/v1/push" = {
|
||||
proxyPass = "http://mimir";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue