aboutsummaryrefslogtreecommitdiff
path: root/modules/monitoring
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/monitoring/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/modules/monitoring/default.nix b/modules/monitoring/default.nix
index ef27c7c..68df69b 100644
--- a/modules/monitoring/default.nix
+++ b/modules/monitoring/default.nix
@@ -15,6 +15,18 @@ with self.lib.nginx;
enable = true;
enabledCollectors = [ "systemd" ];
};
+
+ zfs = {
+ enable = true;
+ };
+
+ postgres = {
+ enable = true;
+ };
+
+ nginx = {
+ enable = true;
+ };
};
globalConfig = {
@@ -28,9 +40,35 @@ with self.lib.nginx;
{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }
];
}
+ {
+ job_name = "zfs";
+ static_configs = [
+ { targets = [ "localhost:${toString config.services.prometheus.exporters.zfs.port}" ]; }
+ ];
+ }
+ {
+ job_name = "postgres";
+ static_configs = [
+ { targets = [ "localhost:${toString config.services.prometheus.exporters.postgres.port}" ]; }
+ ];
+ }
+ {
+ job_name = "nginx";
+ static_configs = [
+ { targets = [ "localhost:${toString config.services.prometheus.exporters.nginx.port}" ]; }
+ ];
+ }
+ {
+ job_name = "quassel";
+ static_configs = [
+ { targets = [ "localhost:${toString config.services.quassel.settings.metrics.port}" ]; }
+ ];
+ }
];
};
+ services.nginx.statusPage = true;
+
security.acme.certs = {
"vapor.systems" = {
extraDomainNames = [ "*.vapor.systems" ];