diff options
-rw-r--r-- | usecases/server/monitoring-server.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/usecases/server/monitoring-server.nix b/usecases/server/monitoring-server.nix index 94319b5..1123739 100644 --- a/usecases/server/monitoring-server.nix +++ b/usecases/server/monitoring-server.nix | |||
@@ -21,7 +21,7 @@ inputs: | |||
21 | { | 21 | { |
22 | job_name = "grafana"; | 22 | job_name = "grafana"; |
23 | static_configs = [ | 23 | static_configs = [ |
24 | { targets = [ "localhost:${toString config.services.grafana.port}" ]; } | 24 | { targets = [ "localhost:${toString config.services.grafana.settings.server.http_port}" ]; } |
25 | ]; | 25 | ]; |
26 | } | 26 | } |
27 | ]; | 27 | ]; |
@@ -30,13 +30,14 @@ inputs: | |||
30 | services.grafana = { | 30 | services.grafana = { |
31 | enable = true; | 31 | enable = true; |
32 | 32 | ||
33 | addr = config.topology.mainVpn.currentNodeIP; | 33 | settings = { |
34 | port = 3001; | 34 | server.http_addr = config.topology.mainVpn.currentNodeIP; |
35 | 35 | server.http_port = 3001; | |
36 | analytics.reporting.enable = false; | 36 | analytics.reporting_enabled = false; |
37 | }; | ||
37 | }; | 38 | }; |
38 | 39 | ||
39 | networking.firewall.interfaces.${config.topology.mainVpn.interfaceName}.allowedTCPPorts = [ | 40 | networking.firewall.interfaces.${config.topology.mainVpn.interfaceName}.allowedTCPPorts = [ |
40 | config.services.grafana.port | 41 | config.services.grafana.settings.server.http_port |
41 | ]; | 42 | ]; |
42 | } | 43 | } |