)]}'
{"conf.d/cpu.yaml":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"433fde774dad9f90433acfb1b144dc5a7b031ee5","unresolved":false,"context_lines":[{"line_number":5,"context_line":"# filesystem. By default it\u0027s set for: /proc directory."},{"line_number":6,"context_line":"# Example:"},{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":"  process_fs_path: /rootfs/proc"},{"line_number":9,"context_line":"instances:"},{"line_number":10,"context_line":"    # Cpu check only supports one configured instance"},{"line_number":11,"context_line":"    - name: cpu_stats"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"3f79a3b5_ff527a66","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":31},"updated":"2018-08-16 11:21:35.000000000","message":"This line should be commented by default, it\u0027s optional and only for special (Docker) case.","commit_id":"41f1b09dcd0116713fbc4b480b37c1db232a421a"},{"author":{"_account_id":16171,"name":"Lukasz Zajaczkowski","email":"lukasz.zajaczkowski@ts.fujitsu.com","username":"lukasz.zajaczkowski"},"change_message_id":"6c0721301698bb8e3ef2b90b007c511e11c851c6","unresolved":false,"context_lines":[{"line_number":5,"context_line":"# filesystem. By default it\u0027s set for: /proc directory."},{"line_number":6,"context_line":"# Example:"},{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":"  process_fs_path: /rootfs/proc"},{"line_number":9,"context_line":"instances:"},{"line_number":10,"context_line":"    # Cpu check only supports one configured instance"},{"line_number":11,"context_line":"    - name: cpu_stats"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"3f79a3b5_0f1788a5","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":31},"in_reply_to":"3f79a3b5_ff527a66","updated":"2018-08-22 08:12:13.000000000","message":"Done","commit_id":"41f1b09dcd0116713fbc4b480b37c1db232a421a"}],"conf.d/disk.yaml":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"433fde774dad9f90433acfb1b144dc5a7b031ee5","unresolved":false,"context_lines":[{"line_number":5,"context_line":"# filesystem. By default it\u0027s set for: /proc directory."},{"line_number":6,"context_line":"# Example:"},{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":"  process_fs_path: /rootfs/proc"},{"line_number":9,"context_line":"instances:"},{"line_number":10,"context_line":"    # Disk check only supports one configured instance"},{"line_number":11,"context_line":"    - name: disk_stats"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"3f79a3b5_9f4d86c5","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":31},"updated":"2018-08-16 11:21:35.000000000","message":"This line should be commented by default, it\u0027s optional and only for special (Docker) case.","commit_id":"41f1b09dcd0116713fbc4b480b37c1db232a421a"},{"author":{"_account_id":16171,"name":"Lukasz Zajaczkowski","email":"lukasz.zajaczkowski@ts.fujitsu.com","username":"lukasz.zajaczkowski"},"change_message_id":"6c0721301698bb8e3ef2b90b007c511e11c851c6","unresolved":false,"context_lines":[{"line_number":5,"context_line":"# filesystem. By default it\u0027s set for: /proc directory."},{"line_number":6,"context_line":"# Example:"},{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":"  process_fs_path: /rootfs/proc"},{"line_number":9,"context_line":"instances:"},{"line_number":10,"context_line":"    # Disk check only supports one configured instance"},{"line_number":11,"context_line":"    - name: disk_stats"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"3f79a3b5_af0d3491","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":31},"in_reply_to":"3f79a3b5_9f4d86c5","updated":"2018-08-22 08:12:13.000000000","message":"Done","commit_id":"41f1b09dcd0116713fbc4b480b37c1db232a421a"}],"conf.d/load.yaml":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"433fde774dad9f90433acfb1b144dc5a7b031ee5","unresolved":false,"context_lines":[{"line_number":5,"context_line":"# filesystem. By default it\u0027s set for: /proc directory."},{"line_number":6,"context_line":"# Example:"},{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":"  process_fs_path: /rootfs/proc"},{"line_number":9,"context_line":"instances:"},{"line_number":10,"context_line":"    # Load check only supports one configured instance"},{"line_number":11,"context_line":"    - name: load_stats"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"3f79a3b5_5fc92e23","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":31},"updated":"2018-08-16 11:21:35.000000000","message":"This line should be commented by default, it\u0027s optional and only for special (Docker) case.","commit_id":"41f1b09dcd0116713fbc4b480b37c1db232a421a"},{"author":{"_account_id":16171,"name":"Lukasz Zajaczkowski","email":"lukasz.zajaczkowski@ts.fujitsu.com","username":"lukasz.zajaczkowski"},"change_message_id":"6c0721301698bb8e3ef2b90b007c511e11c851c6","unresolved":false,"context_lines":[{"line_number":5,"context_line":"# filesystem. By default it\u0027s set for: /proc directory."},{"line_number":6,"context_line":"# Example:"},{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":"  process_fs_path: /rootfs/proc"},{"line_number":9,"context_line":"instances:"},{"line_number":10,"context_line":"    # Load check only supports one configured instance"},{"line_number":11,"context_line":"    - name: load_stats"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"3f79a3b5_4f1ca0c0","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":31},"in_reply_to":"3f79a3b5_5fc92e23","updated":"2018-08-22 08:12:13.000000000","message":"Done","commit_id":"41f1b09dcd0116713fbc4b480b37c1db232a421a"}],"conf.d/memory.yaml":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"433fde774dad9f90433acfb1b144dc5a7b031ee5","unresolved":false,"context_lines":[{"line_number":5,"context_line":"# filesystem. By default it\u0027s set for: /proc directory."},{"line_number":6,"context_line":"# Example:"},{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":"  process_fs_path: /rootfs/proc"},{"line_number":9,"context_line":"instances:"},{"line_number":10,"context_line":"    # Memory check only supports one configured instance"},{"line_number":11,"context_line":"    - name: memory_stats"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"3f79a3b5_7fcc2a34","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":31},"updated":"2018-08-16 11:21:35.000000000","message":"This line should be commented by default, it\u0027s optional and only for special (Docker) case.","commit_id":"41f1b09dcd0116713fbc4b480b37c1db232a421a"},{"author":{"_account_id":16171,"name":"Lukasz Zajaczkowski","email":"lukasz.zajaczkowski@ts.fujitsu.com","username":"lukasz.zajaczkowski"},"change_message_id":"6c0721301698bb8e3ef2b90b007c511e11c851c6","unresolved":false,"context_lines":[{"line_number":5,"context_line":"# filesystem. By default it\u0027s set for: /proc directory."},{"line_number":6,"context_line":"# Example:"},{"line_number":7,"context_line":"#"},{"line_number":8,"context_line":"  process_fs_path: /rootfs/proc"},{"line_number":9,"context_line":"instances:"},{"line_number":10,"context_line":"    # Memory check only supports one configured instance"},{"line_number":11,"context_line":"    - name: memory_stats"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"3f79a3b5_0f7c68e9","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":31},"in_reply_to":"3f79a3b5_7fcc2a34","updated":"2018-08-22 08:12:13.000000000","message":"Done","commit_id":"41f1b09dcd0116713fbc4b480b37c1db232a421a"}],"docs/Plugins.md":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"433fde774dad9f90433acfb1b144dc5a7b031ee5","unresolved":false,"context_lines":[{"line_number":376,"context_line":"memory and load yaml files to the monasca-agent-collector container (mount"},{"line_number":377,"context_line":"plugin files to /plugins.d/cpu|disk|memory|load.yaml). Additionally you have to"},{"line_number":378,"context_line":"specify the path of the host process filesystem. In this case mount host root"},{"line_number":379,"context_line":"directory / to /rootfs in the container. Sample configuration:"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"cpu.yaml"},{"line_number":382,"context_line":"```"}],"source_content_type":"text/x-markdown","patch_set":1,"id":"3f79a3b5_7f7e6ae4","line":379,"range":{"start_line":379,"start_character":10,"end_line":379,"end_character":22},"updated":"2018-08-16 11:21:35.000000000","message":"I would like to see example of this mounting (could be for docker compose)","commit_id":"41f1b09dcd0116713fbc4b480b37c1db232a421a"},{"author":{"_account_id":16171,"name":"Lukasz Zajaczkowski","email":"lukasz.zajaczkowski@ts.fujitsu.com","username":"lukasz.zajaczkowski"},"change_message_id":"6c0721301698bb8e3ef2b90b007c511e11c851c6","unresolved":false,"context_lines":[{"line_number":376,"context_line":"memory and load yaml files to the monasca-agent-collector container (mount"},{"line_number":377,"context_line":"plugin files to /plugins.d/cpu|disk|memory|load.yaml). Additionally you have to"},{"line_number":378,"context_line":"specify the path of the host process filesystem. In this case mount host root"},{"line_number":379,"context_line":"directory / to /rootfs in the container. Sample configuration:"},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"cpu.yaml"},{"line_number":382,"context_line":"```"}],"source_content_type":"text/x-markdown","patch_set":1,"id":"3f79a3b5_cf8510d1","line":379,"range":{"start_line":379,"start_character":10,"end_line":379,"end_character":22},"in_reply_to":"3f79a3b5_7f7e6ae4","updated":"2018-08-22 08:12:13.000000000","message":"Done","commit_id":"41f1b09dcd0116713fbc4b480b37c1db232a421a"}],"monasca_agent/collector/checks_d/load.py":[{"author":{"_account_id":21922,"name":"Dobroslaw Zybort","email":"dobroslaw.zybort@ts.fujitsu.com","username":"dobrolaw.zybort"},"change_message_id":"433fde774dad9f90433acfb1b144dc5a7b031ee5","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"        if util.Platform.is_linux():"},{"line_number":41,"context_line":"            try:"},{"line_number":42,"context_line":"                if self.process_fs_path_config:"},{"line_number":43,"context_line":"                    log.debug("},{"line_number":44,"context_line":"                        \u0027The path of the process filesystem set to %s\u0027,"},{"line_number":45,"context_line":"                        self.process_fs_path_config)"},{"line_number":46,"context_line":"                    loadAvrgProc \u003d open(self.process_fs_path_config + \u0027/loadavg\u0027, \u0027r\u0027)"},{"line_number":47,"context_line":"                else:"},{"line_number":48,"context_line":"                    loadAvrgProc \u003d open(\u0027/proc/loadavg\u0027, \u0027r\u0027)"},{"line_number":49,"context_line":"                uptime \u003d loadAvrgProc.readlines()"},{"line_number":50,"context_line":"                loadAvrgProc.close()"},{"line_number":51,"context_line":"            except Exception:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_3fb9d277","line":48,"range":{"start_line":42,"start_character":0,"end_line":48,"end_character":61},"updated":"2018-08-16 11:21:35.000000000","message":"Cant you do here the same like in all other places (changing PROCFS_PATH)?\n\nif self.process_fs_path_config:\n    psutil.PROCFS_PATH \u003d self.process_fs_path_config\nloadAvrgProc \u003d open(psutil.PROCFS_PATH + \u0027/loadavg\u0027, \u0027r\u0027)","commit_id":"41f1b09dcd0116713fbc4b480b37c1db232a421a"},{"author":{"_account_id":16171,"name":"Lukasz Zajaczkowski","email":"lukasz.zajaczkowski@ts.fujitsu.com","username":"lukasz.zajaczkowski"},"change_message_id":"6c0721301698bb8e3ef2b90b007c511e11c851c6","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"        if util.Platform.is_linux():"},{"line_number":41,"context_line":"            try:"},{"line_number":42,"context_line":"                if self.process_fs_path_config:"},{"line_number":43,"context_line":"                    log.debug("},{"line_number":44,"context_line":"                        \u0027The path of the process filesystem set to %s\u0027,"},{"line_number":45,"context_line":"                        self.process_fs_path_config)"},{"line_number":46,"context_line":"                    loadAvrgProc \u003d open(self.process_fs_path_config + \u0027/loadavg\u0027, \u0027r\u0027)"},{"line_number":47,"context_line":"                else:"},{"line_number":48,"context_line":"                    loadAvrgProc \u003d open(\u0027/proc/loadavg\u0027, \u0027r\u0027)"},{"line_number":49,"context_line":"                uptime \u003d loadAvrgProc.readlines()"},{"line_number":50,"context_line":"                loadAvrgProc.close()"},{"line_number":51,"context_line":"            except Exception:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_0f2ea8f9","line":48,"range":{"start_line":42,"start_character":0,"end_line":48,"end_character":61},"in_reply_to":"3f79a3b5_3fb9d277","updated":"2018-08-22 08:12:13.000000000","message":"In other cases, I had to setup path for the psutil library (psutil.PROCFS_PATH). In this scenario, the average load value is taken directly from the file.","commit_id":"41f1b09dcd0116713fbc4b480b37c1db232a421a"}]}
