selfhosted

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-2-Clause, BSD-3-Clause, PostgreSQL Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverLogLocation

func DiscoverLogLocation(ctx context.Context, servers []*state.Server, globalCollectionOpts state.CollectionOpts, logger *util.Logger)

DiscoverLogLocation - Tries to find the log location for a currently running Postgres process and outputs the presumed location using the logger

func GetSystemState

func GetSystemState(server *state.Server, logger *util.Logger) (system state.SystemState)

GetSystemState - Gets system information about a self-hosted (physical/virtual) system

func SetupLogTailForServer added in v0.42.1

func SetupLogTailForServer(ctx context.Context, wg *sync.WaitGroup, globalCollectionOpts state.CollectionOpts, logger *util.Logger, server *state.Server, parsedLogStream chan state.ParsedLogStreamItem) error

func SetupLogTails

func SetupLogTails(ctx context.Context, wg *sync.WaitGroup, globalCollectionOpts state.CollectionOpts, logger *util.Logger, servers []*state.Server, parsedLogStream chan state.ParsedLogStreamItem)

SetupLogTails - Sets up continuously running log tails for all servers with a local log directory or file specified

Types

type SelfHostedLogStreamItem

type SelfHostedLogStreamItem struct {
	Line string

	// Optional, only used for syslog messages
	OccurredAt         time.Time
	BackendPid         int32
	LogLineNumber      int32
	LogLineNumberChunk int32
}

Jump to

Keyboard shortcuts

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