bigquery

package
v0.0.0-...-0003b89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

README

BigQuery Storage Driver

[EXPERIMENTAL] Support for BigQuery backend as cAdvisor storage driver. The current implementation takes bunch of BigQuery specific flags for authentication. These will be merged into a single backend config.

To run the current version, following flags need to be specified:

 # Storage driver to use.
 -storage_driver=bigquery
 
 # Information about server-to-server Oauth token.
 # These can be obtained by creating a Service Account client id under `Google Developer API`
 
 # service client id
 -bq_id="XYZ.apps.googleusercontent.com"
 
 # service email address
 -bq_account="ABC@developer.gserviceaccount.com"
 
 # path to pem key (converted from p12 file)
 -bq_credentials_file="/path/to/key.pem"
 
 # project id to use for storing datasets.
 -bq_project_id="awesome_project"

See Service account Authentication for Oauth related details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(machineName,
	datasetId,
	tableName string,
	percentilesDuration time.Duration,
) (storage.StorageDriver, error)

Create a new bigquery storage driver. machineName: A unique identifier to identify the host that current cAdvisor instance is running on. tableName: BigQuery table used for storing stats. percentilesDuration: Time window which will be considered when calls Percentiles()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL