prober

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package prober provides a prober for running a set of probes.

Prober takes in a config proto which dictates what probes should be created with what configuration, and manages the asynchronous fan-in/fan-out of the metrics data from these probes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prober

type Prober struct {
	Probes  map[string]*probes.ProbeInfo
	Servers []*servers.ServerInfo

	Surfacers []*surfacers.SurfacerInfo

	// Used by GetConfig for /config handler.
	TextConfig string
	// contains filtered or unexported fields
}

Prober represents a collection of probes where each probe implements the Probe interface.

func (*Prober) AddProbe

func (pr *Prober) AddProbe(ctx context.Context, req *pb.AddProbeRequest) (*pb.AddProbeResponse, error)

AddProbe adds the given probe to cloudprober.

func (*Prober) Init

func (pr *Prober) Init(ctx context.Context, cfg *configpb.ProberConfig, l *logger.Logger) error

Init initialize prober with the given config file.

func (*Prober) ListProbes

func (pr *Prober) ListProbes(ctx context.Context, req *pb.ListProbesRequest) (*pb.ListProbesResponse, error)

ListProbes gRPC method returns the list of probes from the in-memory database.

func (*Prober) RemoveProbe

func (pr *Prober) RemoveProbe(ctx context.Context, req *pb.RemoveProbeRequest) (*pb.RemoveProbeResponse, error)

RemoveProbe gRPC method cancels the given probe and removes its from the prober's internal database.

func (*Prober) Start

func (pr *Prober) Start(ctx context.Context)

Start starts a previously initialized Cloudprober.

Directories

Path Synopsis
This binary implements a Cloudprober gRPC client.
This binary implements a Cloudprober gRPC client.

Jump to

Keyboard shortcuts

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