{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/telegraf/issues/241","labels_url":"https://api.github.com/repos/influxdb/telegraf/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/telegraf/issues/241/comments","events_url":"https://api.github.com/repos/influxdb/telegraf/issues/241/events","html_url":"https://github.com/influxdb/telegraf/pull/241","id":109682230,"number":241,"title":"Add MQTT output.","user":{"login":"shirou","id":177213,"avatar_url":"https://avatars.githubusercontent.com/u/177213?v=3","gravatar_id":"","url":"https://api.github.com/users/shirou","html_url":"https://github.com/shirou","followers_url":"https://api.github.com/users/shirou/followers","following_url":"https://api.github.com/users/shirou/following{/other_user}","gists_url":"https://api.github.com/users/shirou/gists{/gist_id}","starred_url":"https://api.github.com/users/shirou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shirou/subscriptions","organizations_url":"https://api.github.com/users/shirou/orgs","repos_url":"https://api.github.com/users/shirou/repos","events_url":"https://api.github.com/users/shirou/events{/privacy}","received_events_url":"https://api.github.com/users/shirou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-04T13:56:17Z","updated_at":"2015-10-05T01:02:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/influxdb/telegraf/pulls/241","html_url":"https://github.com/influxdb/telegraf/pull/241","diff_url":"https://github.com/influxdb/telegraf/pull/241.diff","patch_url":"https://github.com/influxdb/telegraf/pull/241.patch"},"body":"Add output which sends metrics to MQTT server.\r\n\r\nThe topic format is \r\n```\r\n<topic_prefix>/host/<hostname>/mem_used_percent\r\n```\r\nwhich mem_used_percent is replaced as other metrics.\r\n\r\n`hostname` in a topic is specified in the `outputs.mqtt` config section, not `agent` Because I could not found how to inherit hostname value from agant.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/influxdb/telegraf/issues/comments/145406785","html_url":"https://github.com/influxdb/telegraf/pull/241#issuecomment-145406785","issue_url":"https://api.github.com/repos/influxdb/telegraf/issues/241","id":145406785,"user":{"login":"sparrc","id":7155926,"avatar_url":"https://avatars.githubusercontent.com/u/7155926?v=3","gravatar_id":"","url":"https://api.github.com/users/sparrc","html_url":"https://github.com/sparrc","followers_url":"https://api.github.com/users/sparrc/followers","following_url":"https://api.github.com/users/sparrc/following{/other_user}","gists_url":"https://api.github.com/users/sparrc/gists{/gist_id}","starred_url":"https://api.github.com/users/sparrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparrc/subscriptions","organizations_url":"https://api.github.com/users/sparrc/orgs","repos_url":"https://api.github.com/users/sparrc/repos","events_url":"https://api.github.com/users/sparrc/events{/privacy}","received_events_url":"https://api.github.com/users/sparrc/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T01:02:29Z","updated_at":"2015-10-05T01:02:29Z","body":"@shirou thank you for the contribution! :+1: You shouldn't need to inherit the hostname tag, the agent should add that tag automatically in addition to the ones you add within this plugin"}}