{"action":"created","issue":{"url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-libvirt/issues/20","repository_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-libvirt","labels_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-libvirt/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-libvirt/issues/20/comments","events_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-libvirt/issues/20/events","html_url":"https://github.com/intelsdi-x/snap-plugin-collector-libvirt/issues/20","id":151779844,"number":20,"title":"libvirt plugin does not report value grouped by vm","user":{"login":"redmask11","id":18321936,"avatar_url":"https://avatars.githubusercontent.com/u/18321936?v=3","gravatar_id":"","url":"https://api.github.com/users/redmask11","html_url":"https://github.com/redmask11","followers_url":"https://api.github.com/users/redmask11/followers","following_url":"https://api.github.com/users/redmask11/following{/other_user}","gists_url":"https://api.github.com/users/redmask11/gists{/gist_id}","starred_url":"https://api.github.com/users/redmask11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redmask11/subscriptions","organizations_url":"https://api.github.com/users/redmask11/orgs","repos_url":"https://api.github.com/users/redmask11/repos","events_url":"https://api.github.com/users/redmask11/events{/privacy}","received_events_url":"https://api.github.com/users/redmask11/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-29T01:58:23Z","updated_at":"2016-06-03T17:17:42Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n  Bug Report\r\n\r\n##### SNAP VERSION\r\nroot@controller:~/snap/demo-snap# snapd --version\r\nsnapd version v0.13.0-beta\r\n\r\n##### SNAP PLUGIN VERSION\r\nroot@controller:~# snapctl plugin list\r\nNAME             VERSION         TYPE            SIGNED          STATUS          LOADED TIME\r\nlibvirt          5               collector       false           loaded          Thu, 28 Apr 2016 21:33:35 EDT\r\n\r\n##### CONFIGURATION\r\nNO\r\n\r\n##### OS / ENVIRONMENT\r\nroot@controller:~# cat /etc/issue\r\nUbuntu 14.04 LTS \\n \\l\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nwhen user collect metric data for several vm on one server, the namespace of output metrics\r\nis duplicated for one vm, the ideal output is different metrics for each vm \r\n##### STEPS TO REPRODUCE\r\n1 start snap agent with : snapd -t 0 -l 1\r\n\r\n2 load plugin with snapctl:\r\nsnapctl plugin load snap-plugin-collector-libvirt\r\nsnapctl plugin load snap-publisher-file\r\n\r\n3 start task with task file(libvirt.json):\r\n{\r\n\"version\": 1,\r\n\"schedule\": {\r\n\"type\": \"simple\",\r\n\"interval\": \"10s\"\r\n},\r\n\"workflow\": {\r\n\"collect\": {\r\n\"metrics\": {\r\n\"/libvirt/controller/*/cpu/cputime\":{},\r\n\"/libvirt/controller/*/mem/actual_balloon\":{},\r\n\"/libvirt/controller/*/mem/available\":{},\r\n\"/libvirt/controller/*/mem/major_fault\":{},\r\n\"/libvirt/controller/*/mem/max\":{},\r\n\"/libvirt/controller/*/mem/mem\":{},\r\n\"/libvirt/controller/*/mem/min_fault\":{},\r\n\"/libvirt/controller/*/mem/nr\":{},\r\n\"/libvirt/controller/*/mem/rss\":{},\r\n\"/libvirt/controller/*/mem/swap_in\":{},\r\n\"/libvirt/controller/*/mem/swap_out\":{},\r\n\"/libvirt/controller/*/mem/unused\":{}\r\n},\r\n\"publish\": [\r\n{\r\n\"plugin_name\": \"file\",\r\n\"config\": {\r\n\"file\": \"/tmp/publish\"\r\n}\r\n}\r\n]\r\n}\r\n}\r\n}\r\nsnapctl task create -t libvirt.json\r\n \r\n4 check vm list:\r\nroot@controller:~# virsh list --all\r\nId Name State\r\n2 instance-00000022 running\r\n5 instance-0000002d running\r\n\r\n5 watch task with snapctl:\r\nsnapctl task watch 006f7e99-4017-4c51-ad2c-698795027d0b\r\nWatching Task (006f7e99-4017-4c51-ad2c-698795027d0b):\r\nNAMESPACE DATA TIMESTAMP SOURCE\r\n/libvirt/controller/instance-0000002d/cpu/cputime 14210000000 2016-04-27 01:13:59.218062575 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/cpu/cputime 3108910000000 2016-04-27 01:13:59.220301598 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/actual_balloon 4194304 2016-04-27 01:13:59.231300627 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/actual_balloon 65536 2016-04-27 01:13:59.226170392 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/available 0 2016-04-27 01:13:59.237051842 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/available 0 2016-04-27 01:13:59.242251192 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/major_fault 696 2016-04-27 01:13:59.252869535 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/major_fault 0 2016-04-27 01:13:59.247979223 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/max 65536 2016-04-27 01:13:59.186531282 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/max 4194304 2016-04-27 01:13:59.188725875 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/mem 4194304 2016-04-27 01:13:59.193724255 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/mem 65536 2016-04-27 01:13:59.191489805 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/min_fault 478474 2016-04-27 01:13:59.204687113 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/min_fault 0 2016-04-27 01:13:59.199485476 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/nr 0 2016-04-27 01:13:59.161261599 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/nr 0 2016-04-27 01:13:59.155908468 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/rss 0 2016-04-27 01:13:59.172605889 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/rss 104808 2016-04-27 01:13:59.167176599 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/swap_in 0 2016-04-27 01:13:59.210279145 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/swap_in 0 2016-04-27 01:13:59.215287744 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/swap_out 0 2016-04-27 01:13:59.183739084 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/swap_out 0 2016-04-27 01:13:59.178371876 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/unused 0 2016-04-27 01:13:59.258578891 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/unused 0 2016-04-27 01:13:59.2635737 -0400 EDT controller\r\n\r\n##### EXPECTED RESULTS\r\nall metrics should be collected and displayed for each vm.\r\nfor example: for mem/unused. it should be display \r\n/libvirt/controller/instance-0000002d/mem/unused 0 2016-04-27 01:13:59.258578891 -0400 EDT controller\r\n/libvirt/controller/instance-00000022/mem/unused 0 2016-04-27 01:13:59.2635737 -0400 EDT controller\r\n##### ACTUAL RESULTS\r\nduplicated display for one vm, in my case it's instance-0000002d.\r\n/libvirt/controller/instance-0000002d/mem/unused 0 2016-04-27 01:13:59.258578891 -0400 EDT controller\r\n/libvirt/controller/instance-0000002d/mem/unused 0 2016-04-27 01:13:59.2635737 -0400 EDT controller\r\n@intelsdi-x/plugin-maintainers"},"comment":{"url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-libvirt/issues/comments/223638760","html_url":"https://github.com/intelsdi-x/snap-plugin-collector-libvirt/issues/20#issuecomment-223638760","issue_url":"https://api.github.com/repos/intelsdi-x/snap-plugin-collector-libvirt/issues/20","id":223638760,"user":{"login":"sandlbn","id":2578718,"avatar_url":"https://avatars.githubusercontent.com/u/2578718?v=3","gravatar_id":"","url":"https://api.github.com/users/sandlbn","html_url":"https://github.com/sandlbn","followers_url":"https://api.github.com/users/sandlbn/followers","following_url":"https://api.github.com/users/sandlbn/following{/other_user}","gists_url":"https://api.github.com/users/sandlbn/gists{/gist_id}","starred_url":"https://api.github.com/users/sandlbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandlbn/subscriptions","organizations_url":"https://api.github.com/users/sandlbn/orgs","repos_url":"https://api.github.com/users/sandlbn/repos","events_url":"https://api.github.com/users/sandlbn/events{/privacy}","received_events_url":"https://api.github.com/users/sandlbn/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T17:17:42Z","updated_at":"2016-06-03T17:17:42Z","body":"Looks like this one can be also related to the #23 . "}}
{"actor":{"display_login":"sandlbn"}}