blackcowmoo / grafana-google-analytics-datasource

Grafana Google Analytics datasource
https://grafana.com/grafana/plugins/blackcowmoo-googleanalytics-datasource/
Apache License 2.0
35 stars 15 forks source link

[BUG] #83

Closed rgparkins closed 10 months ago

rgparkins commented 10 months ago

Describe the bug

I am not sure this is a bug rather something I have missed on configuration but I have followed the instructions for GA4 data source.

When creating a dashboard with GA4 I get an exception and cant run a query

Grafana Version & Plugin Version

0.2.1

To Reproduce

I have performed the instruction for setting up google analytics with grafana plugin, please note in step 5 I can only add a user and the additional 8th step and setting permissions I dont have in GA4 I have tested the connection and everything is testing as success. I then start a dashboard and immediately an exception is raised

Expected behavior

I can start a query

Screenshots

attached

Additional context

These are the logs I see



     2023-09-06 22:05:59 logger=plugin.blackcowmoo-googleanalytics-datasource t=2023-09-06T22:05:59.711710955Z level=error msg=Query error="Required AccountID"```
rgparkins commented 10 months ago
Screenshot 2023-09-07 at 09 50 00
lcc3108 commented 10 months ago

There's a null check missing in the query editor I'll fix it.

lcc3108 commented 10 months ago

The 0.2.0 version is available through the command below until the update.

grafana-cli plugins install blackcowmoo-googleanalytics-datasource 0.2.0

and grafana restart

rgparkins commented 10 months ago

Thanks you @lcc3108, I am not getting the exception my end now but still get a Required AccountID warning

lcc3108 commented 10 months ago

@rgparkins You have to choose from the list of pickers above.

image
rgparkins commented 10 months ago

@lcc3108 many thanks, I have the new one working great 👍 just couldn;t see the wood for the trees.. 🙏

lcc3108 commented 10 months ago

I think it's probably because of the bad UI. I will close the issue.