Skip to content

Commit

Permalink
First version of bigquery backend.
Browse files Browse the repository at this point in the history
Lot of TODOs. But it should be good enough for anyone who wants to try
it out. Marked experimental.

Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
  • Loading branch information
rjnagal committed Aug 20, 2014
1 parent cb8f471 commit cfe839a
Show file tree
Hide file tree
Showing 6 changed files with 995 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cadvisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (

var argPort = flag.Int("port", 8080, "port to listen")

var argDbDriver = flag.String("storage_driver", "memory", "storage driver to use. Options are: memory (default) and influxdb")
var argDbDriver = flag.String("storage_driver", "memory", "storage driver to use. Options are: memory (default), bigquery, and influxdb")

func main() {
flag.Parse()
Expand Down
24 changes: 24 additions & 0 deletions storage/bigquery/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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](https://developers.google.com/accounts/docs/OAuth2) for Oauth related details.
Loading

0 comments on commit cfe839a

Please sign in to comment.