nix-dotfiles/hosts/tsuki/services/grafana/prometheus.nix
h7x4 8a42e97014
tsuki/monitoring: misc:
- Secure grafana better, it had secrets in the nix store
- Set up prometheus exporters for nginx and php-fpm
- Add urls for dashboards
- Disable automatic updates
2023-07-12 02:06:39 +02:00

21 lines
547 B
Nix

{ secrets, ... }: {
# TODO: Autogenerate port infrastructure
imports = [
./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 = secrets.ports.prometheus;
};
}