metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CustomMetricsPort   int32  = 8989
	OperatorMetricsAddr string = ":8443"
)

Functions

func ServeCustomMetrics

func ServeCustomMetrics()

自定义operator cr监控信息

Types

type Instrumenter

type Instrumenter interface {
	IncMongoReconcileError(namespace string, name string)
}

Instrumenter is the interface that will collect the metrics and has ability to send/expose those metrics.

var MetricClient Instrumenter

type PromMetrics

type PromMetrics struct {
	// contains filtered or unexported fields
}

PromMetrics implements the instrumenter so the metrics can be managed by Prometheus.

func NewPrometheusMetrics

func NewPrometheusMetrics(path string, mux *http.ServeMux, registry *prometheus.Registry) *PromMetrics

NewPrometheusMetrics returns a new PromMetrics object.

func (*PromMetrics) IncMongoReconcileError

func (p *PromMetrics) IncMongoReconcileError(namespace string, name string)

Jump to

Keyboard shortcuts

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