metrics

package
v2.2.13 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResponseTime = prometheus.NewHistogram(prometheus.HistogramOpts{
		Name:    "cluster_manager_http_response_time_seconds_histogram",
		Help:    "Response time to HTTP requests in seconds",
		Buckets: prometheus.DefBuckets,
	})

	HttpResponseCounter = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "cluster_manager_http_response_codes_counter",
			Help: "Count of HTTP response codes per endpoint",
		},
		[]string{"method", "path", "code"},
	)
)

Functions

func GetRegistry

func GetRegistry() *prometheus.Registry

Types

This section is empty.

Jump to

Keyboard shortcuts

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