grafana-google-stackdriver-datasource
grafana-google-stackdriver-datasource copied to clipboard
More setup steps
For the Oauth Client Id does it need to be a web application? I'm not entirely clear on how to create the Oauth client ID. Any help would be appreciated.
I'll try to submit a pull-request for the setup steps. Hopefully this makes it to the official grafana plugins soon. Seems super nice!
I also got it working chrome was blocking the popup to approve the api and I think it was blocking me after clicking test too many times or something.
Did you get around to doing this?
I am getting failed to initialize
Ok just found it. When creating the OAuth token I needed to set the Authorised JavaScript origins and Authorised redirect URIs to the hostname I am using for Grafana
Sorry for poor documentation... I'll try to improve document if I have a time. But, document contribution is welcome, if somebody improve document, it's really helpful.
@timc3 @mtanda sorry for the delay let me try to update the docs this week when I get a break from work. :-)
@beenanner Thanks lot for your help!
Much appreciated.
@mtanda why is this implemented with OAuth2 rather than an API key that is restricted to the Stackdriver Monitoring API?
@mweiden Because Google provides a library which uses OAuth2, and it is an only available library for Browser-side Javascript. https://github.com/google/google-api-javascript-client
@mtanda couldn't this be used with the Datasource in proxy mode? https://developers.google.com/api-client-library/javascript/features/authentication#simple-access-using-the-api-key
@mweiden Recently, I need to use service account, so I try to support it. It is not tested, but you can try it. https://github.com/mtanda/grafana-google-stackdriver-datasource/pull/24
@beenanner can't figure it , as soon i try install the plugin within the docker container everything crashes . Can you please document the steps .
Yep I'm going to also try @mtanda branch too.