Specify proper external url for prometheus
This commit is contained in:
parent
b15655f275
commit
a5bcd237ad
|
@ -8,7 +8,7 @@ in
|
|||
services.prometheus = {
|
||||
enable = true;
|
||||
port = 8410;
|
||||
webExternalUrl = host;
|
||||
webExternalUrl = "https://${host}";
|
||||
|
||||
# {{{ Node exporter (system info)
|
||||
exporters = {
|
||||
|
@ -30,9 +30,7 @@ in
|
|||
# }}}
|
||||
# {{{ Networking & storage
|
||||
services.nginx.virtualHosts.${host} =
|
||||
config.satellite.proxy
|
||||
config.services.prometheus.port
|
||||
{ proxyWebsockets = true; };
|
||||
config.satellite.proxy config.services.prometheus.port { };
|
||||
|
||||
environment.persistence."/persist/state".directories = [{
|
||||
directory = "/var/lib/prometheus2";
|
||||
|
|
Loading…
Reference in a new issue