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.
Click to show internal directories.
Click to hide internal directories.