From 3f1865f42dfce99a7e526819730e5b5e83e5b22a Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Mon, 26 Sep 2016 10:22:35 +0200 Subject: [PATCH] Update plugin definition --- templates/python.d.conf | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/templates/python.d.conf b/templates/python.d.conf index 1123436..b6520e6 100644 --- a/templates/python.d.conf +++ b/templates/python.d.conf @@ -1,8 +1,42 @@ -# This is the configuration for python.d.plugin +# netdata python.d.plugin configuration +# +# This file is in YaML format. +# Generally the format is: +# +# name: value +# + +# Enable / disable the whole python.d.plugin (all its modules) enabled: yes +# Prevent log flood +# Define how many log messages can be written to log file in one log_interval +logs_per_interval: 200 + +# Define how long is one logging interval (in seconds) +log_interval: 3600 + +# ---------------------------------------------------------------------- +# Enable / Disable python.d.plugin modules +# +# The default for all modules is enabled (yes). +# Setting any of these to no will disable it. + +apache: {{ (groups['webserver'] is defined and inventory_hostname in groups['webserver'])|ternary("yes", "no") }} +apache_cache: {{ (groups['webserver'] is defined and inventory_hostname in groups['webserver'])|ternary("yes", "no") }} +cpufreq: yes +dovecot: no example: no +exim: no +hddtemp: yes +ipfs: no +memcached: {{ (groups['webserver'] is defined and inventory_hostname in groups['webserver'])|ternary("yes", "no") }} mysql: {{ (groups['dbserver-mysql'] is defined and inventory_hostname in groups['dbserver-mysql'])|ternary("yes", "no") }} -phpfpm: no -apache: {{ (groups['webserver'] is defined and inventory_hostname in groups['webserver'])|ternary("yes", "no") }} nginx: no +nginx_log: no +phpfpm: {{ (groups['webserver'] is defined and inventory_hostname in groups['webserver'])|ternary("yes", "no") }} +postfix: yes +redis: {{ (groups['webserver'] is defined and inventory_hostname in groups['webserver'])|ternary("yes", "no") }} +sensors: yes +squid: no +tomcat: no -- GitLab