feat: add metrics exporters for Dovecot and Postfix, update Signal execution command, and improve configuration management
This commit is contained in:
16
hosts/mail/modules/metrics/postfix-exporter.nix
Normal file
16
hosts/mail/modules/metrics/postfix-exporter.nix
Normal 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']
|
||||
''
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user