waffentrager: move prometheus stateDir

This commit is contained in:
Mateusz Słodkowicz 2024-09-03 10:43:00 +02:00
parent f892292aa0
commit 3406af1780
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@
enable = true; enable = true;
port = 3233; port = 3233;
globalConfig.scrape_interval = "30s"; globalConfig.scrape_interval = "30s";
stateDir = "elements/services/prometheus";
scrapeConfigs = [ scrapeConfigs = [
{ {
job_name = "node"; job_name = "node";
@ -39,6 +40,7 @@
port = 3234; port = 3234;
enabledCollectors = [ "systemd" ]; enabledCollectors = [ "systemd" ];
extraFlags = [ "--collector.ethtool" "--collector.softirqs" "--collector.tcpstat" "--collector.wifi" ]; extraFlags = [ "--collector.ethtool" "--collector.softirqs" "--collector.tcpstat" "--collector.wifi" ];
}; };
services.nginx.virtualHosts."watchman.materus.pl" = { services.nginx.virtualHosts."watchman.materus.pl" = {
addSSL = true; addSSL = true;