[Grafana] Remove Promtail because it's EoL
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
let
|
let
|
||||||
lib = import ./lib.nix config;
|
lib = import ./lib.nix config;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./shared-postgres.nix
|
./shared-postgres.nix
|
||||||
];
|
];
|
||||||
@@ -43,25 +44,4 @@ in {
|
|||||||
};
|
};
|
||||||
environment = { };
|
environment = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
services.promtail = {
|
|
||||||
enable = true;
|
|
||||||
configuration = {
|
|
||||||
server.http_listen_port = 9080;
|
|
||||||
clients = [
|
|
||||||
{ url = "https://loki.blazestar.net/loki/api/v1/push"; }
|
|
||||||
];
|
|
||||||
scrape_configs = [{
|
|
||||||
job_name = "journal";
|
|
||||||
journal = {
|
|
||||||
max_age = "12h";
|
|
||||||
labels = { job = "systemd-journal"; };
|
|
||||||
};
|
|
||||||
relabel_configs = [{
|
|
||||||
source_labels = ["__journal__systemd_unit"];
|
|
||||||
target_label = "unit";
|
|
||||||
}];
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user