2023-10-06 18:05:38 +02:00
|
|
|
{ ... }: {
|
2023-01-20 19:55:52 +01:00
|
|
|
# TODO: Autogenerate port infrastructure
|
|
|
|
|
|
|
|
imports = [
|
2023-07-28 22:09:43 +02:00
|
|
|
./prometheus-exporters/gitea.nix
|
|
|
|
./prometheus-exporters/hedgedoc.nix
|
2023-01-20 19:55:52 +01:00
|
|
|
./prometheus-exporters/matrix-synapse.nix
|
2023-07-12 01:45:59 +02:00
|
|
|
./prometheus-exporters/minecraft.nix
|
|
|
|
./prometheus-exporters/nginx.nix
|
2023-01-20 19:55:52 +01:00
|
|
|
./prometheus-exporters/node.nix
|
2023-07-12 01:45:59 +02:00
|
|
|
# TODO: activate when php-fpm exporter is backported
|
|
|
|
# ./prometheus-exporters/php-fpm.nix
|
2023-01-20 19:55:52 +01:00
|
|
|
./prometheus-exporters/postgres.nix
|
|
|
|
./prometheus-exporters/redis.nix
|
|
|
|
./prometheus-exporters/systemd.nix
|
|
|
|
];
|
|
|
|
|
2022-11-24 15:20:43 +01:00
|
|
|
services.prometheus = {
|
|
|
|
enable = true;
|
2023-10-06 18:05:38 +02:00
|
|
|
port = 7001;
|
2022-11-24 15:20:43 +01:00
|
|
|
};
|
2024-01-23 05:26:22 +01:00
|
|
|
|
|
|
|
systemd.slices.system-prometheus = {
|
|
|
|
description = "Prometheus slice";
|
|
|
|
requires= [ "system.slice" ];
|
|
|
|
after= [ "system.slice" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.services.prometheus.serviceConfig.Slice = "system-prometheus.slice";
|
2022-11-24 15:20:43 +01:00
|
|
|
}
|