Created
March 31, 2015 22:42
-
-
Save mumblez/50f50b42e694442ecb90 to your computer and use it in GitHub Desktop.
directory check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init_config: | |
instances: | |
# This config is for the Directory Check which is used to report metrics | |
# for the files in a given directory | |
# | |
# NOTE: This check is NOT currently supported on Windows systems | |
# | |
# For each instance, the 'directory' parameter is required, all others are optional. | |
# | |
# WARNING: Ensure the user account running the Agent (typically dd-agent) has read | |
# access to the monitored directory and files. | |
# | |
# Instances take the following parameters: | |
# "directory" - string, the directory to monitor. Required | |
# "name" - string, tag metrics with specified name. defaults to the "directory" | |
# "dirtagname" - string, the name of the tag used for the directory. defaults to "name" | |
# "filetagname" - string, the name of the tag used for each file. defaults to "filename" | |
# "filegauges" - boolean, when true stats will be an individual gauge per file (max. 20 files!) and not a histogram of the whole directory. default False | |
# "pattern" - string, the `fnmatch` pattern to use when reading the "directory"'s files. default "*" | |
# "recursive" - boolean, when true the stats will recurse into directories. default False | |
- directory: "/var/lib/mysql" | |
# name: "tag_value" | |
# dirtagname: "tag_dirname" | |
# filetagname: "tag_filename" | |
# filegauges: False | |
#pattern: "*" | |
recursive: True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment