agent

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AggregatedObservations = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "nwpd_aggregated_observations",
			Help: "Total counts of observations",
		},
		[]string{"src", "dest", "jobid", "status"},
	)
	AggregatedObservationsLatency = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "nwpd_aggregated_observations_latency_secs",
			Help: "Observation duration in seconds",
		},
		[]string{"src", "dest", "jobid"},
	)
)

Functions

func CreateRunAgentCmd

func CreateRunAgentCmd(injectedVersion string) *cobra.Command

func IncAggregatedObservation

func IncAggregatedObservation(src, dest, jobid string, ok bool)

func ReportAggregatedObservationLatency

func ReportAggregatedObservationLatency(src, dest, jobid string, seconds float64)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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