summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-09-02 13:56:34 +0200
committermakefu <github@syntax-fehler.de>2019-09-02 13:56:34 +0200
commit86592a723309d45dc09ff90872c0ee4aa7e52dc0 (patch)
tree6d5d8035a3bd0c3b5af62972fc74a1e71f5e20a7 /krebs/2configs/shack
parent18badcd7c6b196095214ea1cbc9141e19f3cba03 (diff)
shack/influx: enable collectd receiver
Diffstat (limited to 'krebs/2configs/shack')
-rw-r--r--krebs/2configs/shack/influx.nix16
1 files changed, 15 insertions, 1 deletions
diff --git a/krebs/2configs/shack/influx.nix b/krebs/2configs/shack/influx.nix
index 91b4fa9b7..92cb24bf3 100644
--- a/krebs/2configs/shack/influx.nix
+++ b/krebs/2configs/shack/influx.nix
@@ -1,9 +1,12 @@
-# hostname: influx.shack
+{pkgs, ... }: # hostname: influx.shack
let
port = 8086;
+ collectd-port = 25826;
+ db = "collectd_db";
in
{
networking.firewall.allowedTCPPorts = [ port ]; # for legacy applications
+ networking.firewall.allowedUDPPorts = [ collectd-port ];
services.nginx.virtualHosts."influx.shack" = {
locations."/" = {
proxyPass = "http://localhost:${toString port}/";
@@ -14,6 +17,17 @@ in
extraConfig = {
http.bind-address = "0.0.0.0:${toString port}";
http.log-enabled = false;
+ http.write-tracing = false;
+ http.suppress-write-log = true;
+ data.trace-logging-enabled = false;
+ data.query-log-enabled = false;
+ monitoring.enabled = false;
+ collectd = [{
+ enabled = true;
+ typesdb = "${pkgs.collectd}/share/collectd/types.db";
+ database = db;
+ bind-address = ":${toString collectd-port}";
+ }];
};
};
}