2017-09-14 1 views

Répondre

2

Pour une solution manuelle, vous pouvez avoir tous vos journaux BigQuery exportés dans BigQuery - et puis exécutez une requête pour garder la trace du nombre total d'octets facturés:

#standardSQL 
SELECT TIMESTAMP_TRUNC(timestamp, MONTH) month 
    , ROUND(SUM(protopayload_auditlog.servicedata_v1_bigquery.jobCompletedEvent.job.jobStatistics.totalBilledBytes 
      )/1000000000, 2) gb_queried 
FROM `fh-bigquery.audit.cloudaudit_googleapis_com_data_access_2017*` 
GROUP BY 1 
ORDER BY 1 

Pour configurer l'exportation de journaux et d'autres requêtes , voir: https://cloud.google.com/bigquery/audit-logs