probe

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricProbeSuccess = promauto.NewCounter(prometheus.CounterOpts{
		Name: "cap_probe_success_total",
		Help: "Total number of successful backend probes",
	})
	MetricProbeErr = promauto.NewCounter(prometheus.CounterOpts{
		Name: "cap_probe_errs_total",
		Help: "Total number of failed backend probes",
	})
)

Functions

This section is empty.

Types

type LivenessProbe

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

func NewLivenessProbe

func NewLivenessProbe(ctx context.Context, target, path string, skipTLSVerify bool) *LivenessProbe

func (*LivenessProbe) IsAlive

func (p *LivenessProbe) IsAlive() bool

Jump to

Keyboard shortcuts

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