checks

package
v2.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Package checks provides security checks functionality.

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
}

Service is responsible for interactions with Percona Check service.

func New

func New(agentsRegistry agentsRegistry, alertsRegistry alertRegistry, db *reform.DB, pmmVersion string) *Service

New returns Service with given PMM version.

func (*Service) Collect

func (s *Service) Collect(ch chan<- prom.Metric)

Collect implements prom.Collector.

func (*Service) Describe

func (s *Service) Describe(ch chan<- *prom.Desc)

Describe implements prom.Collector.

func (*Service) Run

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

Run runs checks service that grabs checks from Percona Checks service every interval until context is canceled.

Jump to

Keyboard shortcuts

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