summaryrefslogtreecommitdiff
path: root/modules/nixos/server/services
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos/server/services')
-rw-r--r--modules/nixos/server/services/promtail.nix17
1 files changed, 4 insertions, 13 deletions
diff --git a/modules/nixos/server/services/promtail.nix b/modules/nixos/server/services/promtail.nix
index 73a8de2..95592f0 100644
--- a/modules/nixos/server/services/promtail.nix
+++ b/modules/nixos/server/services/promtail.nix
@@ -9,12 +9,6 @@ in {
options.getchoo.server.services.promtail = {
enable = mkEnableOption "enable promtail";
- port = mkOption {
- type = types.port;
- default = 3031;
- description = "port for promtail";
- };
-
clients = mkOption {
type = types.listOf types.attrs;
default = [{}];
@@ -25,17 +19,13 @@ in {
config.services.promtail = mkIf cfg.enable {
enable = true;
configuration = {
- server = {
- http_listen_port = cfg.port;
- grpc_listen_port = 0;
- };
- positions = {
- filename = "/tmp/positions.yaml";
- };
inherit (cfg) clients;
+ server.disable = true;
+
scrape_configs = [
{
job_name = "journal";
+
journal = {
max_age = "12h";
labels = {
@@ -43,6 +33,7 @@ in {
host = "${config.networking.hostName}";
};
};
+
relabel_configs = [
{
source_labels = ["__journal__systemd_unit"];