Documentation
¶
Overview ¶
Package sql implements the prometheus.Collector interface for bigquery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector manages a prometheus.Collector for queries performed by a QueryRunner.
func NewCollector ¶
func NewCollector(runner QueryRunner, valType prometheus.ValueType, metricName, query string) *Collector
NewCollector creates a new BigQuery Collector instance.
func (*Collector) Collect ¶
func (col *Collector) Collect(ch chan<- prometheus.Metric)
Collect satisfies the prometheus.Collector interface. Collect reports values from cached metrics.
func (*Collector) Describe ¶
func (col *Collector) Describe(ch chan<- *prometheus.Desc)
Describe satisfies the prometheus.Collector interface. Describe is called immediately after registering the collector.
type QueryRunner ¶
QueryRunner defines the interface used to run a query and return an array of metrics.
Click to show internal directories.
Click to hide internal directories.