diff options
| author | Seth Flynn <[email protected]> | 2025-02-13 18:03:35 -0500 |
|---|---|---|
| committer | Seth Flynn <[email protected]> | 2025-02-13 22:09:11 -0500 |
| commit | d61acd56adca52a78aee07adc030dc48c1c5a879 (patch) | |
| tree | 090520803d02762b42995e5f5c5a4ea85468ee31 /modules/nixos/mixins/promtail.nix | |
| parent | 8531a2bc3189e31ce1623123f92cdcfce20e49b6 (diff) | |
nixos/promtail: drop
Diffstat (limited to 'modules/nixos/mixins/promtail.nix')
| -rw-r--r-- | modules/nixos/mixins/promtail.nix | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/modules/nixos/mixins/promtail.nix b/modules/nixos/mixins/promtail.nix deleted file mode 100644 index 022c271..0000000 --- a/modules/nixos/mixins/promtail.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ config, lib, ... }: -let - cfg = config.mixins.promtail; - inherit (lib) types; -in -{ - options.mixins.promtail = { - enable = lib.mkEnableOption "Promtail mixin"; - - clients = lib.mkOption { - type = types.listOf types.attrs; - default = [ { } ]; - defaultText = lib.literalExpression "[ { } ]"; - description = "Clients for promtail"; - }; - }; - - config = lib.mkIf cfg.enable { - services.promtail = { - enable = true; - configuration = { - inherit (cfg) clients; - server.disable = true; - - scrape_configs = [ - { - job_name = "journal"; - - journal = { - max_age = "12h"; - labels = { - job = "systemd-journal"; - host = "${config.networking.hostName}"; - }; - }; - - relabel_configs = [ - { - source_labels = [ "__journal__systemd_unit" ]; - target_label = "unit"; - } - ]; - } - ]; - }; - }; - }; -} |
