perfschema

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 perfschema runs built-in QAN Agent for MySQL performance schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	DSN                  string
	AgentID              string
	DisableQueryExamples bool
}

Params represent Agent parameters.

type PerfSchema

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

PerfSchema QAN services connects to MySQL and extracts performance data.

func New

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

New creates new PerfSchema QAN service.

func (*PerfSchema) Changes

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

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

func (*PerfSchema) Run

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

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

Jump to

Keyboard shortcuts

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