collector

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaDetailsCollector = "schema_details"
	OP_TABLE_DETECTION     = "table_detection"
	OP_CREATE_STATEMENT    = "create_statement"
)
View Source
const ConnectionInfoName = "connection_info"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionInfo

type ConnectionInfo struct {
	DSN           string
	Registry      *prometheus.Registry
	EngineVersion string
	InfoMetric    *prometheus.GaugeVec
	CloudProvider *database_observability.CloudProvider
	// contains filtered or unexported fields
}

func NewConnectionInfo

func NewConnectionInfo(args ConnectionInfoArguments) (*ConnectionInfo, error)

func (*ConnectionInfo) Name

func (c *ConnectionInfo) Name() string

func (*ConnectionInfo) Start

func (c *ConnectionInfo) Start(ctx context.Context) error

func (*ConnectionInfo) Stop

func (c *ConnectionInfo) Stop()

func (*ConnectionInfo) Stopped

func (c *ConnectionInfo) Stopped() bool

type ConnectionInfoArguments

type ConnectionInfoArguments struct {
	DSN           string
	Registry      *prometheus.Registry
	EngineVersion string
	CloudProvider *database_observability.CloudProvider
	DB            *sql.DB
}

type SchemaDetails

type SchemaDetails struct {
	// contains filtered or unexported fields
}

func NewSchemaDetails

func NewSchemaDetails(args SchemaDetailsArguments) (*SchemaDetails, error)

func (*SchemaDetails) Name

func (c *SchemaDetails) Name() string

func (*SchemaDetails) Start

func (c *SchemaDetails) Start(ctx context.Context) error

func (*SchemaDetails) Stop

func (c *SchemaDetails) Stop()

func (*SchemaDetails) Stopped

func (c *SchemaDetails) Stopped() bool

type SchemaDetailsArguments

type SchemaDetailsArguments struct {
	DB               *sql.DB
	CollectInterval  time.Duration
	ExcludeSchemas   []string
	ExcludeDatabases []string
	EntryHandler     loki.EntryHandler

	Logger *slog.Logger
}

Jump to

Keyboard shortcuts

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