pgstatstatements

package
v2.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package pgstatstatements runs built-in QAN Agent for PostgreSQL pg stats statements.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PGStatStatementsQAN

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

PGStatStatementsQAN QAN services connects to PostgreSQL and extracts stats.

func New

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

New creates new PGStatStatementsQAN QAN service.

func (*PGStatStatementsQAN) Changes

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

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

func (*PGStatStatementsQAN) Run

func (m *PGStatStatementsQAN) 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
	AgentID string
}

Params represent Agent parameters.

Jump to

Keyboard shortcuts

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