{"action":"created","comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/77003603","id":77003603,"diff_hunk":"@@ -0,0 +1,76 @@\n+{ config, lib, pkgs, ... }:\n+\n+with lib;\n+\n+let\n+  cfg = config.services.telegraf;\n+\n+  configFile = pkgs.runCommand \"config.toml\" {\n+    buildInputs = [ pkgs.remarshal ];\n+  } ''\n+    remarshal -if json -of toml \\\n+      < ${pkgs.writeText \"config.json\" (builtins.toJSON cfg.extraConfig)} \\\n+      > $out\n+  '';\n+in\n+{\n+\n+  ###### interface\n+\n+  options = {\n+\n+    services.telegraf = {\n+\n+      enable = mkOption {","path":"nixos/modules/services/monitoring/telegraf.nix","position":24,"original_position":24,"commit_id":"33dcd9b4c029af1e060a578c6670e89dabb2378e","original_commit_id":"33dcd9b4c029af1e060a578c6670e89dabb2378e","user":{"login":"joachifm","id":41977,"avatar_url":"https://avatars.githubusercontent.com/u/41977?v=3","gravatar_id":"","url":"https://api.github.com/users/joachifm","html_url":"https://github.com/joachifm","followers_url":"https://api.github.com/users/joachifm/followers","following_url":"https://api.github.com/users/joachifm/following{/other_user}","gists_url":"https://api.github.com/users/joachifm/gists{/gist_id}","starred_url":"https://api.github.com/users/joachifm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joachifm/subscriptions","organizations_url":"https://api.github.com/users/joachifm/orgs","repos_url":"https://api.github.com/users/joachifm/repos","events_url":"https://api.github.com/users/joachifm/events{/privacy}","received_events_url":"https://api.github.com/users/joachifm/received_events","type":"User","site_admin":false},"body":"This can be shortened to `mkEnableOption \"telegraf server\"`","created_at":"2016-08-31T14:57:52Z","updated_at":"2016-08-31T14:57:52Z","html_url":"https://github.com/NixOS/nixpkgs/pull/18149#discussion_r77003603","pull_request_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18149","_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments/77003603"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/18149#discussion_r77003603"},"pull_request":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18149"}}},"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18149","id":83428158,"html_url":"https://github.com/NixOS/nixpkgs/pull/18149","diff_url":"https://github.com/NixOS/nixpkgs/pull/18149.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/18149.patch","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18149","number":18149,"state":"open","locked":false,"title":"telegraf: init at 0.13.2","user":{"login":"roblabla","id":1069318,"avatar_url":"https://avatars.githubusercontent.com/u/1069318?v=3","gravatar_id":"","url":"https://api.github.com/users/roblabla","html_url":"https://github.com/roblabla","followers_url":"https://api.github.com/users/roblabla/followers","following_url":"https://api.github.com/users/roblabla/following{/other_user}","gists_url":"https://api.github.com/users/roblabla/gists{/gist_id}","starred_url":"https://api.github.com/users/roblabla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblabla/subscriptions","organizations_url":"https://api.github.com/users/roblabla/orgs","repos_url":"https://api.github.com/users/roblabla/repos","events_url":"https://api.github.com/users/roblabla/events{/privacy}","received_events_url":"https://api.github.com/users/roblabla/received_events","type":"User","site_admin":false},"body":"###### Motivation for this change\r\n\r\nAdds telegraf, a plugin-driven server agent for collecting & reporting metrics commonly used with influxdb as a more flexible replacement for collectd.\r\n\r\n###### Things done\r\n\r\n- [x] Tested using sandboxing\r\n  ([nix.useChroot](http://nixos.org/nixos/manual/options.html#opt-nix.useChroot) on NixOS,\r\n    or option `build-use-chroot` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file)\r\n    on non-NixOS)\r\n- Built on platform(s)\r\n   - [x] NixOS\r\n   - [ ] OS X\r\n   - [ ] Linux\r\n- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nox --run \"nox-review wip\"`\r\n- [x] Tested execution of all binary files (usually in `./result/bin/`)\r\n- [x] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).\r\n\r\n---\r\n\r\n\r\n","created_at":"2016-08-31T10:38:18Z","updated_at":"2016-08-31T14:57:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18149/commits","review_comments_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18149/comments","review_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/18149/comments","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/33dcd9b4c029af1e060a578c6670e89dabb2378e","head":{"label":"roblabla:feature-addTelegraf","ref":"feature-addTelegraf","sha":"33dcd9b4c029af1e060a578c6670e89dabb2378e","user":{"login":"roblabla","id":1069318,"avatar_url":"https://avatars.githubusercontent.com/u/1069318?v=3","gravatar_id":"","url":"https://api.github.com/users/roblabla","html_url":"https://github.com/roblabla","followers_url":"https://api.github.com/users/roblabla/followers","following_url":"https://api.github.com/users/roblabla/following{/other_user}","gists_url":"https://api.github.com/users/roblabla/gists{/gist_id}","starred_url":"https://api.github.com/users/roblabla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblabla/subscriptions","organizations_url":"https://api.github.com/users/roblabla/orgs","repos_url":"https://api.github.com/users/roblabla/repos","events_url":"https://api.github.com/users/roblabla/events{/privacy}","received_events_url":"https://api.github.com/users/roblabla/received_events","type":"User","site_admin":false},"repo":{"id":42791648,"name":"nixpkgs","full_name":"roblabla/nixpkgs","owner":{"login":"roblabla","id":1069318,"avatar_url":"https://avatars.githubusercontent.com/u/1069318?v=3","gravatar_id":"","url":"https://api.github.com/users/roblabla","html_url":"https://github.com/roblabla","followers_url":"https://api.github.com/users/roblabla/followers","following_url":"https://api.github.com/users/roblabla/following{/other_user}","gists_url":"https://api.github.com/users/roblabla/gists{/gist_id}","starred_url":"https://api.github.com/users/roblabla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roblabla/subscriptions","organizations_url":"https://api.github.com/users/roblabla/orgs","repos_url":"https://api.github.com/users/roblabla/repos","events_url":"https://api.github.com/users/roblabla/events{/privacy}","received_events_url":"https://api.github.com/users/roblabla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/roblabla/nixpkgs","description":"Nix Packages collection","fork":true,"url":"https://api.github.com/repos/roblabla/nixpkgs","forks_url":"https://api.github.com/repos/roblabla/nixpkgs/forks","keys_url":"https://api.github.com/repos/roblabla/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roblabla/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roblabla/nixpkgs/teams","hooks_url":"https://api.github.com/repos/roblabla/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/roblabla/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/roblabla/nixpkgs/events","assignees_url":"https://api.github.com/repos/roblabla/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/roblabla/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/roblabla/nixpkgs/tags","blobs_url":"https://api.github.com/repos/roblabla/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roblabla/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roblabla/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/roblabla/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roblabla/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/roblabla/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/roblabla/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/roblabla/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/roblabla/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/roblabla/nixpkgs/subscription","commits_url":"https://api.github.com/repos/roblabla/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/roblabla/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/roblabla/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/roblabla/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/roblabla/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/roblabla/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roblabla/nixpkgs/merges","archive_url":"https://api.github.com/repos/roblabla/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roblabla/nixpkgs/downloads","issues_url":"https://api.github.com/repos/roblabla/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/roblabla/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/roblabla/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/roblabla/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roblabla/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/roblabla/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/roblabla/nixpkgs/deployments","created_at":"2015-09-19T22:19:45Z","updated_at":"2016-02-05T11:43:28Z","pushed_at":"2016-08-31T10:40:01Z","git_url":"git://github.com/roblabla/nixpkgs.git","ssh_url":"git@github.com:roblabla/nixpkgs.git","clone_url":"https://github.com/roblabla/nixpkgs.git","svn_url":"https://github.com/roblabla/nixpkgs","homepage":null,"size":330245,"stargazers_count":0,"watchers_count":0,"language":"Nix","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NixOS:master","ref":"master","sha":"5d61c42d6bda6fea00d500894b534834c49275dc","user":{"login":"NixOS","id":487568,"avatar_url":"https://avatars.githubusercontent.com/u/487568?v=3","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"repo":{"id":4542716,"name":"nixpkgs","full_name":"NixOS/nixpkgs","owner":{"login":"NixOS","id":487568,"avatar_url":"https://avatars.githubusercontent.com/u/487568?v=3","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NixOS/nixpkgs","description":"Nix Packages collection","fork":false,"url":"https://api.github.com/repos/NixOS/nixpkgs","forks_url":"https://api.github.com/repos/NixOS/nixpkgs/forks","keys_url":"https://api.github.com/repos/NixOS/nixpkgs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NixOS/nixpkgs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NixOS/nixpkgs/teams","hooks_url":"https://api.github.com/repos/NixOS/nixpkgs/hooks","issue_events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/events{/number}","events_url":"https://api.github.com/repos/NixOS/nixpkgs/events","assignees_url":"https://api.github.com/repos/NixOS/nixpkgs/assignees{/user}","branches_url":"https://api.github.com/repos/NixOS/nixpkgs/branches{/branch}","tags_url":"https://api.github.com/repos/NixOS/nixpkgs/tags","blobs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NixOS/nixpkgs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NixOS/nixpkgs/git/refs{/sha}","trees_url":"https://api.github.com/repos/NixOS/nixpkgs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NixOS/nixpkgs/statuses/{sha}","languages_url":"https://api.github.com/repos/NixOS/nixpkgs/languages","stargazers_url":"https://api.github.com/repos/NixOS/nixpkgs/stargazers","contributors_url":"https://api.github.com/repos/NixOS/nixpkgs/contributors","subscribers_url":"https://api.github.com/repos/NixOS/nixpkgs/subscribers","subscription_url":"https://api.github.com/repos/NixOS/nixpkgs/subscription","commits_url":"https://api.github.com/repos/NixOS/nixpkgs/commits{/sha}","git_commits_url":"https://api.github.com/repos/NixOS/nixpkgs/git/commits{/sha}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/comments{/number}","issue_comment_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments{/number}","contents_url":"https://api.github.com/repos/NixOS/nixpkgs/contents/{+path}","compare_url":"https://api.github.com/repos/NixOS/nixpkgs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NixOS/nixpkgs/merges","archive_url":"https://api.github.com/repos/NixOS/nixpkgs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NixOS/nixpkgs/downloads","issues_url":"https://api.github.com/repos/NixOS/nixpkgs/issues{/number}","pulls_url":"https://api.github.com/repos/NixOS/nixpkgs/pulls{/number}","milestones_url":"https://api.github.com/repos/NixOS/nixpkgs/milestones{/number}","notifications_url":"https://api.github.com/repos/NixOS/nixpkgs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/labels{/name}","releases_url":"https://api.github.com/repos/NixOS/nixpkgs/releases{/id}","deployments_url":"https://api.github.com/repos/NixOS/nixpkgs/deployments","created_at":"2012-06-04T02:49:46Z","updated_at":"2016-08-31T07:23:19Z","pushed_at":"2016-08-31T14:31:13Z","git_url":"git://github.com/NixOS/nixpkgs.git","ssh_url":"git@github.com:NixOS/nixpkgs.git","clone_url":"https://github.com/NixOS/nixpkgs.git","svn_url":"https://github.com/NixOS/nixpkgs","homepage":null,"size":581087,"stargazers_count":1267,"watchers_count":1267,"language":"Nix","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1587,"mirror_url":null,"open_issues_count":1512,"forks":1587,"open_issues":1512,"watchers":1267,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18149"},"html":{"href":"https://github.com/NixOS/nixpkgs/pull/18149"},"issue":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/18149"},"comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/issues/18149/comments"},"review_comments":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18149/comments"},"review_comment":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NixOS/nixpkgs/pulls/18149/commits"},"statuses":{"href":"https://api.github.com/repos/NixOS/nixpkgs/statuses/33dcd9b4c029af1e060a578c6670e89dabb2378e"}}}}
{"actor":{"display_login":"joachifm"}}