{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/telegraf/issues/310","labels_url":"https://api.github.com/repos/influxdb/telegraf/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/telegraf/issues/310/comments","events_url":"https://api.github.com/repos/influxdb/telegraf/issues/310/events","html_url":"https://github.com/influxdb/telegraf/issues/310","id":112902179,"number":310,"title":"Support sending elasticsearch cluster health metrics","user":{"login":"allenj","id":3359323,"avatar_url":"https://avatars.githubusercontent.com/u/3359323?v=3","gravatar_id":"","url":"https://api.github.com/users/allenj","html_url":"https://github.com/allenj","followers_url":"https://api.github.com/users/allenj/followers","following_url":"https://api.github.com/users/allenj/following{/other_user}","gists_url":"https://api.github.com/users/allenj/gists{/gist_id}","starred_url":"https://api.github.com/users/allenj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenj/subscriptions","organizations_url":"https://api.github.com/users/allenj/orgs","repos_url":"https://api.github.com/users/allenj/repos","events_url":"https://api.github.com/users/allenj/events{/privacy}","received_events_url":"https://api.github.com/users/allenj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/influxdb/telegraf/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/influxdb/telegraf/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-22T22:12:00Z","updated_at":"2015-10-27T01:59:15Z","closed_at":null,"body":"Currently only the /_nodes/stats and /_nodes/_local/stats are hit. Cluster health would also be beneficial (https://www.elastic.co/guide/en/elasticsearch/guide/current/_cluster_health.html)."},"comment":{"url":"https://api.github.com/repos/influxdb/telegraf/issues/comments/151342217","html_url":"https://github.com/influxdb/telegraf/issues/310#issuecomment-151342217","issue_url":"https://api.github.com/repos/influxdb/telegraf/issues/310","id":151342217,"user":{"login":"jipperinbham","id":829493,"avatar_url":"https://avatars.githubusercontent.com/u/829493?v=3","gravatar_id":"","url":"https://api.github.com/users/jipperinbham","html_url":"https://github.com/jipperinbham","followers_url":"https://api.github.com/users/jipperinbham/followers","following_url":"https://api.github.com/users/jipperinbham/following{/other_user}","gists_url":"https://api.github.com/users/jipperinbham/gists{/gist_id}","starred_url":"https://api.github.com/users/jipperinbham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jipperinbham/subscriptions","organizations_url":"https://api.github.com/users/jipperinbham/orgs","repos_url":"https://api.github.com/users/jipperinbham/repos","events_url":"https://api.github.com/users/jipperinbham/events{/privacy}","received_events_url":"https://api.github.com/users/jipperinbham/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T01:59:15Z","updated_at":"2015-10-27T01:59:15Z","body":"@otoolep sounds good, so for the following input\r\n```JSON\r\n\"indices\": {\r\n      \"v1\": {\r\n         \"status\": \"green\",\r\n         \"number_of_shards\": 10,\r\n         \"number_of_replicas\": 1,\r\n         \"active_primary_shards\": 10,\r\n         \"active_shards\": 20,\r\n         \"relocating_shards\": 0,\r\n         \"initializing_shards\": 0,\r\n         \"unassigned_shards\": 0\r\n      },\r\n      \"v2\": {\r\n         \"status\": \"red\", \r\n         \"number_of_shards\": 10,\r\n         \"number_of_replicas\": 1,\r\n         \"active_primary_shards\": 0,\r\n         \"active_shards\": 0,\r\n         \"relocating_shards\": 0,\r\n         \"initializing_shards\": 0,\r\n         \"unassigned_shards\": 20 \r\n      }\r\n}\r\n```\r\n\r\nwe'd process the tags as (semi-pseudo code)\r\n\r\n```Go\r\nfor k, v := range n.Indices {\r\n  for attr, value := range v.(map[string]interface{}) {\r\n    tags[\"index_\"+k+\"_\"+attr] = value\r\n  }\r\n}\r\n```\r\n"}}