oraclemetrics

package
v0.0.0-...-57e4d6e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package oraclemetrics queries Oracle database and sends the results as metrics to Cloud Monitoring.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricCollector

type MetricCollector struct {
	Config            *configpb.Configuration
	TimeSeriesCreator cloudmonitoring.TimeSeriesCreator
	BackOffs          *cloudmonitoring.BackOffIntervals
	GCEService        gceInterface
	// contains filtered or unexported fields
}

MetricCollector holds the parameters required for metric collection.

func New

New initializes and returns the MetricCollector struct.

func (*MetricCollector) CollectDBMetricsOnce

func (c *MetricCollector) CollectDBMetricsOnce(ctx context.Context) []*mrpb.TimeSeries

CollectDBMetricsOnce submits a task for each database connection to the worker pool. Each task executes a query from default_queries.json and sends the results as metrics to Cloud Monitoring.

Jump to

Keyboard shortcuts

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