{"action":"created","issue":{"url":"https://api.github.com/repos/dalen/puppetexplorer/issues/49","repository_url":"https://api.github.com/repos/dalen/puppetexplorer","labels_url":"https://api.github.com/repos/dalen/puppetexplorer/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/dalen/puppetexplorer/issues/49/comments","events_url":"https://api.github.com/repos/dalen/puppetexplorer/issues/49/events","html_url":"https://github.com/dalen/puppetexplorer/issues/49","id":142739563,"number":49,"title":"Population metric names changed in PuppetDB 4.x","user":{"login":"jasonhancock","id":1113245,"avatar_url":"https://avatars.githubusercontent.com/u/1113245?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonhancock","html_url":"https://github.com/jasonhancock","followers_url":"https://api.github.com/users/jasonhancock/followers","following_url":"https://api.github.com/users/jasonhancock/following{/other_user}","gists_url":"https://api.github.com/users/jasonhancock/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonhancock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonhancock/subscriptions","organizations_url":"https://api.github.com/users/jasonhancock/orgs","repos_url":"https://api.github.com/users/jasonhancock/repos","events_url":"https://api.github.com/users/jasonhancock/events{/privacy}","received_events_url":"https://api.github.com/users/jasonhancock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-03-22T18:33:27Z","updated_at":"2016-10-19T15:23:22Z","closed_at":null,"body":"Population metric names changed in PuppetDB 4.x\r\n\r\nhttps://docs.puppetlabs.com/puppetdb/4.0/api/metrics/v1/changes-from-puppetdb-v3.html#population-metrics\r\n\r\nFor example, the following metrics:\r\n\r\n```\r\npuppetlabs.puppetdb.query.population:type=default,name=num-nodes\r\npuppetlabs.puppetdb.query.population:type=default,name=num-resources\r\npuppetlabs.puppetdb.query.population:type=default,name=avg-resources-per-node\r\npuppetlabs.puppetdb.query.population:type=default,name=pct-resource-dupes\r\n```\r\n\r\nare now, respectively:\r\n\r\n```\r\npuppetlabs.puppetdb.population:name=num-nodes\r\npuppetlabs.puppetdb.population:name=num-resources\r\npuppetlabs.puppetdb.population:name=avg-resources-per-node\r\npuppetlabs.puppetdb.population:name=pct-resource-dupes\r\n```\r\nAs I'm proxying puppetexplorer with Apache, the addition of a rewrite rule works around this for now:\r\n\r\n```\r\nRewriteEngine On\r\nRewriteRule ^/api/metrics/v1/mbeans/puppetlabs.puppetdb.query.population:type=default,name=(.*)$  https://%{HTTP_HOST}/api/metrics/v1/mbeans/puppetlabs.puppetdb.population:name=$1 [R=301,L]\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dalen/puppetexplorer/issues/comments/254846776","html_url":"https://github.com/dalen/puppetexplorer/issues/49#issuecomment-254846776","issue_url":"https://api.github.com/repos/dalen/puppetexplorer/issues/49","id":254846776,"user":{"login":"Calixx","id":22939374,"avatar_url":"https://avatars.githubusercontent.com/u/22939374?v=3","gravatar_id":"","url":"https://api.github.com/users/Calixx","html_url":"https://github.com/Calixx","followers_url":"https://api.github.com/users/Calixx/followers","following_url":"https://api.github.com/users/Calixx/following{/other_user}","gists_url":"https://api.github.com/users/Calixx/gists{/gist_id}","starred_url":"https://api.github.com/users/Calixx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calixx/subscriptions","organizations_url":"https://api.github.com/users/Calixx/orgs","repos_url":"https://api.github.com/users/Calixx/repos","events_url":"https://api.github.com/users/Calixx/events{/privacy}","received_events_url":"https://api.github.com/users/Calixx/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T15:23:22Z","updated_at":"2016-10-19T15:23:22Z","body":"Thanks for the fix - after an additional \r\n`sudo setsebool -P httpd_can_network_connect on`\r\nit works like a charm for me."}}
{"actor":{"display_login":"Calixx"}}