{"action":"created","issue":{"url":"https://api.github.com/repos/collectd/collectd/issues/2805","repository_url":"https://api.github.com/repos/collectd/collectd","labels_url":"https://api.github.com/repos/collectd/collectd/issues/2805/labels{/name}","comments_url":"https://api.github.com/repos/collectd/collectd/issues/2805/comments","events_url":"https://api.github.com/repos/collectd/collectd/issues/2805/events","html_url":"https://github.com/collectd/collectd/issues/2805","id":329110126,"node_id":"MDU6SXNzdWUzMjkxMTAxMjY=","number":2805,"title":"virt: allows to build HosthameFormat with information from libvirt metadata","user":{"login":"sileht","id":200878,"node_id":"MDQ6VXNlcjIwMDg3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/200878?v=4","gravatar_id":"","url":"https://api.github.com/users/sileht","html_url":"https://github.com/sileht","followers_url":"https://api.github.com/users/sileht/followers","following_url":"https://api.github.com/users/sileht/following{/other_user}","gists_url":"https://api.github.com/users/sileht/gists{/gist_id}","starred_url":"https://api.github.com/users/sileht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sileht/subscriptions","organizations_url":"https://api.github.com/users/sileht/orgs","repos_url":"https://api.github.com/users/sileht/repos","events_url":"https://api.github.com/users/sileht/events{/privacy}","received_events_url":"https://api.github.com/users/sileht/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-04T15:39:32Z","updated_at":"2018-06-05T14:36:52Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nSome application that creates libvirt virtual machine, adds some metadata [1] about the instances.\r\n\r\nCurrently we can only use the \"name\" or \"uuid\". It would be nice to use any information from metadata section.\r\n\r\nFor example, Openstack nova generate this kind of metadata: \r\n\r\n```\r\n  <metadata>\r\n    <nova:instance xmlns:nova=\"http://openstack.org/nova/instance/1\">\r\n      <nova:package version=\"2014.2.3\"/>\r\n      <nova:name>demo1vm</nova:name>\r\n        ....\r\n    </nova:instance>\r\n  </metadata>\r\n```\r\n\r\nAdd I would like to get the `<nova:instance><nova:name>` attribute into `HostnameFormat`.\r\n\r\nDoes a contribution that allow this will be accepted ?\r\n\r\nLike a new choice for `HostnameFormat` called `metadata` and a new option called `HostnameMetadataXPath` with xpath notation to get the attribute like: \r\n`/nova:instance/nova:name` ?\r\n\r\nRegards,\r\nsileht\r\n\r\n[1] https://libvirt.org/formatdomain.html#elementsMetadata"},"comment":{"url":"https://api.github.com/repos/collectd/collectd/issues/comments/394733871","html_url":"https://github.com/collectd/collectd/issues/2805#issuecomment-394733871","issue_url":"https://api.github.com/repos/collectd/collectd/issues/2805","id":394733871,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDczMzg3MQ==","user":{"login":"sileht","id":200878,"node_id":"MDQ6VXNlcjIwMDg3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/200878?v=4","gravatar_id":"","url":"https://api.github.com/users/sileht","html_url":"https://github.com/sileht","followers_url":"https://api.github.com/users/sileht/followers","following_url":"https://api.github.com/users/sileht/following{/other_user}","gists_url":"https://api.github.com/users/sileht/gists{/gist_id}","starred_url":"https://api.github.com/users/sileht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sileht/subscriptions","organizations_url":"https://api.github.com/users/sileht/orgs","repos_url":"https://api.github.com/users/sileht/repos","events_url":"https://api.github.com/users/sileht/events{/privacy}","received_events_url":"https://api.github.com/users/sileht/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T14:36:52Z","updated_at":"2018-06-05T14:36:52Z","author_association":"NONE","body":"@atyronesmith, yes, we could do something to extract multiple metadata. But remember that in collectd `hostname` is always truncated to 62 chars, so can't really put many of them."}}
{"actor":{"display_login":"sileht"}}