Documentation ¶
Index ¶
- func DiscoverLogLocation(servers []*state.Server, globalCollectionOpts state.CollectionOpts, ...)
- func GetSystemState(config config.ServerConfig, logger *util.Logger) (system state.SystemState)
- func SetupLogTails(ctx context.Context, servers []*state.Server, ...)
- func TestLogTail(server *state.Server, globalCollectionOpts state.CollectionOpts, ...) error
- type SelfHostedLogStreamItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverLogLocation ¶
func DiscoverLogLocation(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(config config.ServerConfig, logger *util.Logger) (system state.SystemState)
GetSystemState - Gets system information about a self-hosted (physical/virtual) system
func SetupLogTails ¶
func SetupLogTails(ctx context.Context, servers []*state.Server, globalCollectionOpts state.CollectionOpts, logger *util.Logger)
SetupLogTails - Sets up continuously running log tails for all servers with a local log directory or file specified
func TestLogTail ¶
func TestLogTail(server *state.Server, globalCollectionOpts state.CollectionOpts, prefixedLogger *util.Logger) error
TestLogTail - Tests the tailing of a log file (without watching it continuously) as well as parsing and analyzing the log data
Types ¶
Click to show internal directories.
Click to hide internal directories.