Google Cloud Platform Data Stream Parameters
The Google Cloud Platform plugin provides configurable data streams to fetch analytics data.
Each configurable data stream exposes a set of parameters that lets you filter the data you retrieve. The following information describes the available configurable data streams and their parameters in detail.
BigQuery
Returns the result of a BigQuery SQL query, for reporting over data already held in BigQuery.
Firestore Documents
Returns documents from a Firestore collection.
Firestore Structured Query
Returns the Firestore documents matching a structured query, for when a whole collection is more than you need.
Monitor Metric
Returns a Cloud Monitoring metric for the resources in scope.
MQL Query
Returns the result of a Monitoring Query Language query. Use it when the metric you need takes more shaping than Monitor Metric allows.
Examples
MQL query not using dashboard timeframe - CPU usage time in the last 20 minutes in the selected project:
fetch gce_instance | metric 'compute.googleapis.com/instance/cpu/usage_time' | within (20m)MQL query not using dashboard timeframe - authentication events count in the last 24 hours:
fetch iam_service_account
| metric 'iam.googleapis.com/service_account/authn_events_count'
| align rate(1m)
| every 1m | within (24h)MQL query using dashboard timeframe - uploaded bytes in BigQuery data set:
fetch bigquery_dataset
| metric 'bigquery.googleapis.com/storage/uploaded_bytes'
| align rate(1m)
| every 1m