{"action":"opened","issue":{"url":"https://api.github.com/repos/influxdb/kapacitor/issues/81","labels_url":"https://api.github.com/repos/influxdb/kapacitor/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/kapacitor/issues/81/comments","events_url":"https://api.github.com/repos/influxdb/kapacitor/issues/81/events","html_url":"https://github.com/influxdb/kapacitor/issues/81","id":120647100,"number":81,"title":"Alert reloads not working","user":{"login":"jlark","id":956722,"avatar_url":"https://avatars.githubusercontent.com/u/956722?v=3","gravatar_id":"","url":"https://api.github.com/users/jlark","html_url":"https://github.com/jlark","followers_url":"https://api.github.com/users/jlark/followers","following_url":"https://api.github.com/users/jlark/following{/other_user}","gists_url":"https://api.github.com/users/jlark/gists{/gist_id}","starred_url":"https://api.github.com/users/jlark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlark/subscriptions","organizations_url":"https://api.github.com/users/jlark/orgs","repos_url":"https://api.github.com/users/jlark/repos","events_url":"https://api.github.com/users/jlark/events{/privacy}","received_events_url":"https://api.github.com/users/jlark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-06T17:30:27Z","updated_at":"2015-12-06T17:30:27Z","closed_at":null,"body":"Hi,\r\nI'm trying to reload my alerts and it doesn't seem to be working. \r\n\r\nPlease see sequence below.\r\ndev@sesh-dev1:~/alerts$ kapacitor show test_alert\r\nName: test_alert\r\nError:\r\nType: stream\r\nEnabled: true\r\nDatabases Retention Policies: [\"sesh\".\"default\"]\r\nTICKscript:\r\nstream\r\n    // Select just the cpu_usage_idle measurement from our example database.\r\n    .from().measurement('DCVolt1')\r\n    .alert()\r\n        .crit(lambda: \"value\" < 30 )\r\n        // Whenever we get an alert write it to a file.\r\n        .log('/tmp/alerts.log')\r\n\r\n\r\nDOT:\r\ndigraph test_alert {\r\nstream0 -> stream1;\r\nstream1 -> alert2;\r\n}\r\n\r\n----\r\n My modified alert \r\n----\r\ndev@sesh-dev1:~/alerts$ cat test_alert.tick\r\nstream\r\n    // Select just the cpu_usage_idle measurement from our example database.\r\n    .from().measurement('DCVolt1')\r\n        .as(\"Battery_Voltage\")\r\n    .alert()\r\n        .crit(lambda: \"value\" < 30 )\r\n        // Whenever we get an alert write it to a file.\r\n        .log('/tmp/alerts.log')\r\n        .slack() //added slack\r\n        .email() //added email\r\n\r\ndev@sesh-dev1:~/alerts$ kapacitor reload test_alert\r\n\r\ndev@sesh-dev1:~/alerts$ kapacitor show test_alert\r\nName: test_alert\r\nError:\r\nType: stream\r\nEnabled: true\r\nDatabases Retention Policies: [\"sesh\".\"default\"]\r\nTICKscript:\r\nstream\r\n    // Select just the cpu_usage_idle measurement from our example database.\r\n    .from().measurement('DCVolt1')\r\n    .alert()\r\n        .crit(lambda: \"value\" < 30 )\r\n        // Whenever we get an alert write it to a file.\r\n        .log('/tmp/alerts.log')\r\n\r\n\r\nDOT:\r\ndigraph test_alert {\r\nstream0 -> stream1;\r\nstream1 -> alert2;\r\n}\r\n\r\nNothing in the logs indicating an error.\r\n\r\n"}}