summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/prometheus/server.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-09-14 11:11:58 +0200
committermakefu <github@syntax-fehler.de>2020-09-14 11:11:58 +0200
commitfc836fc0cb2aa2a9e65b2314ab361788d8e73186 (patch)
treea5c55e6f391078b956da28807ee1b8aac3c00ff7 /krebs/2configs/shack/prometheus/server.nix
parent156339f63adcddcd8b1eb6d17bd4f76f72086920 (diff)
shack/prometheus: strip down number of alerts to 3
Diffstat (limited to 'krebs/2configs/shack/prometheus/server.nix')
-rw-r--r--krebs/2configs/shack/prometheus/server.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/krebs/2configs/shack/prometheus/server.nix b/krebs/2configs/shack/prometheus/server.nix
index a10a43af7..9e4b4d1a7 100644
--- a/krebs/2configs/shack/prometheus/server.nix
+++ b/krebs/2configs/shack/prometheus/server.nix
@@ -1,6 +1,9 @@
{ pkgs, lib, config, ... }:
# from https://gist.github.com/globin/02496fd10a96a36f092a8e7ea0e6c7dd
{
+ imports = [
+ ./alert-rules.nix
+ ];
networking = {
firewall.allowedTCPPorts = [
9090 # prometheus
@@ -18,12 +21,6 @@
};
prometheus = {
enable = true;
- ruleFiles = lib.singleton (pkgs.writeText "prometheus-rules.yml" (builtins.toJSON {
- groups = lib.singleton {
- name = "mf-alerting-rules";
- rules = import ./alert-rules.nix { inherit lib; };
- };
- }));
scrapeConfigs = [
{
job_name = "node";