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