bigquerydb

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigqueryClient

type BigqueryClient struct {
	// contains filtered or unexported fields
}

BigqueryClient allows sending batches of Prometheus samples to Bigquery.

func NewClient

func NewClient(logger log.Logger, googleAPIjsonkeypath, googleProjectID, googleAPIdatasetID, googleAPItableID string, remoteTimeout time.Duration) *BigqueryClient

NewClient creates a new Client.

func (*BigqueryClient) Collect

func (c *BigqueryClient) Collect(ch chan<- prometheus.Metric)

Collect implements prometheus.Collector.

func (*BigqueryClient) Describe

func (c *BigqueryClient) Describe(ch chan<- *prometheus.Desc)

Describe implements prometheus.Collector.

func (BigqueryClient) Name

func (c BigqueryClient) Name() string

Name identifies the client as a BigQuery client.

func (*BigqueryClient) Read

Read queries the database and returns the results to Prometheus

func (*BigqueryClient) Write

func (c *BigqueryClient) Write(timeseries []*prompb.TimeSeries) error

Write sends a batch of samples to BigQuery via the client.

type Item

type Item struct {
	// contains filtered or unexported fields
}

Item represents a row item.

func (*Item) Save

func (i *Item) Save() (map[string]bigquery.Value, string, error)

Save implements the ValueSaver interface.

Jump to

Keyboard shortcuts

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