mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Remove unused exporters
This commit is contained in:
parent
6f28ea8371
commit
d171c70029
5 changed files with 6 additions and 41 deletions
|
@ -5,7 +5,7 @@ let
|
||||||
|
|
||||||
fqdn = "metrics.${domain}";
|
fqdn = "metrics.${domain}";
|
||||||
in serverSystemConfiguration {
|
in serverSystemConfiguration {
|
||||||
age.secrets."cube.mail.password.grafana" = {
|
age.secrets."cube.grafana.password" = {
|
||||||
owner = "grafana";
|
owner = "grafana";
|
||||||
group = "grafana";
|
group = "grafana";
|
||||||
};
|
};
|
||||||
|
@ -27,7 +27,7 @@ in serverSystemConfiguration {
|
||||||
|
|
||||||
settings.security = {
|
settings.security = {
|
||||||
admin_email = "metrics@${domain}";
|
admin_email = "metrics@${domain}";
|
||||||
admin_password = "$__file{${config.age.secrets."cube.mail.password.grafana".path}}";
|
admin_password = "$__file{${config.age.secrets."cube.grafana.password".path}}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -5,46 +5,17 @@ let
|
||||||
|
|
||||||
fqdn = "mail.${domain}";
|
fqdn = "mail.${domain}";
|
||||||
in serverSystemConfiguration {
|
in serverSystemConfiguration {
|
||||||
age.secrets."cube.mail.password.dmarc" = {
|
services.prometheus.exporters.postfix = enabled {
|
||||||
owner = "dmarc-exporter";
|
port = 9020;
|
||||||
group = "dmarc-exporter";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.prometheus.exporters = {
|
|
||||||
dmarc = enabled {
|
|
||||||
imap.host = domain;
|
|
||||||
imap.passwordFile = config.age.secrets."cube.mail.password.dmarc".path;
|
|
||||||
imap.username = "contact@${domain}";
|
|
||||||
|
|
||||||
listenAddress = "::";
|
|
||||||
port = 9020;
|
|
||||||
};
|
|
||||||
|
|
||||||
dovecot = enabled {
|
|
||||||
port = 9021;
|
|
||||||
socketPath = "/var/run/dovecot2/old-stats";
|
|
||||||
user = "root";
|
|
||||||
};
|
|
||||||
|
|
||||||
postfix = enabled {
|
|
||||||
port = 9022;
|
|
||||||
};
|
|
||||||
|
|
||||||
rspamd = enabled {
|
|
||||||
port = 9023;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.prometheus.scrapeConfigs = [{
|
services.prometheus.scrapeConfigs = [{
|
||||||
job_name = "mail";
|
job_name = "mail";
|
||||||
|
|
||||||
static_configs = [{
|
static_configs = [{
|
||||||
labels.job = "mail";
|
labels.job = "postfix";
|
||||||
targets = [
|
targets = [
|
||||||
"[::]:${toString config.services.prometheus.exporters.dmarc.port}"
|
|
||||||
"[::]:${toString config.services.prometheus.exporters.dovecot.port}"
|
|
||||||
"[::]:${toString config.services.prometheus.exporters.postfix.port}"
|
"[::]:${toString config.services.prometheus.exporters.postfix.port}"
|
||||||
"[::]:${toString config.services.prometheus.exporters.rspamd.port}"
|
|
||||||
];
|
];
|
||||||
}];
|
}];
|
||||||
}];
|
}];
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 +rZ0Tw 9dsCOc/hpTof2yjqGKzAJozjXnc0RPgnv3pNaccmBAQ
|
|
||||||
s6+1D/Sn6tuIh3aIbgBHYKTATyGbQKcaKPW+6HvMNFQ
|
|
||||||
--- pr1ZimpiaA8RO8Oayn6tHJN+rTGSLxcaddmYWpSiWLs
|
|
||||||
"LÜàPœw5¿Û&<26>Ž C"Â\ø¬íòŽTQD¯IZdê¤ìˆV÷Â\d
|
|
|
@ -6,8 +6,7 @@ rec {
|
||||||
|
|
||||||
"acme.age".publicKeys = [ keys.cube ];
|
"acme.age".publicKeys = [ keys.cube ];
|
||||||
"cube.id.age".publicKeys = [ keys.rgbcube ];
|
"cube.id.age".publicKeys = [ keys.rgbcube ];
|
||||||
"cube.mail.password.dmarc.age".publicKeys = [ keys.cube ];
|
"cube.grafana.password.age".publicKeys = [ keys.cube ];
|
||||||
"cube.mail.password.grafana.age".publicKeys = [ keys.cube ];
|
|
||||||
"cube.mail.password.hash.age".publicKeys = [ keys.cube ];
|
"cube.mail.password.hash.age".publicKeys = [ keys.cube ];
|
||||||
"cube.nextcloud.password.age".publicKeys = [ keys.cube ];
|
"cube.nextcloud.password.age".publicKeys = [ keys.cube ];
|
||||||
"cube.rgb.password.hash.age".publicKeys = [ keys.cube ];
|
"cube.rgb.password.hash.age".publicKeys = [ keys.cube ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue