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