nixos-config/hosts/panopticon/promtail.nix
gwg313 ea9850107f
add panopticon
Signed-off-by: gwg313 <gwg313@pm.me>
2025-07-02 06:51:06 -04:00

28 lines
572 B
Nix

{ config, ... }:
{
services.promtail = {
enable = true;
configuration = {
server.http_listen_port = 9080;
positions = {
filename = "/var/lib/promtail/positions.yaml";
};
clients = [
{
url = "http://localhost:3100/loki/api/v1/push";
}
];
scrape_configs = [
{
job_name = "journal";
journal = {
labels = {
job = "systemd-journal";
host = config.networking.hostName;
};
};
}
];
};
};
}