{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/kapacitor/issues/1056","repository_url":"https://api.github.com/repos/influxdata/kapacitor","labels_url":"https://api.github.com/repos/influxdata/kapacitor/issues/1056/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/kapacitor/issues/1056/comments","events_url":"https://api.github.com/repos/influxdata/kapacitor/issues/1056/events","html_url":"https://github.com/influxdata/kapacitor/issues/1056","id":190906172,"number":1056,"title":"Will not allow alert to be enabled","user":{"login":"ckdarby","id":220283,"avatar_url":"https://avatars.githubusercontent.com/u/220283?v=3","gravatar_id":"","url":"https://api.github.com/users/ckdarby","html_url":"https://github.com/ckdarby","followers_url":"https://api.github.com/users/ckdarby/followers","following_url":"https://api.github.com/users/ckdarby/following{/other_user}","gists_url":"https://api.github.com/users/ckdarby/gists{/gist_id}","starred_url":"https://api.github.com/users/ckdarby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckdarby/subscriptions","organizations_url":"https://api.github.com/users/ckdarby/orgs","repos_url":"https://api.github.com/users/ckdarby/repos","events_url":"https://api.github.com/users/ckdarby/events{/privacy}","received_events_url":"https://api.github.com/users/ckdarby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-22T04:42:52Z","updated_at":"2016-11-29T17:44:42Z","closed_at":null,"body":"```Kapacitor startup\r\n\r\n2016/11/21 23:31:46 Using configuration at: /etc/kapacitor/kapacitor.conf\r\n[run] 2016/11/21 23:31:46 I! Kapacitor starting, version 1.1.0, branch master, commit 939fdf670b028c142944977dcfcb045cac2343ed\r\n[run] 2016/11/21 23:31:46 I! Go version go1.7.3\r\n[srv] 2016/11/21 23:31:46 I! Kapacitor hostname: localhost\r\n[srv] 2016/11/21 23:31:46 I! ClusterID: 67cad1d8-fc1d-42a1-b7cd-38a3139c70c4 ServerID: abff053f-2d4b-4205-9c6f-e5a1ea7c84e8\r\n[task_master:main] 2016/11/21 23:31:46 I! opened\r\n[task_store] 2016/11/21 23:31:46 W! could not open old boltd for task_store. Not performing migration. Remove the `task_store.dir` configuration to disable migration.\r\n[smtp] 2016/11/21 23:31:46 I! Starting SMTP service\r\n[stats] 2016/11/21 23:31:46 I! opened service\r\n[httpd] 2016/11/21 23:31:46 I! Starting HTTP service\r\n[httpd] 2016/11/21 23:31:46 I! Authentication enabled: false\r\n[httpd] 2016/11/21 23:31:46 I! Listening on HTTP: [::]:9092\r\n[run] 2016/11/21 23:31:46 I! Listening for signals\r\n```\r\n\r\n```\r\nkapacitor define atlas_alert -type stream -tick atlas.tick -dbrp telegraf.three_hour\r\n\"PATCH /kapacitor/v1/tasks/atlas_alert HTTP/1.1\" 200 455 \"-\" \"KapacitorClient\" a34d04eb-b06d-11e6-8019-000000000000 12834\r\n```\r\n\r\n\r\n```\r\nkapacitor enable altas_alert\r\n\"GET /kapacitor/v1/tasks?dot-view=attributes&fields=link&limit=100&offset=0&pattern=altas_alert&replay-id=&script-format=formatted HTTP/1.1\" 200 43 \"-\" \"KapacitorClient\" 8dece635-b06d-11e6-8017-000000000000 997\r\n```\r\n\r\n```\r\nkapacitor show atlas_alert\r\nID: atlas_alert\r\nError: \r\nTemplate: \r\nType: stream\r\nStatus: disabled\r\nExecuting: false\r\nCreated: 21 Nov 16 23:10 EST\r\nModified: 21 Nov 16 23:33 EST\r\nLastEnabled: 01 Jan 01 00:00 UTC\r\nDatabases Retention Policies: [\"telegraf\".\"three_hour\"]\r\nTICKscript:\r\nstream\r\n    |from()\r\n        .measurement('cloudwatch_atlas-_samza')\r\n    |alert()\r\n        .crit(lambda: \"traffic-fail-count_sum\" < 100000)\r\n        .log('/tmp/alerts.log')\r\n\r\nDOT:\r\ndigraph atlas_alert {\r\nstream0 -> from1;\r\nfrom1 -> alert2;\r\n}\r\n```\r\n\r\n```\r\nkapacitor stats ingress\r\nDatabase   Retention Policy Measurement Points Received\r\n_kapacitor autogen          edges                    66\r\n_kapacitor autogen          ingress                 127\r\n_kapacitor autogen          kapacitor                33\r\n_kapacitor autogen          runtime                  33\r\n```\r\n\r\n```\r\nInfluxdb show subscriptions\r\n\r\ntelegraf\r\nretention_policy\tname\tmode\tdestinations\r\nautogen\t\"kapacitor-ce70605e-60fc-4745-ac24-8b8946a47df9\"\t\"ANY\"\thttp://localhost:9092\r\nautogen\t\"kapacitor-67cad1d8-fc1d-42a1-b7cd-38a3139c70c4\"\t\"ANY\"\thttp://localhost:9092\r\nthree_hour\t\"kapacitor-ce70605e-60fc-4745-ac24-8b8946a47df9\"\t\"ANY\"\thttp://localhost:9092\r\nthree_hour\t\"kapacitor-67cad1d8-fc1d-42a1-b7cd-38a3139c70c4\"\t\"ANY\"\thttp://localhost:9092\r\none_day\t\"kapacitor-ce70605e-60fc-4745-ac24-8b8946a47df9\"\t\"ANY\"\thttp://localhost:9092\r\none_day\t\"kapacitor-67cad1d8-fc1d-42a1-b7cd-38a3139c70c4\"\t\"ANY\"\thttp://localhost:9092\r\ntwo_week\t\"kapacitor-ce70605e-60fc-4745-ac24-8b8946a47df9\"\t\"ANY\"\thttp://localhost:9092\r\ntwo_week\t\"kapacitor-67cad1d8-fc1d-42a1-b7cd-38a3139c70c4\"\t\"ANY\"\thttp://localhost:9092\r\n```"},"comment":{"url":"https://api.github.com/repos/influxdata/kapacitor/issues/comments/263643323","html_url":"https://github.com/influxdata/kapacitor/issues/1056#issuecomment-263643323","issue_url":"https://api.github.com/repos/influxdata/kapacitor/issues/1056","id":263643323,"user":{"login":"nathanielc","id":3771906,"avatar_url":"https://avatars.githubusercontent.com/u/3771906?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielc","html_url":"https://github.com/nathanielc","followers_url":"https://api.github.com/users/nathanielc/followers","following_url":"https://api.github.com/users/nathanielc/following{/other_user}","gists_url":"https://api.github.com/users/nathanielc/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielc/subscriptions","organizations_url":"https://api.github.com/users/nathanielc/orgs","repos_url":"https://api.github.com/users/nathanielc/repos","events_url":"https://api.github.com/users/nathanielc/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielc/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T17:44:42Z","updated_at":"2016-11-29T17:44:42Z","body":"@ckdarby If Kapacitor doesn't have stats for a database then it hasn't received the data. In that case to debug it you need to follow the path from the subscription to Kapacitor. InfluxDB should log any network related errors it encounters when trying to write data.\r\n\r\nThe steps I follow are typically:\r\n\r\n1. Write a point using curl directly to Kapacitor. Check the ingress stats. From the Kapacitor host.\r\n2. Write a point using curl directly to Kapacitor from the InfluxDB host. (if the same host you can skip this step)\r\n3. Write a point using curl to InfluxDB, Check InfluxDB and the Kapacitor ingress stats.\r\n\r\nSince everything seems to be running on localhost there shouldn't be too much in the way to prevent the point from being written.\r\n\r\nIf you find any interesting logs please do share."}}
{"actor":{"display_login":"nathanielc"}}