sqlservermetrics

package
v0.0.0-...-8f1fef5 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package sqlservermetrics run SQL and OS collections and sends metrics to workload manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCEInterface

type GCEInterface interface {
	GetSecret(ctx context.Context, projectID, secretName string) (string, error)
}

GCEInterface defines the GCE services required by SQLServerMetrics.

type SQLServerMetrics

type SQLServerMetrics struct {
	Config         *configpb.SQLServerConfiguration
	DBcenterClient databasecenter.Client
}

SQLServerMetrics contains variables and methods to collect metrics for SQL Server databases.

func (*SQLServerMetrics) CollectDBCenterMetricsOnce

func (s *SQLServerMetrics) CollectDBCenterMetricsOnce(ctx context.Context)

CollectDBCenterMetricsOnce collects metrics for SQL Server databases running on the host.

func (*SQLServerMetrics) CollectMetricsOnce

func (s *SQLServerMetrics) CollectMetricsOnce(ctx context.Context, dwActivated bool)

CollectMetricsOnce collects metrics for SQL Server databases running on the host.

func (*SQLServerMetrics) PingDB

func (s *SQLServerMetrics) PingDB(ctx context.Context, gceService GCEInterface, cloudProps *configpb.CloudProperties) error

PingDB checks connectivity to the SQL Server databases.

Directories

Path Synopsis
remote
Package remote ssh'es into remote machines and runs a command
Package remote ssh'es into remote machines and runs a command
Package migration provides functions to migrate old sql-server-agent configurations to the new configuration format.
Package migration provides functions to migrate old sql-server-agent configurations to the new configuration format.
Package sqlcollector contains modules that collects rules from Sql server.
Package sqlcollector contains modules that collects rules from Sql server.
Package sqlserverutils contains utility data structures and functions for sql server metrics.
Package sqlserverutils contains utility data structures and functions for sql server metrics.
Package wlm contains types and functions to interact with WorkloadManager cloud APIs.
Package wlm contains types and functions to interact with WorkloadManager cloud APIs.

Jump to

Keyboard shortcuts

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