1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

chore: reduce monitoring interval to 1 min

This commit is contained in:
oddlama 2024-07-15 21:50:49 +02:00
parent b4b230dc2a
commit 75b4bfd452
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -194,6 +194,7 @@ in {
concatLists (forEach ["hostv4" "hostv6"] (
attr:
optional (pingCfg.${attr} != null) {
interval = "1m";
method = "native";
urls = [pingCfg.${attr}];
ipv4 = attr == "hostv4";
@ -218,6 +219,7 @@ in {
http_response = concatLists (flip mapAttrsToList globals.monitoring.http (
name: httpCfg:
optional (elem httpCfg.network cfg.availableMonitoringNetworks) {
interval = "1m";
urls = toList httpCfg.url;
method = "GET";
response_status_code = httpCfg.expectedStatus;
@ -234,6 +236,7 @@ in {
dns_query = concatLists (flip mapAttrsToList globals.monitoring.dns (
name: dnsCfg:
optional (elem dnsCfg.network cfg.availableMonitoringNetworks) {
interval = "1m";
servers = [dnsCfg.server];
domains = [dnsCfg.domain];
record_type = dnsCfg.record-type;
@ -247,6 +250,7 @@ in {
net_response = concatLists (flip mapAttrsToList globals.monitoring.tcp (
name: tcpCfg:
optional (elem tcpCfg.network cfg.availableMonitoringNetworks) {
interval = "1m";
address = "${tcpCfg.host}:${toString tcpCfg.port}";
protocol = "tcp";
tags = {