blackcowmoo / grafana-google-analytics-datasource

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

Metric Data Type TYPE_MILLISECONDS Conversion Bug #85

Closed lcc3108 closed 1 year ago

lcc3108 commented 1 year ago
          Checking out Release 0.2.2 I can now pick Custom Metrics in the Query Builder 🚀 - returned values are null but same query works in GA4 Query Explorer

image

this seems to be a type config issue based on the warnings i get

image

image

Originally posted by @aa-matthias in https://github.com/blackcowmoo/grafana-google-analytics-datasource/issues/70#issuecomment-1711756483

lcc3108 commented 1 year ago
    // Type: The metric's data type.
    //
    // Possible values:
    //   "METRIC_TYPE_UNSPECIFIED" - Unspecified type.
    //   "TYPE_INTEGER" - Integer type.
    //   "TYPE_FLOAT" - Floating point type.
    //   "TYPE_SECONDS" - A duration of seconds; a special floating point
    // type.
    //   "TYPE_MILLISECONDS" - A duration in milliseconds; a special
    // floating point type.
    //   "TYPE_MINUTES" - A duration in minutes; a special floating point
    // type.
    //   "TYPE_HOURS" - A duration in hours; a special floating point type.
    //   "TYPE_STANDARD" - A custom metric of standard type; a special
    // floating point type.
    //   "TYPE_CURRENCY" - An amount of money; a special floating point
    // type.
    //   "TYPE_FEET" - A length in feet; a special floating point type.
    //   "TYPE_MILES" - A length in miles; a special floating point type.
    //   "TYPE_METERS" - A length in meters; a special floating point type.
    //   "TYPE_KILOMETERS" - A length in kilometers; a special floating
    // point type.

ga data type

aa-matthias commented 1 year ago

@lcc3108 - thanks for fixing that one! it's still not showing up on grafana plugin page - is the review still pending?

lcc3108 commented 1 year ago

@lcc3108 - thanks for fixing that one! it's still not showing up on grafana plugin page - is the review still pending?

Yes, I just submitted a revision and I'm waiting for a review.

aa-matthias commented 1 year ago

thanks, working now! i had to force refresh the browser to ensure the query mode (time series / table) selector was shown and added to existing panels. once switched to table and back to time series everything is working now... :)