Help us shape the future of Go! Take the 2026 Go Developer Survey

qan

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package qan contains business logic of working with QAN and qan-agent on PMM Server node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(ctx context.Context, baseDir string, supervisor services.Supervisor) (*Service, error)

func (*Service) AddMySQL

func (svc *Service) AddMySQL(ctx context.Context, rdsNode *models.RDSNode, rdsService *models.RDSService, qanAgent *models.QanAgent) error

AddMySQL adds MySQL instance to QAN, configuring and enabling it. It sets MySQL instance UUID to qanAgent.QANDBInstanceUUID.

func (*Service) EnsureAgentRuns added in v1.6.1

func (svc *Service) EnsureAgentRuns(ctx context.Context, nameForSupervisor string, port uint16) error

EnsureAgentRuns checks qan-agent process status and starts it if it is not configured or down.

func (*Service) RemoveMySQL

func (svc *Service) RemoveMySQL(ctx context.Context, qanAgent *models.QanAgent) error

Jump to

Keyboard shortcuts

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