blob: f5fa8d05575d99922a690ea4bc74540dd0d39521 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{ config, ... }:
{
services = {
loki = {
enable = false;
configuration = {
auth_enabled = false;
server = {
http_listen_port = config.emile.ports.loki;
};
limits_config = {
reject_old_samples = false;
reject_old_samples_max_age = "7d";
max_global_streams_per_user = 100000;
max_streams_per_user = 100000;
retention_period = "10m";
};
compactor = {
retention_enabled = true;
delete_request_store = "tsdb";
};
common = {
instance_addr = "127.0.0.1";
ring = {
instance_addr = "127.0.0.1";
kvstore.store = "inmemory";
};
replication_factor = 1;
path_prefix = "/tmp/loki";
};
# limits_config.allow_structured_metadata = false;
schema_config.configs = [
# {
# from = "2023-05-09";
# store = "boltdb-shipper";
# object_store = "filesystem";
# schema = "v13";
# index = {
# prefix = "index_";
# period = "24h";
# };
# }
{
from = "2024-10-18";
store = "tsdb";
object_store = "filesystem";
schema = "v13";
index = {
prefix = "index_";
period = "24h";
};
}
];
};
};
};
}
|