summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/collectd-base.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-09-02 13:56:03 +0200
committermakefu <github@syntax-fehler.de>2019-09-02 13:56:03 +0200
commit18badcd7c6b196095214ea1cbc9141e19f3cba03 (patch)
tree44439ba98ccf4b792d1c016a9fd6e94546b385ad /krebs/2configs/collectd-base.nix
parent726aff83056d913029168bd48fa91c1f6b7bf8c0 (diff)
puyak.r,wolf.r: configure monitoring for shack infra
Diffstat (limited to 'krebs/2configs/collectd-base.nix')
-rw-r--r--krebs/2configs/collectd-base.nix41
1 files changed, 0 insertions, 41 deletions
diff --git a/krebs/2configs/collectd-base.nix b/krebs/2configs/collectd-base.nix
deleted file mode 100644
index 71a00be3a..000000000
--- a/krebs/2configs/collectd-base.nix
+++ /dev/null
@@ -1,41 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-# TODO: krebs.collectd.plugins
-with import <stockholm/lib>;
-let
- connect-time-cfg = with pkgs; writeText "collectd-connect-time.conf" ''
- LoadPlugin python
- <Plugin python>
- ModulePath "${collectd-connect-time}/lib/${python.libPrefix}/site-packages/"
- Import "collectd_connect_time"
- <Module collectd_connect_time>
- target "localhost:22" "google.com" "google.de" "gum.r:22" "gum.krebsco.de" "10.42.0.1:22" "heise.de" "t-online.de"
- interval 10
- </Module>
- </Plugin>
- '';
- graphite-cfg = pkgs.writeText "collectd-graphite.conf" ''
- LoadPlugin write_graphite
- <Plugin "write_graphite">
- <Carbon>
- Host "wolf.r"
- Port "2003"
- Prefix "retiolum."
- EscapeCharacter "_"
- StoreRates false
- AlwaysAppendDS false
- </Carbon>
- </Plugin>
- '';
-in {
- imports = [ ];
-
- nixpkgs.config.packageOverrides = pkgs: with pkgs; {
- collectd = pkgs.collectd.override { python= pkgs.python; };
- };
- services.collectd = {
- enable = true;
- include = [ (toString connect-time-cfg) (toString graphite-cfg) ];
- };
-
-}