mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2025-01-05 01:57:29 +01:00
Compare commits
2 Commits
7f258c503d
...
935f59e87d
Author | SHA1 | Date | |
---|---|---|---|
935f59e87d | |||
fba827314b |
@ -1,6 +1,7 @@
|
|||||||
{ config, pkgs, values, ... }:
|
{ config, pkgs, values, ... }:
|
||||||
|
let
|
||||||
{
|
metricsHost = "192.168.10.175"; # defiant.home.feal.no
|
||||||
|
in {
|
||||||
services.prometheus.exporters.node = {
|
services.prometheus.exporters.node = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 9100;
|
port = 9100;
|
||||||
@ -11,7 +12,7 @@
|
|||||||
# TODO: Move this into the node-exporter systemd service
|
# TODO: Move this into the node-exporter systemd service
|
||||||
allowedTCPPorts = [ 9100 ];
|
allowedTCPPorts = [ 9100 ];
|
||||||
extraCommands = ''
|
extraCommands = ''
|
||||||
iptables -A INPUT -p tcp -m tcp --source 192.168.10.175/32 --dport 9100 -j ACCEPT
|
iptables -A INPUT -p tcp -m tcp --source ${metricsHost}/32 --dport 9100 -j ACCEPT
|
||||||
iptables -A INPUT -p tcp -m tcp --dport 9100 -j DROP
|
iptables -A INPUT -p tcp -m tcp --dport 9100 -j DROP
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@ -25,7 +26,7 @@
|
|||||||
};
|
};
|
||||||
clients = [
|
clients = [
|
||||||
{
|
{
|
||||||
url = "http://grafana.home.feal.no:3100/loki/api/v1/push";
|
url = "http://${metricsHost}:3100/loki/api/v1/push";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
scrape_configs = [
|
scrape_configs = [
|
||||||
|
@ -55,6 +55,7 @@
|
|||||||
guy_montag = "cb8aa890-a5a3-41f2-9bb7-1edb20c5a31f";
|
guy_montag = "cb8aa890-a5a3-41f2-9bb7-1edb20c5a31f";
|
||||||
koppern = "3450494c-b945-4fa2-938c-5519adec005f";
|
koppern = "3450494c-b945-4fa2-938c-5519adec005f";
|
||||||
krloer = "ab3029e2-76b6-4219-854e-16091fe5e421";
|
krloer = "ab3029e2-76b6-4219-854e-16091fe5e421";
|
||||||
|
tictac1255 = "bab1f702-0e8b-4b98-8cce-bbfaed534d13";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user