prometheus_metrics

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 7 Imported by: 0

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