From 6760123bdebaeee173e9379d32e13a90917686c4 Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Thu, 28 May 2020 16:49:03 -0400 Subject: [PATCH] nixos/servnerr-3: bump keylight_exporter, 15s Prometheus scrape interval Signed-off-by: Matt Layher --- nixos/lib/pkgs/keylight_exporter.nix | 4 ++-- nixos/servnerr-3/prometheus.nix | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/lib/pkgs/keylight_exporter.nix b/nixos/lib/pkgs/keylight_exporter.nix index 936d631..5a736bc 100644 --- a/nixos/lib/pkgs/keylight_exporter.nix +++ b/nixos/lib/pkgs/keylight_exporter.nix @@ -2,7 +2,7 @@ buildGoModule rec { pname = "keylight_exporter"; - version = "0.1.0"; + version = "0.1.1"; goPackagePath = "github.com/mdlayher/keylight_exporter"; @@ -10,7 +10,7 @@ buildGoModule rec { owner = "mdlayher"; repo = "keylight_exporter"; rev = "v${version}"; - sha256 = "082176cf0y9dx9ks1qdw1mn9b12m7q1vjnmgi9119jnq0yv9lnvy"; + sha256 = "141npawcnxj3sz2xqsnyf06r4x1azk3g55941i8gjr7pwcla34r7"; }; modSha256 = "0idvwp8r48nzxygw60yrcrcjw6vmjrjqi3ranc2lx89p4lrky5r3"; diff --git a/nixos/servnerr-3/prometheus.nix b/nixos/servnerr-3/prometheus.nix index ff10429..1b67a07 100644 --- a/nixos/servnerr-3/prometheus.nix +++ b/nixos/servnerr-3/prometheus.nix @@ -38,6 +38,8 @@ in { enable = true; webExternalUrl = "https://prometheus.servnerr.com"; + globalConfig.scrape_interval = "15s"; + extraFlags = [ "--storage.tsdb.retention=365d" ]; # Use alertmanager running on monitoring machine.