{"action":"created","comment":{"url":"https://api.github.com/repos/prometheus/prometheus/pulls/comments/50345122","id":50345122,"diff_hunk":"@@ -0,0 +1,28 @@\n+# RabbitMQ Scraping\n+\n+This is an example on how to setup RabbitMQ so Prometheus can scrap data from it.\n+It uses a third party [RabbitMQ exporter](https://github.com/kbudde/rabbitmq_exporter).\n+\n+Since the [RabbitMQ exporter](https://github.com/kbudde/rabbitmq_exporter) needs to\n+connect on RabbitMQ management API to scrap data, and it defaults to localhost, it is\n+easier to simply embed the **kbudde/rabbitmq-exporter** on the same pod as RabbitMQ,\n+this way they share the same network.\n+\n+With this pod running you will have the exporter scraping data, but Prometheus have not\n+yet found the exporter and is not scraping data from it.\n+\n+For more details on how to use kubernetes service discovery take a look on the \n+[documentation](http://prometheus.io/docs/operating/configuration/#kubernetes-sd-configurations-kubernetes_sd_config)\n+and on the [available examples](./documentation/examples).\n+\n+After you got Kubernetes service discovery up and running you just need to advertise that RabbitMQ\n+is exposing metrics. To do that you need to define a service that:\n+\n+* Exposes the exporter port\n+* Add the annotation: prometheus.io/scrape: \"true\"\n+* Add the annotation: prometheus.io/port: \"9090\"\n+\n+And you should be able to see your RabbitMQ exporter being scraped on Prometheus status page.","path":"documentation/examples/contrib/kubernetes/rabbitmq/README.md","position":25,"original_position":25,"commit_id":"b7ae20d3d8e68c0b21ade98f18acce3e9b35c61c","original_commit_id":"b7ae20d3d8e68c0b21ade98f18acce3e9b35c61c","user":{"login":"juliusv","id":538008,"avatar_url":"https://avatars.githubusercontent.com/u/538008?v=3","gravatar_id":"","url":"https://api.github.com/users/juliusv","html_url":"https://github.com/juliusv","followers_url":"https://api.github.com/users/juliusv/followers","following_url":"https://api.github.com/users/juliusv/following{/other_user}","gists_url":"https://api.github.com/users/juliusv/gists{/gist_id}","starred_url":"https://api.github.com/users/juliusv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliusv/subscriptions","organizations_url":"https://api.github.com/users/juliusv/orgs","repos_url":"https://api.github.com/users/juliusv/repos","events_url":"https://api.github.com/users/juliusv/events{/privacy}","received_events_url":"https://api.github.com/users/juliusv/received_events","type":"User","site_admin":false},"body":"on -> on the","created_at":"2016-01-21T00:48:28Z","updated_at":"2016-01-21T00:48:28Z","html_url":"https://github.com/prometheus/prometheus/pull/1314#discussion_r50345122","pull_request_url":"https://api.github.com/repos/prometheus/prometheus/pulls/1314","_links":{"self":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/comments/50345122"},"html":{"href":"https://github.com/prometheus/prometheus/pull/1314#discussion_r50345122"},"pull_request":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/1314"}}},"pull_request":{"url":"https://api.github.com/repos/prometheus/prometheus/pulls/1314","id":55831035,"html_url":"https://github.com/prometheus/prometheus/pull/1314","diff_url":"https://github.com/prometheus/prometheus/pull/1314.diff","patch_url":"https://github.com/prometheus/prometheus/pull/1314.patch","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/1314","number":1314,"state":"open","locked":false,"title":"Adding RabbitMQ deploy for kubernetes + prometheus integration","user":{"login":"katcipis","id":157634,"avatar_url":"https://avatars.githubusercontent.com/u/157634?v=3","gravatar_id":"","url":"https://api.github.com/users/katcipis","html_url":"https://github.com/katcipis","followers_url":"https://api.github.com/users/katcipis/followers","following_url":"https://api.github.com/users/katcipis/following{/other_user}","gists_url":"https://api.github.com/users/katcipis/gists{/gist_id}","starred_url":"https://api.github.com/users/katcipis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katcipis/subscriptions","organizations_url":"https://api.github.com/users/katcipis/orgs","repos_url":"https://api.github.com/users/katcipis/repos","events_url":"https://api.github.com/users/katcipis/events{/privacy}","received_events_url":"https://api.github.com/users/katcipis/received_events","type":"User","site_admin":false},"body":"as mentioned on #1312","created_at":"2016-01-12T23:03:37Z","updated_at":"2016-01-21T00:48:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b517722b04793bef7715e84bba67628972cfabd4","assignee":{"login":"fabxc","id":4948210,"avatar_url":"https://avatars.githubusercontent.com/u/4948210?v=3","gravatar_id":"","url":"https://api.github.com/users/fabxc","html_url":"https://github.com/fabxc","followers_url":"https://api.github.com/users/fabxc/followers","following_url":"https://api.github.com/users/fabxc/following{/other_user}","gists_url":"https://api.github.com/users/fabxc/gists{/gist_id}","starred_url":"https://api.github.com/users/fabxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabxc/subscriptions","organizations_url":"https://api.github.com/users/fabxc/orgs","repos_url":"https://api.github.com/users/fabxc/repos","events_url":"https://api.github.com/users/fabxc/events{/privacy}","received_events_url":"https://api.github.com/users/fabxc/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/prometheus/prometheus/pulls/1314/commits","review_comments_url":"https://api.github.com/repos/prometheus/prometheus/pulls/1314/comments","review_comment_url":"https://api.github.com/repos/prometheus/prometheus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/1314/comments","statuses_url":"https://api.github.com/repos/prometheus/prometheus/statuses/b7ae20d3d8e68c0b21ade98f18acce3e9b35c61c","head":{"label":"katcipis:master","ref":"master","sha":"b7ae20d3d8e68c0b21ade98f18acce3e9b35c61c","user":{"login":"katcipis","id":157634,"avatar_url":"https://avatars.githubusercontent.com/u/157634?v=3","gravatar_id":"","url":"https://api.github.com/users/katcipis","html_url":"https://github.com/katcipis","followers_url":"https://api.github.com/users/katcipis/followers","following_url":"https://api.github.com/users/katcipis/following{/other_user}","gists_url":"https://api.github.com/users/katcipis/gists{/gist_id}","starred_url":"https://api.github.com/users/katcipis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katcipis/subscriptions","organizations_url":"https://api.github.com/users/katcipis/orgs","repos_url":"https://api.github.com/users/katcipis/repos","events_url":"https://api.github.com/users/katcipis/events{/privacy}","received_events_url":"https://api.github.com/users/katcipis/received_events","type":"User","site_admin":false},"repo":{"id":49534001,"name":"prometheus","full_name":"katcipis/prometheus","owner":{"login":"katcipis","id":157634,"avatar_url":"https://avatars.githubusercontent.com/u/157634?v=3","gravatar_id":"","url":"https://api.github.com/users/katcipis","html_url":"https://github.com/katcipis","followers_url":"https://api.github.com/users/katcipis/followers","following_url":"https://api.github.com/users/katcipis/following{/other_user}","gists_url":"https://api.github.com/users/katcipis/gists{/gist_id}","starred_url":"https://api.github.com/users/katcipis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katcipis/subscriptions","organizations_url":"https://api.github.com/users/katcipis/orgs","repos_url":"https://api.github.com/users/katcipis/repos","events_url":"https://api.github.com/users/katcipis/events{/privacy}","received_events_url":"https://api.github.com/users/katcipis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/katcipis/prometheus","description":"The Prometheus monitoring system and time series database.","fork":true,"url":"https://api.github.com/repos/katcipis/prometheus","forks_url":"https://api.github.com/repos/katcipis/prometheus/forks","keys_url":"https://api.github.com/repos/katcipis/prometheus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/katcipis/prometheus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/katcipis/prometheus/teams","hooks_url":"https://api.github.com/repos/katcipis/prometheus/hooks","issue_events_url":"https://api.github.com/repos/katcipis/prometheus/issues/events{/number}","events_url":"https://api.github.com/repos/katcipis/prometheus/events","assignees_url":"https://api.github.com/repos/katcipis/prometheus/assignees{/user}","branches_url":"https://api.github.com/repos/katcipis/prometheus/branches{/branch}","tags_url":"https://api.github.com/repos/katcipis/prometheus/tags","blobs_url":"https://api.github.com/repos/katcipis/prometheus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/katcipis/prometheus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/katcipis/prometheus/git/refs{/sha}","trees_url":"https://api.github.com/repos/katcipis/prometheus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/katcipis/prometheus/statuses/{sha}","languages_url":"https://api.github.com/repos/katcipis/prometheus/languages","stargazers_url":"https://api.github.com/repos/katcipis/prometheus/stargazers","contributors_url":"https://api.github.com/repos/katcipis/prometheus/contributors","subscribers_url":"https://api.github.com/repos/katcipis/prometheus/subscribers","subscription_url":"https://api.github.com/repos/katcipis/prometheus/subscription","commits_url":"https://api.github.com/repos/katcipis/prometheus/commits{/sha}","git_commits_url":"https://api.github.com/repos/katcipis/prometheus/git/commits{/sha}","comments_url":"https://api.github.com/repos/katcipis/prometheus/comments{/number}","issue_comment_url":"https://api.github.com/repos/katcipis/prometheus/issues/comments{/number}","contents_url":"https://api.github.com/repos/katcipis/prometheus/contents/{+path}","compare_url":"https://api.github.com/repos/katcipis/prometheus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/katcipis/prometheus/merges","archive_url":"https://api.github.com/repos/katcipis/prometheus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/katcipis/prometheus/downloads","issues_url":"https://api.github.com/repos/katcipis/prometheus/issues{/number}","pulls_url":"https://api.github.com/repos/katcipis/prometheus/pulls{/number}","milestones_url":"https://api.github.com/repos/katcipis/prometheus/milestones{/number}","notifications_url":"https://api.github.com/repos/katcipis/prometheus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/katcipis/prometheus/labels{/name}","releases_url":"https://api.github.com/repos/katcipis/prometheus/releases{/id}","created_at":"2016-01-12T22:47:01Z","updated_at":"2016-01-12T22:47:03Z","pushed_at":"2016-01-17T23:36:10Z","git_url":"git://github.com/katcipis/prometheus.git","ssh_url":"git@github.com:katcipis/prometheus.git","clone_url":"https://github.com/katcipis/prometheus.git","svn_url":"https://github.com/katcipis/prometheus","homepage":"http://prometheus.io/","size":9537,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"prometheus:master","ref":"master","sha":"944b1f7e842cf67bff97b276d4f8576312958249","user":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"repo":{"id":6838921,"name":"prometheus","full_name":"prometheus/prometheus","owner":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prometheus/prometheus","description":"The Prometheus monitoring system and time series database.","fork":false,"url":"https://api.github.com/repos/prometheus/prometheus","forks_url":"https://api.github.com/repos/prometheus/prometheus/forks","keys_url":"https://api.github.com/repos/prometheus/prometheus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prometheus/prometheus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prometheus/prometheus/teams","hooks_url":"https://api.github.com/repos/prometheus/prometheus/hooks","issue_events_url":"https://api.github.com/repos/prometheus/prometheus/issues/events{/number}","events_url":"https://api.github.com/repos/prometheus/prometheus/events","assignees_url":"https://api.github.com/repos/prometheus/prometheus/assignees{/user}","branches_url":"https://api.github.com/repos/prometheus/prometheus/branches{/branch}","tags_url":"https://api.github.com/repos/prometheus/prometheus/tags","blobs_url":"https://api.github.com/repos/prometheus/prometheus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prometheus/prometheus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prometheus/prometheus/git/refs{/sha}","trees_url":"https://api.github.com/repos/prometheus/prometheus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prometheus/prometheus/statuses/{sha}","languages_url":"https://api.github.com/repos/prometheus/prometheus/languages","stargazers_url":"https://api.github.com/repos/prometheus/prometheus/stargazers","contributors_url":"https://api.github.com/repos/prometheus/prometheus/contributors","subscribers_url":"https://api.github.com/repos/prometheus/prometheus/subscribers","subscription_url":"https://api.github.com/repos/prometheus/prometheus/subscription","commits_url":"https://api.github.com/repos/prometheus/prometheus/commits{/sha}","git_commits_url":"https://api.github.com/repos/prometheus/prometheus/git/commits{/sha}","comments_url":"https://api.github.com/repos/prometheus/prometheus/comments{/number}","issue_comment_url":"https://api.github.com/repos/prometheus/prometheus/issues/comments{/number}","contents_url":"https://api.github.com/repos/prometheus/prometheus/contents/{+path}","compare_url":"https://api.github.com/repos/prometheus/prometheus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prometheus/prometheus/merges","archive_url":"https://api.github.com/repos/prometheus/prometheus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prometheus/prometheus/downloads","issues_url":"https://api.github.com/repos/prometheus/prometheus/issues{/number}","pulls_url":"https://api.github.com/repos/prometheus/prometheus/pulls{/number}","milestones_url":"https://api.github.com/repos/prometheus/prometheus/milestones{/number}","notifications_url":"https://api.github.com/repos/prometheus/prometheus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prometheus/prometheus/labels{/name}","releases_url":"https://api.github.com/repos/prometheus/prometheus/releases{/id}","created_at":"2012-11-24T11:14:12Z","updated_at":"2016-01-20T22:49:56Z","pushed_at":"2016-01-21T00:37:37Z","git_url":"git://github.com/prometheus/prometheus.git","ssh_url":"git@github.com:prometheus/prometheus.git","clone_url":"https://github.com/prometheus/prometheus.git","svn_url":"https://github.com/prometheus/prometheus","homepage":"http://prometheus.io/","size":10774,"stargazers_count":3730,"watchers_count":3730,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":286,"mirror_url":null,"open_issues_count":121,"forks":286,"open_issues":121,"watchers":3730,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/1314"},"html":{"href":"https://github.com/prometheus/prometheus/pull/1314"},"issue":{"href":"https://api.github.com/repos/prometheus/prometheus/issues/1314"},"comments":{"href":"https://api.github.com/repos/prometheus/prometheus/issues/1314/comments"},"review_comments":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/1314/comments"},"review_comment":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/1314/commits"},"statuses":{"href":"https://api.github.com/repos/prometheus/prometheus/statuses/b7ae20d3d8e68c0b21ade98f18acce3e9b35c61c"}}}}