metrics

package
v2.1.16 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SearchSchedulerClusterCount = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: types.MetricsNamespace,
		Subsystem: types.ManagerMetricsName,
		Name:      "search_scheduler_cluster_total",
		Help:      "Counter of the number of searching scheduler cluster.",
	}, []string{"version", "commit"})

	SearchSchedulerClusterFailureCount = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: types.MetricsNamespace,
		Subsystem: types.ManagerMetricsName,
		Name:      "search_scheduler_cluster_failure_total",
		Help:      "Counter of the number of failed of searching scheduler cluster.",
	}, []string{"version", "commit"})

	VersionGauge = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: types.MetricsNamespace,
		Subsystem: types.ManagerMetricsName,
		Name:      "version",
		Help:      "Version info of the service.",
	}, []string{"major", "minor", "git_version", "git_commit", "platform", "build_time", "go_version", "go_tags", "go_gcflags"})
)

Variables declared for metrics.

Functions

func New

func New(cfg *config.MetricsConfig, grpcServer *grpc.Server) *http.Server

Types

This section is empty.

Jump to

Keyboard shortcuts

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