sqlservermetrics

package
v0.0.0-...-ad6a373 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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