30 lines
786 B
Nix
30 lines
786 B
Nix
{ ... }: {
|
|
# TODO: Autogenerate port infrastructure
|
|
|
|
imports = [
|
|
./prometheus-exporters/hedgedoc.nix
|
|
./prometheus-exporters/matrix-synapse.nix
|
|
./prometheus-exporters/minecraft.nix
|
|
./prometheus-exporters/nginx.nix
|
|
./prometheus-exporters/node.nix
|
|
# TODO: activate when php-fpm exporter is backported
|
|
# ./prometheus-exporters/php-fpm.nix
|
|
./prometheus-exporters/postgres.nix
|
|
./prometheus-exporters/redis.nix
|
|
./prometheus-exporters/systemd.nix
|
|
];
|
|
|
|
services.prometheus = {
|
|
enable = true;
|
|
port = 7001;
|
|
};
|
|
|
|
systemd.slices.system-prometheus = {
|
|
description = "Prometheus slice";
|
|
requires= [ "system.slice" ];
|
|
after= [ "system.slice" ];
|
|
};
|
|
|
|
systemd.services.prometheus.serviceConfig.Slice = "system-prometheus.slice";
|
|
}
|