!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

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

You have reached the beginning of time (for this room).


SenderMessageTime
7 Dec 2024
@hexa:lossy.networkhexanow I wish there was webinterface to browse the state of loki22:52:13
@hexa:lossy.networkhexanot the user facing stuff like grafana, more like what prometheus has22:52:22
@hexa:lossy.networkhexacan't say it is alerting based on that expression22:56:05
@hexa:lossy.networkhexa
[93980] WARNING:  database "template1" has a collation version mismatch
[93980] DETAIL:  The database was created using collation version 2.39, but the operating system provides version 2.40.
[93980] HINT:  Rebuild all objects in this database that use the default collation and run ALTER DATABASE template1 REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
23:00:16
@hexa:lossy.networkhexa
  rulerConfig = {
    groups = [ {
      name = "postgresql";
      rules = [ {
        alert = "PostgresqlCollationMismatch";
        expr = ''
          {unit="postgresql.service"}
            |~ 'WARNING:  database "[^"]+" has a collation version mismatch'
            | regexp 'database "(?<database>[^"]+)"'
        '';
        labels.severity = "warning";
        annotations.summary = "PostgreSQL database {{ $labels.database }} on {{ $labels.machine }}i reports database collation mismatch";
      } ];
    } ];
  };
23:01:48
@hexa:lossy.networkhexa *
  rulerConfig = {
    groups = [ {
      name = "postgresql";
      rules = [ {
        alert = "PostgresqlCollationMismatch";
        expr = ''
          {unit="postgresql.service"}
            |~ 'WARNING:  database "[^"]+" has a collation version mismatch'
            | regexp 'database "(?<database>[^"]+)"'
        '';
        labels.severity = "warning";
        annotations.summary = "PostgreSQL database {{ $labels.database }} on {{ $labels.machine }}i reports database collation mismatch";
      } ];
    } ];
  };
23:01:52
@hexa:lossy.networkhexaso for one it doesn't like single quotes 😄 23:03:24
@hexa:lossy.networkhexaand doesn't complain about it23:03:28
@hexa:lossy.networkhexa *
  rulerConfig = {
    groups = [ {
      name = "postgresql";
      rules = [ {
        alert = "PostgresqlCollationMismatch";
        expr = ''
          {unit="postgresql.service"}
            |~ "WARNING:  database \"[^\"]+\" has a collation version mismatch"
            | regexp "database \"(?<database>[^\"]+)\""
        '';
        labels.severity = "warning";
        annotations.summary = "PostgreSQL database {{ $labels.database }} on {{ $labels.machine }}i reports database collation mismatch";
      } ];
    } ];
  };
23:04:17

Show newer messages


Back to Room ListRoom Version: 10