)]}'
{"conf.d/directory.yaml.example":[{"author":{"_account_id":15027,"name":"Michael Hoppal","email":"michael.jam.hoppal@hpe.com","username":"michael-hoppal"},"change_message_id":"c9fe29067c1098da20fb2675d1acbd03ba1859fb","unresolved":false,"context_lines":[{"line_number":4,"context_line":""},{"line_number":5,"context_line":"instances:"},{"line_number":6,"context_line":"    # This config is for the Directory Check which is used to report metrics"},{"line_number":7,"context_line":"    # for the files in a given directory"},{"line_number":8,"context_line":"    #"},{"line_number":9,"context_line":"    # NOTE: This check is NOT currently supported on Windows systems"},{"line_number":10,"context_line":"    #"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"bae84128_25aec62d","line":7,"range":{"start_line":7,"start_character":14,"end_line":7,"end_character":19},"updated":"2016-02-24 15:43:22.000000000","message":"this is not true anymore","commit_id":"d9201f424a1210db2fa3b2ed3152675d4e3a96cb"},{"author":{"_account_id":15027,"name":"Michael Hoppal","email":"michael.jam.hoppal@hpe.com","username":"michael-hoppal"},"change_message_id":"c9fe29067c1098da20fb2675d1acbd03ba1859fb","unresolved":false,"context_lines":[{"line_number":10,"context_line":"    #"},{"line_number":11,"context_line":"    # For each instance, the \u0027directory\u0027 parameter is required"},{"line_number":12,"context_line":"    #"},{"line_number":13,"context_line":"    # WARNING: Ensure the user account running the Agent (typically dd-agent) has read"},{"line_number":14,"context_line":"    # access to the monitored directory and files."},{"line_number":15,"context_line":"    #"},{"line_number":16,"context_line":"    # Instances take the following parameters:"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"bae84128_05b5827c","line":13,"range":{"start_line":13,"start_character":68,"end_line":13,"end_character":70},"updated":"2016-02-24 15:43:22.000000000","message":"mon-agent","commit_id":"d9201f424a1210db2fa3b2ed3152675d4e3a96cb"}],"docs/Plugins.md":[{"author":{"_account_id":15027,"name":"Michael Hoppal","email":"michael.jam.hoppal@hpe.com","username":"michael-hoppal"},"change_message_id":"c9fe29067c1098da20fb2675d1acbd03ba1859fb","unresolved":false,"context_lines":[{"line_number":568,"context_line":""},{"line_number":569,"context_line":""},{"line_number":570,"context_line":"## Directory Checks"},{"line_number":571,"context_line":"This section describes the directory check that can be performed by the Agent. Directory checks are used for gathering the total size of all the files under a specific directory. The agent supports additional functionality through the use of Python scripts. A YAML file (directory.yaml) contains the list of directory names to check. A Python script (directory.py) runs checks each host in turn to gather stats."},{"line_number":572,"context_line":""},{"line_number":573,"context_line":"Similar to other checks, the configuration is done in YAML, and consists of two keys: init_config and instances. The former is not used by directory check, while the later contains one or more sets of directory names to check on. Directory check will by default sum the size of all the files under the given directory recursively."},{"line_number":574,"context_line":""}],"source_content_type":"text/x-markdown","patch_set":1,"id":"bae84128_a51db674","line":571,"range":{"start_line":571,"start_character":179,"end_line":571,"end_character":256},"updated":"2016-02-24 15:43:22.000000000","message":"little confused why this is here","commit_id":"d9201f424a1210db2fa3b2ed3152675d4e3a96cb"},{"author":{"_account_id":15027,"name":"Michael Hoppal","email":"michael.jam.hoppal@hpe.com","username":"michael-hoppal"},"change_message_id":"c9fe29067c1098da20fb2675d1acbd03ba1859fb","unresolved":false,"context_lines":[{"line_number":570,"context_line":"## Directory Checks"},{"line_number":571,"context_line":"This section describes the directory check that can be performed by the Agent. Directory checks are used for gathering the total size of all the files under a specific directory. The agent supports additional functionality through the use of Python scripts. A YAML file (directory.yaml) contains the list of directory names to check. A Python script (directory.py) runs checks each host in turn to gather stats."},{"line_number":572,"context_line":""},{"line_number":573,"context_line":"Similar to other checks, the configuration is done in YAML, and consists of two keys: init_config and instances. The former is not used by directory check, while the later contains one or more sets of directory names to check on. Directory check will by default sum the size of all the files under the given directory recursively."},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"Sample config:"},{"line_number":576,"context_line":""}],"source_content_type":"text/x-markdown","patch_set":1,"id":"bae84128_252366be","line":573,"range":{"start_line":573,"start_character":254,"end_line":573,"end_character":261},"updated":"2016-02-24 15:43:22.000000000","message":"remove default it will always sum the size of all the files.","commit_id":"d9201f424a1210db2fa3b2ed3152675d4e3a96cb"},{"author":{"_account_id":15027,"name":"Michael Hoppal","email":"michael.jam.hoppal@hpe.com","username":"michael-hoppal"},"change_message_id":"c9fe29067c1098da20fb2675d1acbd03ba1859fb","unresolved":false,"context_lines":[{"line_number":588,"context_line":"| Metric Name | Dimensions |"},{"line_number":589,"context_line":"| ----------- | ---------- |"},{"line_number":590,"context_line":"| directory.size_bytes  | path, hostname, service |"},{"line_number":591,"context_line":"| directory.files_count  | path, hostname, service |"},{"line_number":592,"context_line":""},{"line_number":593,"context_line":""},{"line_number":594,"context_line":"## Http Endpoint Checks"}],"source_content_type":"text/x-markdown","patch_set":1,"id":"bae84128_5016264c","line":591,"range":{"start_line":591,"start_character":12,"end_line":591,"end_character":23},"updated":"2016-02-24 15:43:22.000000000","message":"not sure how useful this metric would be what do you think? Maybe it should be optional?","commit_id":"d9201f424a1210db2fa3b2ed3152675d4e3a96cb"}],"monasca_agent/collector/checks_d/directory.py":[{"author":{"_account_id":15027,"name":"Michael Hoppal","email":"michael.jam.hoppal@hpe.com","username":"michael-hoppal"},"change_message_id":"c9fe29067c1098da20fb2675d1acbd03ba1859fb","unresolved":false,"context_lines":[{"line_number":16,"context_line":""},{"line_number":17,"context_line":"    \"\"\"This check is for monitoring and reporting metrics on the provided directory"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"    WARNING: the user/group that dd-agent runs as must have access to stat the files in the desired directory"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"    Config options:"},{"line_number":22,"context_line":"        \"directory\" - string, the directory to gather stats for. required"}],"source_content_type":"text/x-python","patch_set":1,"id":"bae84128_d0287688","line":19,"range":{"start_line":19,"start_character":33,"end_line":19,"end_character":35},"updated":"2016-02-24 15:43:22.000000000","message":"mon","commit_id":"d9201f424a1210db2fa3b2ed3152675d4e3a96cb"}],"monasca_setup/detection/plugins/directory.py":[{"author":{"_account_id":15027,"name":"Michael Hoppal","email":"michael.jam.hoppal@hpe.com","username":"michael-hoppal"},"change_message_id":"c9fe29067c1098da20fb2675d1acbd03ba1859fb","unresolved":false,"context_lines":[{"line_number":5,"context_line":""},{"line_number":6,"context_line":"class Directory(monasca_setup.detection.ServicePlugin):"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"    \"\"\"Detect Directory size of daemons and setup configuration to monitor"},{"line_number":9,"context_line":"    them."},{"line_number":10,"context_line":"       directory_names example:"},{"line_number":11,"context_line":"                    \u0027directory_names\u0027: [\u0027/path/to/directory_1\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"bae84128_b017b2a1","line":8,"range":{"start_line":8,"start_character":32,"end_line":8,"end_character":39},"updated":"2016-02-24 15:43:22.000000000","message":"we are not detecting directory sizes of daemons.","commit_id":"d9201f424a1210db2fa3b2ed3152675d4e3a96cb"},{"author":{"_account_id":15027,"name":"Michael Hoppal","email":"michael.jam.hoppal@hpe.com","username":"michael-hoppal"},"change_message_id":"c9fe29067c1098da20fb2675d1acbd03ba1859fb","unresolved":false,"context_lines":[{"line_number":13,"context_line":"                                        ...]"},{"line_number":14,"context_line":"    \"\"\""},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"    def __init__(self, template_dir, overwrite\u003dTrue, args\u003dNone):"},{"line_number":17,"context_line":"        service_params \u003d {"},{"line_number":18,"context_line":"            \u0027args\u0027: args,"},{"line_number":19,"context_line":"            \u0027template_dir\u0027: template_dir,"},{"line_number":20,"context_line":"            \u0027overwrite\u0027: overwrite,"},{"line_number":21,"context_line":"            \u0027service_name\u0027: \u0027directory-service\u0027,"},{"line_number":22,"context_line":"            \u0027directory_names\u0027: []}"},{"line_number":23,"context_line":"        super(Directory, self).__init__(service_params)"}],"source_content_type":"text/x-python","patch_set":1,"id":"bae84128_10e65ee7","line":23,"range":{"start_line":16,"start_character":0,"end_line":23,"end_character":55},"updated":"2016-02-24 15:43:22.000000000","message":"im not sure if i like this, I feel like we are starting to use these files under plugins as examples as we did with file_size.py and I am not sure if that is what we want. It makes it confusing as the other files are actually used to do detection. And it would be hard for the user to find this anyway on a machine as it will be in a virtualenv.","commit_id":"d9201f424a1210db2fa3b2ed3152675d4e3a96cb"}],"monasca_setup/detection/service_plugin.py":[{"author":{"_account_id":15027,"name":"Michael Hoppal","email":"michael.jam.hoppal@hpe.com","username":"michael-hoppal"},"change_message_id":"c9fe29067c1098da20fb2675d1acbd03ba1859fb","unresolved":false,"context_lines":[{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        if self.directory_names:"},{"line_number":111,"context_line":"            for dir_name in self.directory_names:"},{"line_number":112,"context_line":"                # default to be recursive"},{"line_number":113,"context_line":"                log.info(\"\\tMonitoring the size of directory {0}.\".format("},{"line_number":114,"context_line":"                    dir_name))"},{"line_number":115,"context_line":"                config.merge(watch_directory(dir_name))"}],"source_content_type":"text/x-python","patch_set":1,"id":"bae84128_109e5e06","line":112,"range":{"start_line":112,"start_character":17,"end_line":112,"end_character":18},"updated":"2016-02-24 15:43:22.000000000","message":"it is always recursive by saying default to it hints that there is an option not to do that.","commit_id":"d9201f424a1210db2fa3b2ed3152675d4e3a96cb"}],"monasca_setup/detection/utils.py":[{"author":{"_account_id":15027,"name":"Michael Hoppal","email":"michael.jam.hoppal@hpe.com","username":"michael-hoppal"},"change_message_id":"c9fe29067c1098da20fb2675d1acbd03ba1859fb","unresolved":false,"context_lines":[{"line_number":124,"context_line":""},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"def watch_directory(directory_name):"},{"line_number":127,"context_line":"    \"\"\"Takes a directory, a list of files, recursive flag and returns a"},{"line_number":128,"context_line":"        Plugins object with the config set."},{"line_number":129,"context_line":"    \"\"\""},{"line_number":130,"context_line":"    config \u003d agent_config.Plugins()"}],"source_content_type":"text/x-python","patch_set":1,"id":"bae84128_b06852f6","line":127,"range":{"start_line":127,"start_character":28,"end_line":127,"end_character":32},"updated":"2016-02-24 15:43:22.000000000","message":"no list of files, no recursive flag","commit_id":"d9201f424a1210db2fa3b2ed3152675d4e3a96cb"}]}
