mongodb

package
v2.0.0-beta6+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mongodb runs built-in QAN Agent for MongoDB profiler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change = agents.Change

FIXME Replace this alias, replace with agents.Change.

type MongoDB

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

MongoDB extracts performance data from Mongo op log.

func New

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

New creates new MongoDB QAN service.

func (*MongoDB) Changes

func (m *MongoDB) Changes() <-chan Change

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

func (*MongoDB) Run

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

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

func (*MongoDB) Write

func (m *MongoDB) Write(r *report.Report) error

Write writes MetricsBuckets to pmm-managed

type Params

type Params struct {
	DSN     string
	AgentID string
}

Params represent Agent parameters.

type Profiler

type Profiler interface {
	Start() error
	Stop() error
	Status() map[string]string
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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