mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 23:44:16 +01:00
fix: vmalert - remoteWrite
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
{ config, lib, ... }:
|
||||
{ config, ... }:
|
||||
{
|
||||
services.vmalert = {
|
||||
# https://docs.victoriametrics.com/victoriametrics/vmalert/
|
||||
services.vmalert.instances."homelab" = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"httpListenAddr" = "127.0.0.1:8880";
|
||||
|
||||
"datasource.url" = "http://localhost:9090";
|
||||
"notifier.url" = [ "http://localhost:9093" ]; # alertmanager's api
|
||||
# Recording rules results are persisted via remote write.
|
||||
"remoteWrite.url" = "http://localhost:9090";
|
||||
"remoteRead.url" = "http://localhost:9090";
|
||||
|
||||
# Whether to disable long-lived connections to the datasource.
|
||||
"datasource.disableKeepAlive" = true;
|
||||
|
||||
Reference in New Issue
Block a user