defiant: add uptime-kuma, rename metrics->monitoring
This commit is contained in:
parent
028c3ccbe0
commit
1eed30d7d5
|
@ -40,9 +40,10 @@ Other installed packages and tools are described in the config files (like ./hos
|
||||||
|
|
||||||
## Monitoring
|
## Monitoring
|
||||||
|
|
||||||
- Prometheus ([source](./hosts/defiant/services/metrics/prometheus.nix)) - Pull-based metrics system that fetches metrics over HTTP from a range of exporters and stores them in a time-series database
|
- Prometheus ([source](./hosts/defiant/services/monitoring/prometheus.nix)) - Pull-based metrics system that fetches metrics over HTTP from a range of exporters and stores them in a time-series database
|
||||||
- Loki ([source](./hosts/defiant/services/metrics/loki.nix)) - Central logging for all my hosts
|
- Loki ([source](./hosts/defiant/services/monitoring/loki.nix)) - Central logging for all my hosts
|
||||||
- Grafana ([source](./hosts/defiant/services/metrics/grafana.nix)) - Visualization and alerting for all my metrics and logs
|
- Grafana ([source](./hosts/defiant/services/monitoring/grafana.nix)) - Visualization and alerting for all my metrics and logs
|
||||||
|
- Uptime-Kuma ([source](./hosts/defiant/services/monitoring/uptime-kuma.nix)) - Uptime / health check with alerting
|
||||||
|
|
||||||
## Dotfiles and user tools
|
## Dotfiles and user tools
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
./services/hedgedoc.nix
|
./services/hedgedoc.nix
|
||||||
./services/home-assistant.nix
|
./services/home-assistant.nix
|
||||||
./services/matrix
|
./services/matrix
|
||||||
./services/metrics
|
./services/monitoring
|
||||||
./services/microbin.nix
|
./services/microbin.nix
|
||||||
./services/minecraft.nix
|
./services/minecraft.nix
|
||||||
./services/vaultwarden.nix
|
./services/vaultwarden.nix
|
||||||
|
|
|
@ -6,5 +6,6 @@
|
||||||
./grafana.nix
|
./grafana.nix
|
||||||
./loki.nix
|
./loki.nix
|
||||||
./snmp-exporter.nix
|
./snmp-exporter.nix
|
||||||
|
./uptime-kuma.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.services.uptime-kuma;
|
||||||
|
in {
|
||||||
|
services.uptime-kuma = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
PORT = "5059";
|
||||||
|
HOST = "127.0.1.2";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."uptime.home.feal.no" = {
|
||||||
|
locations."/".proxyPass = "http://${cfg.settings.HOST}:${cfg.settings.PORT}";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue