metrics

package
v0.0.0-...-d71fd26 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricLabelRejected  = "Rejected"
	MetricsLabelVerbGet  = "Get"
	MetricsLabelVerbList = "List"
	MetricsPort          = "8082"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyMetrics

type ProxyMetrics struct {
	// RegServProxyAPIHistogramVec measures the time taken by proxy before forwarding the request
	RegServProxyAPIHistogramVec *prometheus.HistogramVec
	// RegServWorkspaceHistogramVec measures the response time for either response or error from proxy when there is no routing
	RegServWorkspaceHistogramVec *prometheus.HistogramVec
	Reg                          *prometheus.Registry
}

func NewProxyMetrics

func NewProxyMetrics(reg *prometheus.Registry) *ProxyMetrics

func (*ProxyMetrics) StartMetricsServer

func (p *ProxyMetrics) StartMetricsServer() *http.Server

Jump to

Keyboard shortcuts

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