metrics

package
v0.0.0-...-928d336 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalAddress

func GetLocalAddress() (hostname, ip string, err error)

Types

type CompletionTimestamp

type CompletionTimestamp struct {
	Name        string
	Description string
	TargetURL   string
	Labels      map[string]string
	Gauge       prometheus.Gauge
}

CompletionTimestamp records the timestamp of the last successful execution and result of a given job

func (*CompletionTimestamp) NewGauge

func (ct *CompletionTimestamp) NewGauge(metricLabels map[string]string) error

func (*CompletionTimestamp) StartGauge

func (ct *CompletionTimestamp) StartGauge(jobName, targetURL string) error

func (*CompletionTimestamp) StartGaugeForSeconds

func (ct *CompletionTimestamp) StartGaugeForSeconds(jobName, targetURL string, interval int) error

func (*CompletionTimestamp) StopGauge

func (ct *CompletionTimestamp) StopGauge(jobName, targetURL string) error

Jump to

Keyboard shortcuts

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