0.3.1 • Published 2 years ago

@grafana/levitate-bq v0.3.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Levitate with BigQuery

This is a utility tooling for shipping levitate data into big query.

Install

yarn install

Usage

Together with levitate

# Build the binary
yarn build

# Specify the google bigquery credentials file path via
export BQ_SA_KEY="<json-from-your-key-file>"
export BQ_PROJECT="<name-of-project>"

# Use levitate to get all imports for packages and send to big query
npx @grafana/levitate gobble [args] | node ./dist/index.js \
    -dataset gcom_plugins \
    -table grafana_import

Together with local example

# Build the binary
yarn build

# Pipe an already existing json file of package imports and send to big query
cat example.json | node ./dist/index.js \
    -dataset gcom_plugins \
    -table grafana_import