mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-08 22:05:06 +02: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;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
"httpListenAddr" = "127.0.0.1:8880";
|
"httpListenAddr" = "127.0.0.1:8880";
|
||||||
|
|
||||||
"datasource.url" = "http://localhost:9090";
|
"datasource.url" = "http://localhost:9090";
|
||||||
"notifier.url" = [ "http://localhost:9093" ]; # alertmanager's api
|
"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.
|
# Whether to disable long-lived connections to the datasource.
|
||||||
"datasource.disableKeepAlive" = true;
|
"datasource.disableKeepAlive" = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user