shack/prometheus: remove legacy config
This commit is contained in:
parent
c929afa9f3
commit
91833c560a
krebs/2configs/shack
|
@ -1,3 +1,4 @@
|
|||
# hostname: mqtt.shack
|
||||
{
|
||||
networking.firewall.allowedTCPPorts = [ 1883 ];
|
||||
networking.firewall.allowedUDPPorts = [ 1883 ];
|
||||
|
|
|
@ -3,14 +3,19 @@
|
|||
{
|
||||
networking = {
|
||||
firewall.allowedTCPPorts = [
|
||||
3000 # grafana
|
||||
9090 # prometheus
|
||||
9093 # alertmanager
|
||||
];
|
||||
useDHCP = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
nginx.virtualHosts = {
|
||||
"prometheus.shack" = {
|
||||
locations."/".proxyPass = "http://localhost:9090";
|
||||
};
|
||||
"alert.prometheus.shack" = {
|
||||
locations."/".proxyPass = "http://localhost:9093";
|
||||
};
|
||||
};
|
||||
prometheus = {
|
||||
enable = true;
|
||||
extraFlags = [
|
||||
|
|
Loading…
Reference in a new issue