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:
parent
b4b230dc2a
commit
75b4bfd452
1 changed files with 4 additions and 0 deletions
|
@ -194,6 +194,7 @@ in {
|
||||||
concatLists (forEach ["hostv4" "hostv6"] (
|
concatLists (forEach ["hostv4" "hostv6"] (
|
||||||
attr:
|
attr:
|
||||||
optional (pingCfg.${attr} != null) {
|
optional (pingCfg.${attr} != null) {
|
||||||
|
interval = "1m";
|
||||||
method = "native";
|
method = "native";
|
||||||
urls = [pingCfg.${attr}];
|
urls = [pingCfg.${attr}];
|
||||||
ipv4 = attr == "hostv4";
|
ipv4 = attr == "hostv4";
|
||||||
|
@ -218,6 +219,7 @@ in {
|
||||||
http_response = concatLists (flip mapAttrsToList globals.monitoring.http (
|
http_response = concatLists (flip mapAttrsToList globals.monitoring.http (
|
||||||
name: httpCfg:
|
name: httpCfg:
|
||||||
optional (elem httpCfg.network cfg.availableMonitoringNetworks) {
|
optional (elem httpCfg.network cfg.availableMonitoringNetworks) {
|
||||||
|
interval = "1m";
|
||||||
urls = toList httpCfg.url;
|
urls = toList httpCfg.url;
|
||||||
method = "GET";
|
method = "GET";
|
||||||
response_status_code = httpCfg.expectedStatus;
|
response_status_code = httpCfg.expectedStatus;
|
||||||
|
@ -234,6 +236,7 @@ in {
|
||||||
dns_query = concatLists (flip mapAttrsToList globals.monitoring.dns (
|
dns_query = concatLists (flip mapAttrsToList globals.monitoring.dns (
|
||||||
name: dnsCfg:
|
name: dnsCfg:
|
||||||
optional (elem dnsCfg.network cfg.availableMonitoringNetworks) {
|
optional (elem dnsCfg.network cfg.availableMonitoringNetworks) {
|
||||||
|
interval = "1m";
|
||||||
servers = [dnsCfg.server];
|
servers = [dnsCfg.server];
|
||||||
domains = [dnsCfg.domain];
|
domains = [dnsCfg.domain];
|
||||||
record_type = dnsCfg.record-type;
|
record_type = dnsCfg.record-type;
|
||||||
|
@ -247,6 +250,7 @@ in {
|
||||||
net_response = concatLists (flip mapAttrsToList globals.monitoring.tcp (
|
net_response = concatLists (flip mapAttrsToList globals.monitoring.tcp (
|
||||||
name: tcpCfg:
|
name: tcpCfg:
|
||||||
optional (elem tcpCfg.network cfg.availableMonitoringNetworks) {
|
optional (elem tcpCfg.network cfg.availableMonitoringNetworks) {
|
||||||
|
interval = "1m";
|
||||||
address = "${tcpCfg.host}:${toString tcpCfg.port}";
|
address = "${tcpCfg.host}:${toString tcpCfg.port}";
|
||||||
protocol = "tcp";
|
protocol = "tcp";
|
||||||
tags = {
|
tags = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue