From dcd661a35a8c7780fa55b77aa4ab90648f6a2e78 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 4 Jun 2020 14:37:18 +0200 Subject: [PATCH] Disable f2b temporarily and fix varnish stats --- tasks/main.yml | 7 +++++++ templates/telegraf.conf.j2 | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index b9508fb..67bdd75 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -7,3 +7,10 @@ tags: - telegraf - vault +- name: Give required permissions to the daemon + user: + name: 'telegraf' + groups: + - varnish # TODO: Create a monitoring group + tags: + - telegraf diff --git a/templates/telegraf.conf.j2 b/templates/telegraf.conf.j2 index accd7e9..b4606ef 100644 --- a/templates/telegraf.conf.j2 +++ b/templates/telegraf.conf.j2 @@ -72,3 +72,8 @@ # json_query = "csp-report" # json_string_fields = ["document-uri", "referrer", "violated-directive", "original-policy","blocked-uri"] # json_name_key = "csp_reports" + +[[inputs.varnish]] + stats = ["*"] + +#[[inputs.fail2ban]]