From 0695846f3c3d474eb8ee7d4b902e14676fd1a8d8 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 9 Jan 2017 16:03:36 +0100 Subject: m 2 logging: retab --- makefu/2configs/logging/central-stats-client.nix | 46 ++++++++++++------------ makefu/2configs/logging/central-stats-server.nix | 8 ++--- 2 files changed, 27 insertions(+), 27 deletions(-) (limited to 'makefu') diff --git a/makefu/2configs/logging/central-stats-client.nix b/makefu/2configs/logging/central-stats-client.nix index c1365c581..dd6ddddaf 100644 --- a/makefu/2configs/logging/central-stats-client.nix +++ b/makefu/2configs/logging/central-stats-client.nix @@ -1,26 +1,26 @@ {pkgs, config, ...}: { - services.collectd = { + services.collectd = { enable = true; autoLoadPlugin = true; extraConfig = '' - Hostname ${config.krebs.build.host.name} - LoadPlugin load - LoadPlugin disk - LoadPlugin memory - LoadPlugin df - Interval 30.0 + Hostname ${config.krebs.build.host.name} + LoadPlugin load + LoadPlugin disk + LoadPlugin memory + LoadPlugin df + Interval 30.0 - LoadPlugin interface - - Interface "*Link" - Interface "lo" - Interface "vboxnet*" - Interface "virbr*" - IgnoreSelected true - + LoadPlugin interface + + Interface "*Link" + Interface "lo" + Interface "vboxnet*" + Interface "virbr*" + IgnoreSelected true + - LoadPlugin df + LoadPlugin df MountPoint "/nix/store" # MountPoint "/run*" @@ -41,15 +41,15 @@ FSType "devpts" FSType "devtmpfs" MountPoint "/var/lib/docker/devicemapper" - IgnoreSelected true + IgnoreSelected true - LoadPlugin cpu - - ReportByCpu true - ReportByState true - ValuesPercentage true - + LoadPlugin cpu + + ReportByCpu true + ReportByState true + ValuesPercentage true + LoadPlugin network diff --git a/makefu/2configs/logging/central-stats-server.nix b/makefu/2configs/logging/central-stats-server.nix index eb4e2a344..69e37e493 100644 --- a/makefu/2configs/logging/central-stats-server.nix +++ b/makefu/2configs/logging/central-stats-server.nix @@ -2,11 +2,11 @@ with import ; let - collectd-port = 25826; - influx-port = 8086; + collectd-port = 25826; + influx-port = 8086; grafana-port = 3000; # TODO nginx forward in { - services.grafana.enable = true; + services.grafana.enable = true; services.grafana.addr = "0.0.0.0"; services.influxdb.enable = true; @@ -21,7 +21,7 @@ in { enabled = false; # write-interval = "24h"; }; - collectd = [{ + collectd = [{ enabled = true; typesdb = "${pkgs.collectd}/share/collectd/types.db"; database = "collectd_db"; -- cgit v1.2.3