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 ¶
func New(ctx context.Context, config *configpb.Configuration) (*MetricCollector, error)
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.
Click to show internal directories.
Click to hide internal directories.