slowlog

package
v2.8.0-beta1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package slowlog runs built-in QAN Agent for MySQL slow log.

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
	MaxSlowlogFileSize   int64
	SlowLogFilePrefix    string // for development and testing
}

Params represent Agent parameters.

type SlowLog

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

SlowLog extracts performance data from MySQL slow log.

func New

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

New creates new SlowLog QAN service.

func (*SlowLog) Changes

func (s *SlowLog) Changes() <-chan agents.Change

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

func (*SlowLog) Run

func (s *SlowLog) Run(ctx context.Context)

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

Directories

Path Synopsis
Package parser implements a MySQL slow log parser.
Package parser implements a MySQL slow log parser.

Jump to

Keyboard shortcuts

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