feat: add metrics exporters for Dovecot and Postfix, update Signal execution command, and improve configuration management

This commit is contained in:
2025-06-03 23:06:40 +02:00
parent 436903543b
commit e8bf13275e
10 changed files with 102 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
{ config, pkgs, ... }:
{
imports = [
../../utils/modules/victoriametrics/default.nix
./postfix-exporter.nix
./dovecot-exporter.nix
];
}

View File

@@ -0,0 +1,15 @@
{ config, pkgs, lib, ... }:
{
services.prometheus.exporters.dovecot = {
enable = true;
};
services.victoriametrics.extraScrapeConfigs = [
''
- job_name: "dovecot-exporter"
static_configs:
- targets: ['localhost:9166']
''
];
}

View File

@@ -0,0 +1,16 @@
{ config, pkgs, lib, ... }:
{
services.prometheus.exporters.postfix = {
enable = true;
};
services.victoriametrics.extraScrapeConfigs = [
''
- job_name: "postfix-exporter"
static_configs:
- targets: ['localhost:9154']
''
];
}