metrics

package
v0.0.0-...-e9e388d Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

metrics.go

Index

Constants

This section is empty.

Variables

View Source
var (
	ClientRequestsSent = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "poc_client_requests_sent_total",
		Help: "The total number of requests sent by the client",
	}, []string{"server_id"})

	ClientRequestDistribution = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "poc_client_request_distribution_total",
		Help: "The distribution of requests across servers",
	}, []string{"server_id"})

	ClientRequestLatencies = promauto.NewHistogramVec(prometheus.HistogramOpts{
		Name:    "poc_client_request_latency_seconds",
		Help:    "The latency of client requests",
		Buckets: prometheus.DefBuckets,
	}, []string{"server_id"})

	ClientErrors = promauto.NewCounter(prometheus.CounterOpts{
		Name: "poc_client_errors_total",
		Help: "The total number of errors encountered by the client",
	})

	ClientChangeDetectionTimes = promauto.NewHistogramVec(prometheus.HistogramOpts{
		Name:    "poc_client_change_detection_time_seconds",
		Help:    "The time it takes for the client to detect and adapt to scaling operations",
		Buckets: prometheus.DefBuckets,
	}, []string{"server_id"})

	ClientInactivityTimes = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "poc_client_inactivity_times",
		Help: "The time since the last response from each known server",
	}, []string{"server_id"})

	ServerRequestsReceived = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "poc_server_requests_received_total",
		Help: "The total number of requests received by the server",
	}, []string{"server_id"})

	ServerResponseTimes = promauto.NewHistogramVec(prometheus.HistogramOpts{
		Name:    "poc_server_response_time_seconds",
		Help:    "The time it takes for the server to process and respond to each request",
		Buckets: prometheus.DefBuckets,
	}, []string{"server_id"})

	ServerErrors = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "poc_server_errors_total",
		Help: "The total number of errors encountered by the server",
	}, []string{"server_id"})
)

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