summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/stats/server.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-09-29 21:34:38 +0200
committermakefu <github@syntax-fehler.de>2017-09-29 21:34:38 +0200
commitff5e7c0dcb7d102c9881212a3286faa7412e97d0 (patch)
tree827ae5746e13e5b7edbae18c24429e415c6208f9 /makefu/2configs/stats/server.nix
parent8962c8f1fc8c37d5f5f55bb2394f8f6e673a87f8 (diff)
ma stats/server: announce errors into #noise
Diffstat (limited to 'makefu/2configs/stats/server.nix')
-rw-r--r--makefu/2configs/stats/server.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/makefu/2configs/stats/server.nix b/makefu/2configs/stats/server.nix
index 8f9935658..bb91b4478 100644
--- a/makefu/2configs/stats/server.nix
+++ b/makefu/2configs/stats/server.nix
@@ -2,6 +2,8 @@
with import <stockholm/lib>;
let
+ irc-server = "ni.r";
+ irc-nick = "m-alarm";
collectd-port = 25826;
influx-port = 8086;
grafana-port = 3000; # TODO nginx forward
@@ -37,9 +39,9 @@ in {
echoToIrc = pkgs.writeDash "echo_irc" ''
set -euf
data="$(${pkgs.jq}/bin/jq -r .message)"
- export LOGNAME=malarm
+ export LOGNAME=${irc-nick}
${pkgs.irc-announce}/bin/irc-announce \
- irc.freenode.org 6667 malarm \#krebs-bots "$data" >/dev/null
+ ${irc-server} 6667 ${irc-nick} \#noise "$data" >/dev/null
'';
in {
enable = true;