!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

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

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


SenderMessageTime
8 Dec 2024
@hexa:lossy.networkhexathe loki module should provide an option to accept rules directly and lint them01:22:20
@hexa:lossy.networkhexa
{
  "groups": [
    {
      "name": "postgresql",
      "rules": [
        {
          "alert": "PostgresqlCollationMismatch",
          "annotations": {
            "summary": "PostgreSQL database on {{ $labels.machine }} reports database collations mismatches"
          },
          "expr": "sum by (machine) (counter_over_time({unit=\"postgresql.service\"} |~ \"REFRESH COLLATION VERSION\" [5m])) > 0\n",
          "for": "1m",
          "labels": {
            "severity": "warning"
          }
        }
      ]
    }
  ]
}
01:39:44
@hexa:lossy.networkhexa
ERRO[0000] unable parse rules file                       error="could not parse expression for alert 'PostgresqlCollationMismatch' in group 'postgresql': parse error at line 1, col 19: syntax error: unexpected IDENTIFIER" file=/tmp/rules.yml
01:39:48

Show newer messages


Back to Room ListRoom Version: 10