-
Notifications
You must be signed in to change notification settings - Fork 384
collectors FilestatCollector
Uses lsof to collect data on number of open files per user per type
- user_include - This is list of users to collect data for. If this is left empty, its a wildcard to collector for all users (default = None)
- user_exclude - This is a list of users to exclude from collecting data. If this is left empty, no specific users will be excluded (default = None)
- group_include - This is a list of groups to include in data collection. If this DOES NOT override user_exclude. (default = None)
- group_exclude - This is a list of groups to exclude from collecting data. It DOES NOT override user_include. (default = None)
- uid_min - This creates a floor for the user's uid. This means that it WILL NOT collect data for any user with a uid LOWER than the specified minimum, unless the user is told to be included by user_include (default = None)
- uid_max - This creates a ceiling for the user's uid. This means that it WILL NOT collect data for any user with a uid HIGHER than the specified maximum, unless the user is told to be included by user_include (default = None)
*** Priority Explaination *** This is an explainatino of the priority in which users, groups, and uid, are evaluated. EXLCUDE ALWAYS OVERRULES INCLUDE within the same level (ie within users or group)
-
user_include/exclude (top level/priority)
- group_include/exclude (second level: if user not in user_include/exclude,
groups takes affect)
- uid_min/max (third level: if user not met above qualifications, uids take affect)
- group_include/exclude (second level: if user not in user_include/exclude,
groups takes affect)
-
type_include - This is a list of file types to collect ('REG', 'DIR", 'FIFO' , etc). If left empty, will collect for all file types. (Note: it suggested to not leave type_include empty, as it would add significant load to your graphite box(es) (default = None)
-
type_exclude - This is a list of tile types to exlude from being collected for. If left empty, no file types will be excluded. (default = None)
-
collect_user_data - This enables or disables the collection of user specific file handles. (default = False)
- /proc/sys/fs/file-nr
- /usr/sbin/lsof
Options - Generic Options
Setting | Default | Description | Type |
---|---|---|---|
byte_unit | byte | Default numeric output(s) | str |
enabled | False | Enable collecting these metrics | bool |
measure_collector_time | False | Collect the collector run time in ms | bool |
metrics_blacklist | None | Regex to match metrics to block. Mutually exclusive with metrics_whitelist | NoneType |
metrics_whitelist | None | Regex to match metrics to transmit. Mutually exclusive with metrics_blacklist | NoneType |
servers.hostname.files.assigned 576
servers.hostname.files.max 4835852
servers.hostname.files.unused 0