probestatus

package
v0.12.8 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package probestatus implements a surfacer that exposes probes' status over web interface. This surfacer builds an in-memory timeseries database from the incoming EventMetrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Surfacer

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

Surfacer implements a status surfacer for Cloudprober.

func New

func New(ctx context.Context, config *configpb.SurfacerConf, opts *options.Options, l *logger.Logger) (*Surfacer, error)

New returns a probestatus surfacer based on the config provided. It sets up a goroutine to process both the incoming EventMetrics and the web requests for the URL handler /metrics.

func (*Surfacer) Write

func (ps *Surfacer) Write(_ context.Context, em *metrics.EventMetrics)

Write queues the incoming data into a channel. This channel is watched by a goroutine that actually processes the data and updates the in-memory database.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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