monitor

package
v0.0.0-...-17765ca Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPrometheusConfig

func DefaultPrometheusConfig() *prometheusConfig

DefaultPrometheusConfig returns a default PrometheusConfig pointer

Types

type OrderMetric

type OrderMetric struct {
	FullFilledNum    metrics.Gauge
	PendingNum       metrics.Gauge
	CanceledNum      metrics.Gauge
	ExpiredNum       metrics.Gauge
	PartialFilledNum metrics.Gauge
}

OrderMetric is the struct of metric in order module

func DefaultOrderMetrics

func DefaultOrderMetrics(config *prometheusConfig) *OrderMetric

DefaultOrderMetrics returns Metrics build using Prometheus client library if Prometheus is enabled Otherwise, it returns no-op Metrics

func NewOrderMetrics

func NewOrderMetrics(labelsAndValues ...string) *OrderMetric

NewOrderMetrics returns a pointer of a new OrderMetric object

func NopOrderMetrics

func NopOrderMetrics() *OrderMetric

NopOrderMetrics returns a pointer of a no-op Metrics

type StreamMetrics

type StreamMetrics struct {
	CacheSize metrics.Gauge
}

StreamMetrics is the struct of metric in stream module

func DefaultStreamMetrics

func DefaultStreamMetrics(config *prometheusConfig) *StreamMetrics

DefaultStreamMetrics returns Metrics build using Prometheus client library if Prometheus is enabled Otherwise, it returns no-op Metrics

func NewStreamMetrics

func NewStreamMetrics(labelsAndValues ...string) *StreamMetrics

NewStreamMetrics returns a pointer of a new StreamMetrics object

func NopStreamMetrics

func NopStreamMetrics() *StreamMetrics

NopStreamMetrics returns a pointer of no-op Metrics

Jump to

Keyboard shortcuts

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