metrics

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GarmJwtExpiresAt = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: metricNamespace,
		Subsystem: garmClient,
		Name:      "jwt_expiration_timestamp_seconds",
		Help:      "The date after which the obtained JWT expires. Expressed as a Unix Epoch Time",
		ConstLabels: prometheus.Labels{
			metricControllerLabel: metricControllerValue,
		},
	})

	TotalGarmCalls = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: metricNamespace,
			Subsystem: garmClientAPI,
			Name:      "total",
			Help:      "Total number of GARM API calls",
			ConstLabels: prometheus.Labels{
				metricControllerLabel: metricControllerValue,
			},
		}, []string{"method"})

	GarmCallErrors = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Namespace: metricNamespace,
			Subsystem: garmClientAPI,
			Name:      "errors_total",
			Help:      "Number of GARM API calls that failed",
			ConstLabels: prometheus.Labels{
				metricControllerLabel: metricControllerValue,
			},
		}, []string{"method"})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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