46 lines
1,005 B
Nix
46 lines
1,005 B
Nix
{
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|