{"action":"created","issue":{"url":"https://api.github.com/repos/raintank/raintank-docker/issues/60","repository_url":"https://api.github.com/repos/raintank/raintank-docker","labels_url":"https://api.github.com/repos/raintank/raintank-docker/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/raintank/raintank-docker/issues/60/comments","events_url":"https://api.github.com/repos/raintank/raintank-docker/issues/60/events","html_url":"https://github.com/raintank/raintank-docker/issues/60","id":147490542,"number":60,"title":"how to get WP working in new dev stack?","user":{"login":"Dieterbe","id":20774,"avatar_url":"https://avatars.githubusercontent.com/u/20774?v=3","gravatar_id":"","url":"https://api.github.com/users/Dieterbe","html_url":"https://github.com/Dieterbe","followers_url":"https://api.github.com/users/Dieterbe/followers","following_url":"https://api.github.com/users/Dieterbe/following{/other_user}","gists_url":"https://api.github.com/users/Dieterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/Dieterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dieterbe/subscriptions","organizations_url":"https://api.github.com/users/Dieterbe/orgs","repos_url":"https://api.github.com/users/Dieterbe/repos","events_url":"https://api.github.com/users/Dieterbe/events{/privacy}","received_events_url":"https://api.github.com/users/Dieterbe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-11T16:59:23Z","updated_at":"2016-04-12T04:12:50Z","closed_at":null,"body":"we just merged in grafana3 + WP app instead of the deprecated raintank fork that had WP (litmus) embedded in grafana.\r\nbut how to get WP working in the new stack?\r\n\r\n@woodsaj could you please answer the following questions:\r\n\r\n1) we need to modify raintank_code/plugins/worldping-app/dist/plugin.json and change the url from \"\"https://worldping-api.raintank.io/api\"\" to \"http://worldping/api\" <-- can we make this so that we don't need to make manual adjustments?\r\n\r\n2) is there a way to trigger enabling the app, importing the dashboards and such, or is that still a manual step? should we first manually get an api key from http://localhost:3000/org/apikeys ?\r\n\r\n3) create-dev-datasource.sh used to have a neat trick where it would automatically insert a known api key into the mysql db. why was this removed? this was more convenient than doing it manually IMHO\r\n\r\n4) because of 3) launch_dev_collector.sh can now no longer authenticate itself (as far as i can see) since we now use `\"Authorization: Bearer changeme\"` instead of the auto-created api keys. what should we change this too? maybe `admin:admin` instead of a key?\r\n\r\n5) how does the probe authenticate itself? in /opt/raintank/raintank-collector/etc/raintank.json it still says `\"apiKey\": \"changeme\"`"},"comment":{"url":"https://api.github.com/repos/raintank/raintank-docker/issues/comments/208695042","html_url":"https://github.com/raintank/raintank-docker/issues/60#issuecomment-208695042","issue_url":"https://api.github.com/repos/raintank/raintank-docker/issues/60","id":208695042,"user":{"login":"woodsaj","id":8415072,"avatar_url":"https://avatars.githubusercontent.com/u/8415072?v=3","gravatar_id":"","url":"https://api.github.com/users/woodsaj","html_url":"https://github.com/woodsaj","followers_url":"https://api.github.com/users/woodsaj/followers","following_url":"https://api.github.com/users/woodsaj/following{/other_user}","gists_url":"https://api.github.com/users/woodsaj/gists{/gist_id}","starred_url":"https://api.github.com/users/woodsaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodsaj/subscriptions","organizations_url":"https://api.github.com/users/woodsaj/orgs","repos_url":"https://api.github.com/users/woodsaj/repos","events_url":"https://api.github.com/users/woodsaj/events{/privacy}","received_events_url":"https://api.github.com/users/woodsaj/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T04:12:50Z","updated_at":"2016-04-12T04:12:50Z","body":"1) The plugin needs to point to worldping-api.raintank.io else it wont work when users download it.  So the only option is to somehow transparently proxy requests sent to https://worldping-api.raintank.io to http://worldping/.   Your guess is as good as mine on how that could be done.\r\n\r\n2) You have to manually enable the app.  http://localhost:3000/org/apikeys is just for apiKeys to on the local grafana install. Those keys have nothing to do with worldping.  To enable worldping you still need to get a key from grafana.net\r\n\r\n3) worldping-api does not store api keys.  It simple validates keys against grafana.net (unless it is the adminKey, see below)\r\n\r\n4) worldping-api has an \"adminKey\" defined in the configfile. If this key is used then it is granted admin role on Org 1, and also has the \"grafanaAdmin\" flag.  The default adminKey defined in the config is \"changme\"\r\n\r\n5) using the adminKey, which by default is \"changeme\""}}