+9
-1
nixos/modules/services/databases/victoriametrics.nix
+9
-1
nixos/modules/services/databases/victoriametrics.nix
···-enable = mkEnableOption "VictoriaMetrics is a fast, cost-effective and scalable monitoring solution and time series database.";+VictoriaMetrics is a fast, cost-effective and scalable monitoring solution and time series database.
+40
-15
nixos/modules/services/monitoring/vmagent.nix
+40
-15
nixos/modules/services/monitoring/vmagent.nix
···+) "-remoteWrite.basicAuth.passwordFile=\${CREDENTIALS_DIRECTORY}/remote_write_basic_auth_password"(lib.mkRemovedOptionModule [ "services" "vmagent" "dataDir" ] "dataDir has been deprecated in favor of systemd provided CacheDirectory")······-] ++ lib.optional (cfg.remoteWrite.basicAuthUsername != null) "-remoteWrite.basicAuth.username=${cfg.remoteWrite.basicAuthUsername}"-++ lib.optional (cfg.remoteWrite.basicAuthPasswordFile != null) "-remoteWrite.basicAuth.passwordFile=\${CREDENTIALS_DIRECTORY}/remote_write_basic_auth_password");···
+9
-1
nixos/modules/services/monitoring/vmalert.nix
+9
-1
nixos/modules/services/monitoring/vmalert.nix
···+`vmalert` evaluates alerting and recording rules against a data source, sends notifications via Alertmanager.
+1
-1
nixos/tests/all-tests.nix
+1
-1
nixos/tests/all-tests.nix
···
-41
nixos/tests/victoriametrics.nix
-41
nixos/tests/victoriametrics.nix
···-# This test runs victoriametrics and checks if victoriametrics is able to write points and run simple query-"curl -f -d 'measurement,tag1=value1,tag2=value2 field1=123,field2=1.23' -X POST 'http://localhost:8428/write'"
+10
nixos/tests/victoriametrics/default.nix
+10
nixos/tests/victoriametrics/default.nix
+103
nixos/tests/victoriametrics/remote-write.nix
+103
nixos/tests/victoriametrics/remote-write.nix
···+"curl --user '${username}:${password}' -sf 'http://localhost:8428/api/v1/query?query=node_exporter_build_info\{instance=\"node:9100\"\}' | "
+179
nixos/tests/victoriametrics/vmalert.nix
+179
nixos/tests/victoriametrics/vmalert.nix
···+"curl -sf 'http://127.0.0.1:8428/api/v1/query?query=sum(alertmanager_build_info)%20by%20(version)' | "+"curl -sf 'http://127.0.0.1:8428/api/v1/query?query=alertmanager_notifications_total\{integration=\"webhook\"\}' | "+"journalctl -o cat -u alertmanager-webhook-logger.service | grep '\"alertname\":\"InstanceDown\"'"+logger.log(logger.succeed("systemd-analyze security alertmanager-webhook-logger.service | grep -v '✓'"))+alertmanager.log(alertmanager.succeed("systemd-analyze security alertmanager.service | grep -v '✓'"))