grafana-google-stackdriver-datasource icon indicating copy to clipboard operation
grafana-google-stackdriver-datasource copied to clipboard

More setup steps

Open beenanner opened this issue 6 years ago • 15 comments

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.

beenanner avatar Apr 05 '18 04:04 beenanner

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!

beenanner avatar Apr 05 '18 05:04 beenanner

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.

beenanner avatar Apr 05 '18 05:04 beenanner

Did you get around to doing this?

timc3 avatar Apr 10 '18 12:04 timc3

I am getting failed to initialize

timc3 avatar Apr 10 '18 12:04 timc3

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

timc3 avatar Apr 10 '18 12:04 timc3

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.

mtanda avatar Apr 12 '18 09:04 mtanda

@timc3 @mtanda sorry for the delay let me try to update the docs this week when I get a break from work. :-)

beenanner avatar Apr 14 '18 15:04 beenanner

@beenanner Thanks lot for your help!

mtanda avatar Apr 16 '18 07:04 mtanda

Much appreciated.

timc3 avatar Apr 26 '18 10:04 timc3

@mtanda why is this implemented with OAuth2 rather than an API key that is restricted to the Stackdriver Monitoring API?

mweiden avatar May 17 '18 16:05 mweiden

@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 avatar May 18 '18 01:05 mtanda

@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 avatar May 18 '18 23:05 mweiden

@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

mtanda avatar May 21 '18 06:05 mtanda

@beenanner can't figure it , as soon i try install the plugin within the docker container everything crashes . Can you please document the steps .

percival-el avatar May 24 '18 05:05 percival-el

Yep I'm going to also try @mtanda branch too.

beenanner avatar May 26 '18 00:05 beenanner