Browse Source

Global collectd update

tags/2016.12
Ales Komarek 8 years ago
parent
commit
f94e16c569
3 changed files with 23 additions and 21 deletions
  1. +5
    -4
      linux/files/collectd_df.conf
  2. +5
    -4
      linux/files/collectd_disk.conf
  3. +13
    -13
      linux/meta/collectd.yml

+ 5
- 4
linux/files/collectd_df.conf View File

LoadPlugin df
<LoadPlugin df>
Globals false
</LoadPlugin>

<Plugin df> <Plugin df>
{%- for fs_type in plugin.get('fs_types', []) %} {%- for fs_type in plugin.get('fs_types', []) %}
FSType {{ fs_type }} FSType {{ fs_type }}
{%- endfor %} {%- endfor %}
{%- if plugin.get('ignore_selected', False) %}
IgnoreSelected true
{%- endif %}
IgnoreSelected {{ plugin.get('ignore_selected', False)|lower }}
</Plugin> </Plugin>

+ 5
- 4
linux/files/collectd_disk.conf View File

LoadPlugin disk
<LoadPlugin disk>
Globals false
</LoadPlugin>

<Plugin disk> <Plugin disk>
{%- if plugin.get('ignore_selected', False) %}
IgnoreSelected true
{%- endif %}
IgnoreSelected {{ plugin.get('ignore_selected', True)|lower }}
</Plugin> </Plugin>

+ 13
- 13
linux/meta/collectd.yml View File

plugin: plugin:
linux_network_interface: linux_network_interface:
plugin: interface plugin: interface
interval: 60
execution: local
linux_system_cpu: linux_system_cpu:
plugin: cpu plugin: cpu
interval: 60
execution: local
linux_system_entropy: linux_system_entropy:
plugin: entropy plugin: entropy
interval: 60
execution: local
linux_system_load: linux_system_load:
plugin: load plugin: load
interval: 60
execution: local
linux_system_contextswitch: linux_system_contextswitch:
plugin: contextswitch plugin: contextswitch
interval: 60
execution: local
linux_system_memory: linux_system_memory:
plugin: memory plugin: memory
interval: 60
execution: local
linux_system_uptime: linux_system_uptime:
plugin: uptime plugin: uptime
interval: 60
execution: local
linux_system_users: linux_system_users:
plugin: users plugin: users
interval: 60
execution: local
linux_storage_df: linux_storage_df:
plugin: df plugin: df
interval: 60
execution: local
template: linux/files/collectd_df.conf template: linux/files/collectd_df.conf
ignore_selected: true
ignore_selected: True
fs_types: fs_types:
- rootfs - rootfs
- sysfs - sysfs
- cgroup - cgroup
linux_storage_disk: linux_storage_disk:
plugin: disk plugin: disk
interval: 60
execution: local
template: linux/files/collectd_disk.conf template: linux/files/collectd_disk.conf
ignore_selected: true
ignore_selected: True
linux_storage_swap: linux_storage_swap:
plugin: swap plugin: swap
interval: 60
execution: local

Loading…
Cancel
Save