2022-11-24 15:20:43 +01:00
|
|
|
{ secrets, ... }: {
|
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;
|
|
|
|
port = secrets.ports.prometheus;
|
|
|
|
};
|
|
|
|
}
|