summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/prometheus/server.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-07-20 00:10:16 +0200
committermakefu <github@syntax-fehler.de>2019-07-20 00:10:16 +0200
commit91833c560a2656d39bda5f87c0c4786670e2fc1f (patch)
treedcc6b741c134cec61117019330807ed5a13d167c /krebs/2configs/shack/prometheus/server.nix
parentc929afa9f3513eb457aa72762514ccfd3407dcb7 (diff)
shack/prometheus: remove legacy config
Diffstat (limited to 'krebs/2configs/shack/prometheus/server.nix')
-rw-r--r--krebs/2configs/shack/prometheus/server.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/krebs/2configs/shack/prometheus/server.nix b/krebs/2configs/shack/prometheus/server.nix
index c936f2531..93af88fad 100644
--- a/krebs/2configs/shack/prometheus/server.nix
+++ b/krebs/2configs/shack/prometheus/server.nix
@@ -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 = [