Skip to content

Google Cloud Monitoring: Use MQL editor for annotations query #58318

@andresmgot

Description

@andresmgot

What happened:

When writing an annotation query, only the query builder is available to write those:

Screenshot from 2022-11-07 12-20-37

What you expected to happen:

MQL queries can be more helpful when writing queries for annotations since it allow more complex conditions.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

There is actually code to parse MQL responses as annotation queries but I believe it was never used (so it's likely not working atm):

https://github.com/grafana/grafana/blob/main/pkg/tsdb/cloudmonitoring/time_series_query.go#L289

Environment:

  • Grafana version: 9.2.3
  • Data source type & version:
  • OS Grafana is installed on:
  • User OS & Browser:
  • Grafana plugins:
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Feature Requests

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions