pgstatmonitor

package
v2.15.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package pgstatmonitor runs built-in QAN Agent for PostgreSQL pg stat monitor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PGStatMonitorQAN

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

PGStatMonitorQAN QAN services connects to PostgreSQL and extracts stats.

func New

func New(params *Params, l *logrus.Entry) (*PGStatMonitorQAN, error)

New creates new PGStatMonitorQAN QAN service.

func (*PGStatMonitorQAN) Changes

func (m *PGStatMonitorQAN) Changes() <-chan agents.Change

Changes returns channel that should be read until it is closed.

func (*PGStatMonitorQAN) Run

func (m *PGStatMonitorQAN) Run(ctx context.Context)

Run extracts stats data and sends it to the channel until ctx is canceled.

type Params

type Params struct {
	DSN                  string
	DisableQueryExamples bool
	AgentID              string
}

Params represent Agent parameters.

Jump to

Keyboard shortcuts

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