about summary refs log tree commit diff
path: root/hosts/carmel
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-04-03 17:55:21 -0700
committerFranck Cuny <franck@fcuny.net>2023-04-03 17:55:21 -0700
commite2b38b8cd38f3b7452322ae460216cfdc9a931c1 (patch)
tree48917d8232b9cd19d145fdb4ecc4ab90abf484e5 /hosts/carmel
parenthosts/carmel: reconfigure the host as a router (diff)
downloadworld-e2b38b8cd38f3b7452322ae460216cfdc9a931c1.tar.gz
hosts/carmel: enable prometheus exporter for DNSmasq
Diffstat (limited to 'hosts/carmel')
-rw-r--r--hosts/carmel/services.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/hosts/carmel/services.nix b/hosts/carmel/services.nix
index 63d749e..c5ba5e6 100644
--- a/hosts/carmel/services.nix
+++ b/hosts/carmel/services.nix
@@ -47,6 +47,11 @@
   # DNS / DHCPv4 / DHCPv6
   networking.firewall.allowedUDPPorts = [ 53 67 547 ];
 
+  services.prometheus.exporters.dnsmasq = {
+    enable = true;
+    leasesPath = "/var/lib/dnsmasq/dnsmasq.leases";
+  };
+
   services.nginx = {
     enable = true;
     recommendedProxySettings = true;