{"action":"closed","issue":{"url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-disk/issues/8","repository_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-disk","labels_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-disk/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-disk/issues/8/comments","events_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-disk/issues/8/events","html_url":"https://github.com/intelsdi-x/snap-plugin-collector-disk/issues/8","id":160887012,"number":8,"title":"proc_path not presented as a \"Rule\"","user":{"login":"elemoine","id":76594,"avatar_url":"https://avatars.githubusercontent.com/u/76594?v=3","gravatar_id":"","url":"https://api.github.com/users/elemoine","html_url":"https://github.com/elemoine","followers_url":"https://api.github.com/users/elemoine/followers","following_url":"https://api.github.com/users/elemoine/following{/other_user}","gists_url":"https://api.github.com/users/elemoine/gists{/gist_id}","starred_url":"https://api.github.com/users/elemoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemoine/subscriptions","organizations_url":"https://api.github.com/users/elemoine/orgs","repos_url":"https://api.github.com/users/elemoine/repos","events_url":"https://api.github.com/users/elemoine/events{/privacy}","received_events_url":"https://api.github.com/users/elemoine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-06-17T13:23:38Z","updated_at":"2016-07-11T17:13:28Z","closed_at":"2016-07-11T17:13:28Z","body":"I used this in my workflow definition:\r\n\r\n```json\r\n  \"workflow\": {\r\n    \"collect\": {\r\n      \"config\": {\r\n        \"/intel/procfs\": {\r\n          \"proc_path\": \"/host-proc\"\r\n        }\r\n      },\r\n      \"metrics\": {\r\n```\r\n\r\nWhen I do `snapctl metric get -m /intel/procfs/disk/loop0/io_time` I get this:\r\n\r\n```\r\n$ snapctl metric get -m /intel/procfs/disk/loop0/io_time       \r\nNAMESPACE                                VERSION         UNIT    LAST ADVERTISED TIME            DESCRIPTION\r\n/intel/procfs/disk/loop0/io_time         3                       Fri, 17 Jun 2016 11:31:23 UTC   \r\n\r\n  Rules for collecting /intel/procfs/disk/loop0/io_time:\r\n\r\n       NAME      TYPE    DEFAULT         REQUIRED        MINIMUM         MAXIMUM\r\n```\r\n\r\nThe issue is that there is no `proc_path` rule!\r\n\r\nThe \"swap\" plugin, for example, does not have the same issue:\r\n\r\n```\r\n$ snapctl metric get -m /intel/procfs/swap/io/out_pages_per_sec\r\nNAMESPACE                                        VERSION         UNIT    LAST ADVERTISED TIME            DESCRIPTION\r\n/intel/procfs/swap/io/out_pages_per_sec          3                       Fri, 17 Jun 2016 11:31:25 UTC   \r\n\r\n  Rules for collecting /intel/procfs/swap/io/out_pages_per_sec:\r\n\r\n       NAME              TYPE            DEFAULT         REQUIRED        MINIMUM         MAXIMUM\r\n       proc_path         string          /proc           false\r\n```\r\n\r\nI guess this has to do with the rule [created](https://github.com/intelsdi-x/snap-plugin-collector-swap/blob/master/swap/swap.go#L271) by the \"swap\" plugin in the `GetConfigPolicy` function.\r\n\r\n"}}
{"actor":{"display_login":"marcin-krolik"}}