Skip to content

Metricbeat GCP billing metricset does not work with alphanumerical project ids #26855

@kaiyan-sheng

Description

@kaiyan-sheng

Metricbeat GCP billing metricset is using BigQuery to collect billing data. When GCP billing project ID includes alphanumeric, it returns an errors:

bigquery Wait failed: googleapi: Error 400: Syntax error: Missing whitespace between literal and alias at [9:41], invalidQuery

Turned out the BigQuery query is missing quotes in Metricbeat code. For example, instead of FROM some-project-name-with-dashes.Dataset_Name.gcp_billing_export_v1_xxx, the syntax should be

FROM `some-project-name-with-dashes`.Dataset_Name.gcp_billing_export_v1_xxx

cc @endorama

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions