{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/707","repository_url":"https://api.github.com/repos/influxdata/telegraf","labels_url":"https://api.github.com/repos/influxdata/telegraf/issues/707/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/707/comments","events_url":"https://api.github.com/repos/influxdata/telegraf/issues/707/events","html_url":"https://github.com/influxdata/telegraf/pull/707","id":134176442,"number":707,"title":"[WIP] Improve prometheus plugin","user":{"login":"titilambert","id":47721,"avatar_url":"https://avatars.githubusercontent.com/u/47721?v=3","gravatar_id":"","url":"https://api.github.com/users/titilambert","html_url":"https://github.com/titilambert","followers_url":"https://api.github.com/users/titilambert/followers","following_url":"https://api.github.com/users/titilambert/following{/other_user}","gists_url":"https://api.github.com/users/titilambert/gists{/gist_id}","starred_url":"https://api.github.com/users/titilambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titilambert/subscriptions","organizations_url":"https://api.github.com/users/titilambert/orgs","repos_url":"https://api.github.com/users/titilambert/repos","events_url":"https://api.github.com/users/titilambert/events{/privacy}","received_events_url":"https://api.github.com/users/titilambert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-02-17T04:38:09Z","updated_at":"2016-02-20T06:47:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/influxdata/telegraf/pulls/707","html_url":"https://github.com/influxdata/telegraf/pull/707","diff_url":"https://github.com/influxdata/telegraf/pull/707.diff","patch_url":"https://github.com/influxdata/telegraf/pull/707.patch"},"body":"Hello, this is an improvement of prometheus input plugin:\r\n- Prometheus parser added\r\n- \"prometheus_\" prefix removed from metric names (could be readded using \"name_prefix\" option)\r\n- Add includes/excludes options to select metric you (don't) want\r\n\r\nQuestion:\r\n@sparrc If those changes are fine to you, I would like to add \"configuration examples\" of Prometheus input plugin to get some data.\r\nIt could be something like (for kubelet):\r\n```\r\n[[inputs.prometheus]]\r\n  urls = [\"http://kube-node-1:4194/metrics\"]\r\n  excludes = [\"^container_.*\"]\r\n  name_prefix = \"k8s_\"\r\n  [inputs.prometheus.tags]\r\n    kubeservice = \"kubelet\"\r\n```\r\nWhere can I put such examples ? in `plugins/inputs/prometheus/examples/*.conf` folder ?"},"comment":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/comments/186524022","html_url":"https://github.com/influxdata/telegraf/pull/707#issuecomment-186524022","issue_url":"https://api.github.com/repos/influxdata/telegraf/issues/707","id":186524022,"user":{"login":"titilambert","id":47721,"avatar_url":"https://avatars.githubusercontent.com/u/47721?v=3","gravatar_id":"","url":"https://api.github.com/users/titilambert","html_url":"https://github.com/titilambert","followers_url":"https://api.github.com/users/titilambert/followers","following_url":"https://api.github.com/users/titilambert/following{/other_user}","gists_url":"https://api.github.com/users/titilambert/gists{/gist_id}","starred_url":"https://api.github.com/users/titilambert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titilambert/subscriptions","organizations_url":"https://api.github.com/users/titilambert/orgs","repos_url":"https://api.github.com/users/titilambert/repos","events_url":"https://api.github.com/users/titilambert/events{/privacy}","received_events_url":"https://api.github.com/users/titilambert/received_events","type":"User","site_admin":false},"created_at":"2016-02-20T06:47:42Z","updated_at":"2016-02-20T06:47:42Z","body":"This PR is now split (see #730)"}}