{"action":"created","issue":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1689","labels_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1689/labels{/name}","comments_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1689/comments","events_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1689/events","html_url":"https://github.com/cockpit-project/cockpit/pull/1689","id":54884130,"number":1689,"title":"Metrics Archives","user":{"login":"mvollmer","id":3228183,"avatar_url":"https://avatars.githubusercontent.com/u/3228183?v=3","gravatar_id":"","url":"https://api.github.com/users/mvollmer","html_url":"https://github.com/mvollmer","followers_url":"https://api.github.com/users/mvollmer/followers","following_url":"https://api.github.com/users/mvollmer/following{/other_user}","gists_url":"https://api.github.com/users/mvollmer/gists{/gist_id}","starred_url":"https://api.github.com/users/mvollmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvollmer/subscriptions","organizations_url":"https://api.github.com/users/mvollmer/orgs","repos_url":"https://api.github.com/users/mvollmer/repos","events_url":"https://api.github.com/users/mvollmer/events{/privacy}","received_events_url":"https://api.github.com/users/mvollmer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cockpit-project/cockpit/labels/needsdesign","name":"needsdesign","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-01-20T13:42:34Z","updated_at":"2015-01-27T22:49:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cockpit-project/cockpit/pulls/1689","html_url":"https://github.com/cockpit-project/cockpit/pull/1689","diff_url":"https://github.com/cockpit-project/cockpit/pull/1689.diff","patch_url":"https://github.com/cockpit-project/cockpit/pull/1689.patch"},"body":"Followup pull requests:\r\n\r\n- Scrolling/zooming\r\n- Config UI for the logger\r\n\r\nInstructions:\r\n\r\nCreate `/var/lib/pcp/config/pmlogconf/tools/cockpit` with this content:\r\n\r\n```\r\n#pmlogconf-setup 2.0\r\nident   Metrics used by Cockpit\r\nforce   include\r\n        kernel.all.cpu.nice\r\n        kernel.all.cpu.user\r\n        kernel.all.cpu.sys\r\n        mem.util.used\r\n        network.interface.total.bytes\r\n        disk.dev.total_bytes\r\n```\r\n\r\nRun this command:\r\n\r\n```\r\n/usr/libexec/pcp/bin/pmlogconf /var/lib/pcp/config/pmlogger/config.default\r\n```\r\n\r\nand hold down the Return key for about 10 seconds until the shell prompt reappers.  Check that the cockpit metrics have been added.\r\n\r\nStart (or restart) pmlogger:\r\n\r\n```\r\nsystemctl enable pmcd\r\nsystemctl enable pmlogger\r\nsystemctl start pmcd\r\nsystemctl start pmlogger\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/comments/71745098","html_url":"https://github.com/cockpit-project/cockpit/pull/1689#issuecomment-71745098","issue_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/1689","id":71745098,"user":{"login":"fche","id":588885,"avatar_url":"https://avatars.githubusercontent.com/u/588885?v=3","gravatar_id":"","url":"https://api.github.com/users/fche","html_url":"https://github.com/fche","followers_url":"https://api.github.com/users/fche/followers","following_url":"https://api.github.com/users/fche/following{/other_user}","gists_url":"https://api.github.com/users/fche/gists{/gist_id}","starred_url":"https://api.github.com/users/fche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fche/subscriptions","organizations_url":"https://api.github.com/users/fche/orgs","repos_url":"https://api.github.com/users/fche/repos","events_url":"https://api.github.com/users/fche/events{/privacy}","received_events_url":"https://api.github.com/users/fche/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T22:49:22Z","updated_at":"2015-01-27T22:49:22Z","body":"@mvollmer, OK, if you really want to use the system \"primary\" pmlogger, that's indeed roughly the way: deposit a pmlogconf fragment in the right spot; cause regeneration of pmlogger config.default file; restart pmlogger.  (You are free to use a different sampling rate with a \"delta NNN\" clause in the pmlogconf input.)  You do not need to restart pmcd (as it is unaware of clients such as pmlogger).  Any other service-pmlogger instances that might get configured later will probably also inherit the new pmlogconf bits, for better or for worse, though OTOH that is a manual process (of changing /etc/pcp/pmlogger/control)."}}