Grafana does not have GCP metrics/user labels

  • What Grafana version and what operating system are you using?
    Grafana v8.0.0

  • What are you trying to achieve?

I would like to query using GCP integration (datasource) through metadata user labels

  • How are you trying to achieve it?

Through explorer I am attemping to use builder (no predefined but manual does not seem to work) and MQL to query the data

  • What happened?

Either the data does not appear via builder

OR

The data does not properly filter by user defined labels and parse them in aliases, groupbys, etc.

  • What did you expect to happen?

I would expect via the builder to see the options for the metadata user labels AND/OR be able to see the proper groupings/aliases through mql

  • Can you copy/paste the configuration(s) that you are having problems with?

Here is a simple mql:

fetch gce_instance
| metric 'compute.googleapis.com/instance/cpu/utilization'
| filter (metadata.user_labels.component == 'blah-blah')
| group_by 1m, [value_utilization_mean: mean(value.utilization)]
| every 1m

Through the builder I will not see metrics such as CPU Load(1m) and many more.

The above as you can see doesn’t show things like metric_name etc and is not selectable.