{"action":"created","issue":{"url":"https://api.github.com/repos/bosun-monitor/bosun/issues/618","labels_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/618/labels{/name}","comments_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/618/comments","events_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/618/events","html_url":"https://github.com/bosun-monitor/bosun/issues/618","id":52222246,"number":618,"title":"Support influxdb","user":{"login":"fire","id":32321,"avatar_url":"https://avatars.githubusercontent.com/u/32321?v=3","gravatar_id":"","url":"https://api.github.com/users/fire","html_url":"https://github.com/fire","followers_url":"https://api.github.com/users/fire/followers","following_url":"https://api.github.com/users/fire/following{/other_user}","gists_url":"https://api.github.com/users/fire/gists{/gist_id}","starred_url":"https://api.github.com/users/fire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fire/subscriptions","organizations_url":"https://api.github.com/users/fire/orgs","repos_url":"https://api.github.com/users/fire/repos","events_url":"https://api.github.com/users/fire/events{/privacy}","received_events_url":"https://api.github.com/users/fire/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bosun-monitor/bosun/labels/bosun","name":"bosun","color":"fef2c0"},{"url":"https://api.github.com/repos/bosun-monitor/bosun/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/bosun-monitor/bosun/labels/Needs%20Review/Implementation%20Plan","name":"Needs Review/Implementation Plan","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2014-12-17T10:14:02Z","updated_at":"2015-04-27T11:42:12Z","closed_at":null,"body":"Would help if bosun supported influxdb. I didn't find a bug tracking this, so here it is.\r\n\r\nSince I have multiple datasources sending data to influxdb. (collectd, statsite). It would keep my dependencies low if I could use the influxdb for bosun rather than change the entire system to openTSDB."},"comment":{"url":"https://api.github.com/repos/bosun-monitor/bosun/issues/comments/96618114","html_url":"https://github.com/bosun-monitor/bosun/issues/618#issuecomment-96618114","issue_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/618","id":96618114,"user":{"login":"dblezek","id":76340,"avatar_url":"https://avatars.githubusercontent.com/u/76340?v=3","gravatar_id":"","url":"https://api.github.com/users/dblezek","html_url":"https://github.com/dblezek","followers_url":"https://api.github.com/users/dblezek/followers","following_url":"https://api.github.com/users/dblezek/following{/other_user}","gists_url":"https://api.github.com/users/dblezek/gists{/gist_id}","starred_url":"https://api.github.com/users/dblezek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblezek/subscriptions","organizations_url":"https://api.github.com/users/dblezek/orgs","repos_url":"https://api.github.com/users/dblezek/repos","events_url":"https://api.github.com/users/dblezek/events{/privacy}","received_events_url":"https://api.github.com/users/dblezek/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T11:42:12Z","updated_at":"2015-04-27T11:42:12Z","body":"@mjibson Have an initial (ugly) implementation @ https://github.com/dblezek/bosun/tree/influxdb  Could someone help by taking a look?\r\n\r\nThis branch adds a new function `influxdb` into the bosun query language.  It can be used as:\r\n\r\n```\r\ninfluxDBHost = http://dewey-splunk.mayo.edu:8086\r\n\r\nalert example.influxdb {\r\n   crit = avg(influxdb(\"select value from Sorter_association_rate\", \"5m\", \"\", \"\")) > 1\r\n}\r\n```\r\n\r\n#### Some caveats\r\n- the query must select a single value from InfuxDB, so generally `*` is bad\r\n- would like to add this to the `items` tab, could someone give me a pointer?\r\n- I could not test tags for some reason, my InfluxDB isn't storing them properly.  Could be my fault, we just upgraded to 0.9\r\n\r\n\r\n"}}