probe

package
v0.0.0-...-6fa6ba7 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package probe implements the probe that Hermes uses to monitor a storage system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

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

Probe holds aggregate information about all probe runs, per-target. It also holds the config and options used to initialise the probe.

func (*Probe) Init

func (p *Probe) Init(name string, opts *options.Options) error

Init initializes the probe with the given parameters. This is a required method to implement the cloudprober.Probes.Probe interface.

func (*Probe) Start

func (p *Probe) Start(ctx context.Context, metricChan chan *cpmetrics.EventMetrics)

Start runs the probe indefinitely, unless cancelled, at the configured interval. Probe metrics will be sent via the metricChan at the end of the probe run. This is a required method to implement the cloudprober.Probes.Probe interface. Arguments:

  • ctx: context provided for cancelling probe.
  • metricChan: bidirectional channel used for sending metrics to be surfaced.
  • Must be bidirectional to satisfy cloudprober.Probes.Probe interface.

Directories

Path Synopsis
Package create contains all of the logic necessary to create files with randomized contents in GCS.
Package create contains all of the logic necessary to create files with randomized contents in GCS.
Package delete implements the file deletion operation with a storage system.
Package delete implements the file deletion operation with a storage system.
Package metrics implements the metrics used for recording information when monitoring a storage system.
Package metrics implements the metrics used for recording information when monitoring a storage system.
Package read contains all of the logic necessary to verify the availability and consistency of the file contents and names in GCS.
Package read contains all of the logic necessary to verify the availability and consistency of the file contents and names in GCS.
Package target implements the Target struct used to hold all information and state for a single probe run.
Package target implements the Target struct used to hold all information and state for a single probe run.

Jump to

Keyboard shortcuts

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