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