{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/kapacitor/issues/781","repository_url":"https://api.github.com/repos/influxdata/kapacitor","labels_url":"https://api.github.com/repos/influxdata/kapacitor/issues/781/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/kapacitor/issues/781/comments","events_url":"https://api.github.com/repos/influxdata/kapacitor/issues/781/events","html_url":"https://github.com/influxdata/kapacitor/issues/781","id":169245647,"number":781,"title":"Unable to get externally-created subscriptions working","user":{"login":"mrwilby","id":3686946,"avatar_url":"https://avatars.githubusercontent.com/u/3686946?v=3","gravatar_id":"","url":"https://api.github.com/users/mrwilby","html_url":"https://github.com/mrwilby","followers_url":"https://api.github.com/users/mrwilby/followers","following_url":"https://api.github.com/users/mrwilby/following{/other_user}","gists_url":"https://api.github.com/users/mrwilby/gists{/gist_id}","starred_url":"https://api.github.com/users/mrwilby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrwilby/subscriptions","organizations_url":"https://api.github.com/users/mrwilby/orgs","repos_url":"https://api.github.com/users/mrwilby/repos","events_url":"https://api.github.com/users/mrwilby/events{/privacy}","received_events_url":"https://api.github.com/users/mrwilby/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-03T22:04:53Z","updated_at":"2016-09-16T14:25:02Z","closed_at":"2016-08-03T23:58:11Z","body":"According to this issue:\r\n\r\nhttps://github.com/influxdata/kapacitor/issues/349\r\n\r\n... it's possible to create subscriptions with the name:\r\n\r\nkapacitor-(cluster-id)\r\n\r\n...configured however one likes (UDP, HTTP, etc) and kapacitor will use whatever is configured in the subscription configuration, rather than kapacitor itself creating a subscription & listener on a 'random' port.\r\n\r\nIn my case, I run a few prepared queries against influxdb to seed the needed subscriptions before kapacitor starts.\r\n\r\nAfter my prepared queries run, if I \"SHOW SUBSCRIPTIONS\" in influxdb, I see this:\r\n\r\n// My custom database\r\nplatform-metrics\t\"kapacitor-platform-monitoring\"\t\"ALL\"\tudp://instance1:46661\r\n\r\n// _Internal database\r\nmonitor\t\"kapacitor-platform-monitoring\"\t\"ALL\"\tudp://instance1:46662\r\n\r\nSoon after, Kapactor is launched:\r\n\r\n\r\n'##:::'##::::'###::::'########:::::'###:::::'######::'####:'########::'#######::'########::\r\n ##::'##::::'## ##::: ##.... ##:::'## ##:::'##... ##:. ##::... ##..::'##.... ##: ##.... ##:\r\n ##:'##::::'##:. ##:: ##:::: ##::'##:. ##:: ##:::..::: ##::::: ##:::: ##:::: ##: ##:::: ##:\r\n #####::::'##:::. ##: ########::'##:::. ##: ##:::::::: ##::::: ##:::: ##:::: ##: ########::\r\n ##. ##::: #########: ##.....::: #########: ##:::::::: ##::::: ##:::: ##:::: ##: ##.. ##:::\r\n ##:. ##:: ##.... ##: ##:::::::: ##.... ##: ##::: ##:: ##::::: ##:::: ##:::: ##: ##::. ##::\r\n ##::. ##: ##:::: ##: ##:::::::: ##:::: ##:. ######::'####:::: ##::::. #######:: ##:::. ##:\r\n..::::..::..:::::..::..:::::::::..:::::..:::......:::....:::::..::::::.......:::..:::::..::\r\n\r\n2016/08/03 22:01:58 Using configuration at: /opt/kapacitor/conf/kapacitor.conf\r\n[run] 2016/08/03 22:01:58 I! Kapacitor starting, version 1.0.0~beta4, branch master, commit 1e00423551591862b11f70b5fc59a47300ef596c\r\n[run] 2016/08/03 22:01:58 I! Go version go1.6.2\r\n[srv] 2016/08/03 22:01:58 I! Kapacitor hostname: ...instance1...\r\n[srv] 2016/08/03 22:01:58 I! ClusterID: platform-monitoring ServerID: 30-135\r\n[task_master:main] 2016/08/03 22:01:58 I! opened\r\n[srv] 2016/08/03 22:01:58 D! opening service: *udf.Service\r\n[srv] 2016/08/03 22:01:58 D! opened service: *udf.Service\r\n[srv] 2016/08/03 22:01:58 D! opening service: *deadman.Service\r\n[srv] 2016/08/03 22:01:58 D! opened service: *deadman.Service\r\n[srv] 2016/08/03 22:01:58 D! opening service: *storage.Service\r\n[srv] 2016/08/03 22:01:58 D! opened service: *storage.Service\r\n[srv] 2016/08/03 22:01:58 D! opening service: *noauth.Service\r\n[srv] 2016/08/03 22:01:58 D! opened service: *noauth.Service\r\n[srv] 2016/08/03 22:01:58 D! opening service: *influxdb.Service\r\n[influxdb] 2016/08/03 22:01:58 D! linking subscriptions\r\n[srv] 2016/08/03 22:01:59 D! opened service: *influxdb.Service\r\n[srv] 2016/08/03 22:01:59 D! opening service: *task_store.Service\r\n[task_store] 2016/08/03 22:01:59 W! could not open old boltd for task_store. Not performing migration. Remove the `task_store.dir` configuration to disable migration.\r\n[srv] 2016/08/03 22:01:59 D! opened service: *task_store.Service\r\n[srv] 2016/08/03 22:01:59 D! opening service: *replay.Service\r\n[srv] 2016/08/03 22:01:59 D! opened service: *replay.Service\r\n[srv] 2016/08/03 22:01:59 D! opening service: *stats.Service\r\n[stats] 2016/08/03 22:01:59 I! opened service\r\n[srv] 2016/08/03 22:01:59 D! opened service: *stats.Service\r\n[srv] 2016/08/03 22:01:59 D! opening service: *reporting.Service\r\n[srv] 2016/08/03 22:01:59 D! opened service: *reporting.Service\r\n[srv] 2016/08/03 22:01:59 D! opening service: *httpd.Service\r\n[httpd] 2016/08/03 22:01:59 I! Starting HTTP service\r\n[httpd] 2016/08/03 22:01:59 I! Authentication enabled: false\r\n[httpd] 2016/08/03 22:01:59 I! Listening on HTTP: [::]:9092\r\n[srv] 2016/08/03 22:01:59 D! opened service: *httpd.Service\r\n[run] 2016/08/03 22:01:59 I! Listening for signals\r\n\r\nKapacitor overwrites the two subscriptions leaving influxdb looking like this:\r\n\r\n// My custom database\r\nplatform-metrics\t\"kapacitor-platform-monitoring\"\t\"ANY\"\thttp://instance1:9092\r\n\r\n// _internal \r\nretention_policy\tname\tmode\tdestinations\r\nmonitor\t\"kapacitor-platform-monitoring\"\t\"ANY\"\thttp://instance1:9092\r\n\r\n\r\nHow is this external seeding of kapacitor subscriptions supposed to work?\r\n\r\nTIA"},"comment":{"url":"https://api.github.com/repos/influxdata/kapacitor/issues/comments/247613994","html_url":"https://github.com/influxdata/kapacitor/issues/781#issuecomment-247613994","issue_url":"https://api.github.com/repos/influxdata/kapacitor/issues/781","id":247613994,"user":{"login":"mdamir","id":4290387,"avatar_url":"https://avatars.githubusercontent.com/u/4290387?v=3","gravatar_id":"","url":"https://api.github.com/users/mdamir","html_url":"https://github.com/mdamir","followers_url":"https://api.github.com/users/mdamir/followers","following_url":"https://api.github.com/users/mdamir/following{/other_user}","gists_url":"https://api.github.com/users/mdamir/gists{/gist_id}","starred_url":"https://api.github.com/users/mdamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdamir/subscriptions","organizations_url":"https://api.github.com/users/mdamir/orgs","repos_url":"https://api.github.com/users/mdamir/repos","events_url":"https://api.github.com/users/mdamir/events{/privacy}","received_events_url":"https://api.github.com/users/mdamir/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T14:25:01Z","updated_at":"2016-09-16T14:25:01Z","body":"@nathanielc Where can I get list of all env variables defined in the kapacitor.conf file. I want to be able to override these config values through ENVs. Specifically, I am interested in the influx db endpoints."}}
{"actor":{"display_login":"mdamir"}}