prometheus_metrics

package
v0.2.29 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultPort = "9746"
)

Variables

This section is empty.

Functions

func InitHTTPServer

func InitHTTPServer(listenAddr string, shutdownContext context.Context) (func() error, error)

Types

type PrometheusMetrics

type PrometheusMetrics struct {
	CronsCurrentlyRunningGauge   prometheus.GaugeVec
	CronsExecCounter             prometheus.CounterVec
	CronsSuccessCounter          prometheus.CounterVec
	CronsFailCounter             prometheus.CounterVec
	CronsDeadlineExceededCounter prometheus.CounterVec
	CronsExecutionTimeHistogram  prometheus.HistogramVec
}

func NewPrometheusMetrics

func NewPrometheusMetrics() PrometheusMetrics

func (*PrometheusMetrics) Reset

func (p *PrometheusMetrics) Reset()

Jump to

Keyboard shortcuts

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