monasca-agent/conf.d/directory.yaml.example

26 lines
1.0 KiB
Plaintext

# (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP
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"
# "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: "/path/to/directory"
name: "tag_name"
pattern: "*.log"
recursive: True