replace journald witrh loki+promtail
All checks were successful
Build hosts / build-hosts (pull_request) Successful in 20s
Flake check / flake-check (pull_request) Successful in 21s

This commit is contained in:
sid 2026-05-22 19:10:46 +02:00
parent ded81c4cdd
commit 4da48d5f99
9 changed files with 110 additions and 142 deletions

View file

@ -0,0 +1,62 @@
{
services.loki = {
enable = true;
configuration = {
auth_enabled = false;
server.http_listen_port = 3100;
common = {
ring = {
instance_addr = "127.0.0.1";
kvstore.store = "inmemory";
};
replication_factor = 1;
path_prefix = "/var/lib/loki";
};
schema_config = {
configs = [
{
from = "2020-10-24";
store = "tsdb";
object_store = "filesystem";
schema = "v13";
index = {
prefix = "index_";
period = "24h";
};
}
];
};
storage_config = {
filesystem = {
directory = "/var/lib/loki/chunks";
};
};
};
};
services.grafana = {
enable = true;
settings = {
server = {
http_addr = "0.0.0.0";
http_port = 3003;
};
};
provision = {
enable = true;
datasources.settings.datasources = [
{
name = "Loki";
type = "loki";
access = "proxy";
url = "http://127.0.0.1:3100";
isDefault = true;
}
];
};
};
}