!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

400 Members
About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org107 Servers

Load older messages


SenderMessageTime
9 Dec 2024
@adam:robins.wtfadamcstephenswell it's passing that then02:56:36
@hexa:lossy.networkhexalmao02:56:39
@hexa:lossy.networkhexaso same shit as rules02:56:42
@hexa:lossy.networkhexagot it02:56:45
@adam:robins.wtfadamcstephens i was missing the required schema_config.configs apparent 03:02:13
@adam:robins.wtfadamcstephens * i was missing the required schema_config.configs apparently 03:02:16
@hexa:lossy.networkhexaclearly03:06:09
@adam:robins.wtfadamcstephensi don't understand their config examples. they're missing required fields??03:18:05
@hexa:lossy.networkhexayou think?03:18:29
@hexa:lossy.networkhexa
  services.loki = {
    enable = true;
    configuration = {
      auth_enabled = false;
      server = {
        http_listen_port = 3100;
      };
      compactor = {
        delete_request_store = "filesystem";
        retention_enabled = true;
        working_directory = "${config.services.loki.dataDir}/compactor";
      };
      ingester = {
        lifecycler = {
          address = "127.0.0.1";
          ring = {
            kvstore.store = "inmemory";
            replication_factor = 1;
          };
          final_sleep = "0s";
        };
        chunk_idle_period = "5m";
        chunk_retain_period = "30s";
      };
      ruler = {
        storage = {
          type = "local";
          local.directory = "/etc/loki/rules/";
        };
        rule_path = "/tmp/loki-rules-scratch";
        alertmanager_url = "http://127.0.0.1:9093";
        ring.kvstore.store = "inmemory";
      };
      schema_config.configs = [ {
        from = "2020-07-01";
        store = "boltdb";
        object_store = "filesystem";
        schema = "v11";
        index = {
          prefix = "index_";
          period = "168h";
        };
      } {
        from = "2024-05-25";
        store = "tsdb";
        object_store = "filesystem";
        schema = "v13";
        index = {
          prefix = "index_";
          period = "24h";
        };
      } ];
      storage_config = {
        boltdb.directory = "${config.services.loki.dataDir}/index";
        tsdb_shipper = {
          active_index_directory = "${config.services.loki.dataDir}/data/2024-05-25/index";
          cache_location = "${config.services.loki.dataDir}/data/2024-05-25/cache";
          cache_ttl = "24h";
        };
        filesystem.directory = "${config.services.loki.dataDir}/chunks";
      };
      limits_config = {
        reject_old_samples = true;
        reject_old_samples_max_age = "168h";
      };
      table_manager = {
        retention_deletes_enabled = false;
        retention_period = "0s";
      };
    };
  };
03:19:11
@adam:robins.wtfadamcstephens

oh, the nix module

                 # Config validation may fail when using extraFlags = [ "-config.expand-env=true" ].
                 # To work around this, we simply skip it when extraFlags is not empty.
03:31:29
@adam:robins.wtfadamcstephensi have that enabled for injecting s3 secrets03:31:43
@adam:robins.wtfadamcstephens
    services.loki = {
      enable = true;
      extraFlags = [ "--config.expand-env=true" ];

      configuration = {
        auth_enabled = false;

        common = {
          instance_interface_names = [ "grid" ];
          ring.kvstore = {
            store = "consul";
            prefix = "loki/collectors/";
          };
        };

        compactor.working_directory = "${config.services.loki.dataDir}/compactor";

        schema_config.configs = [
          {
            from = "2024-01-01";
            store = "tsdb";
            object_store = "s3";
            schema = "v13";
            index = {
              prefix = "index_";
              period = "24h";
            };
          }
        ];

        storage_config = {
          aws = {
            bucketnames = "loki";
            endpoint = site.services.s3;
            region = "garage";
            secret_access_key = "\${S3_SECRET_ACCESS_KEY}";
            access_key_id = "\${S3_ACCESS_KEY_ID}";
            s3forcepathstyle = true;
          };
          tsdb_shipper = {
            active_index_directory = "${config.services.loki.dataDir}/index";
            cache_location = "${config.services.loki.dataDir}/index_cache";
          };
        };

        server = {
          http_listen_address = "127.0.0.1";
          http_listen_port = 12010;
          grpc_listen_address = config.stop.roles.grid.ip.internal.ipv4;
          grpc_listen_port = 12011;
        };
      };

04:29:52
@adam:robins.wtfadamcstephensin theory that works, but i have nothing to ship logs yet 😆04:35:19
@karlericsson:matrix.orgkarlericsson joined the room.07:50:00
@philon:philon.tubephilon ⚡️ joined the room.09:25:45
@hans:procolix.comHans van Zijst joined the room.17:28:14
10 Dec 2024
@steveej0:matrix.orgsteveeji'm using remmina or gnome-connections to RDP into a windows 2019 server, and the keyboard layout seems to map incorrectly. tried all the mapping settings in remmina with no luck. is this potentially an issue with our configuration of freerdp?09:19:13
@steveej0:matrix.orgsteveejcould be this: https://github.com/NixOS/nixpkgs/issues/32592809:20:31
@steveej0:matrix.orgsteveejwhich has reports of non-nixpkgs remmina also behaving the same09:20:45
@jfquesada:matrix.orgice9Does anyone here has any experience running SMACK MAC on nixos?10:23:01
@jfquesada:matrix.orgice9it's far simpler than SELinux, but somehow I don't see or hear much about SMACK10:23:54
@scrumplex:duckhub.ioScrumplexRedacted or Malformed Event10:34:06
11 Dec 2024
@dminca:matrix.org@dminca:matrix.org left the room.14:18:59
@k_t.666:matrix.orgkat ⛧ they/them joined the room.19:24:22
@soispha:vhack.euBenedikt joined the room.21:22:18
@lars:familie-vogdt.de@lars:familie-vogdt.de left the room.22:31:03
12 Dec 2024
@mrtni:matrix.orgmrtni joined the room.06:24:06
@gagandeepb:matrix.orggagandeepb joined the room.07:48:02
@nam3l33ss:matrix.org·☽•Nameless☆•777 · ± changed their profile picture.14:34:50

Show newer messages


Back to Room ListRoom Version: 10