package
2.0.0+incompatible
Repository: https://github.com/okex/exchain.git
Documentation: pkg.go.dev

# Functions

CombineMonitorsRes combines all the monitors' results.
DefaultOrderMetrics returns Metrics build using Prometheus client library if Prometheus is enabled Otherwise, it returns no-op Metrics.
DefaultPrometheusConfig returns a default PrometheusConfig pointer.
DefaultStreamMetrics returns Metrics build using Prometheus client library if Prometheus is enabled Otherwise, it returns no-op Metrics.
GetPortMetrics returns Metrics build using Prometheus client library if Prometheus is enabled Otherwise, it returns no-op Metrics.
GetPortMonitor gets the global instance of PortMonitor.
GetTendermintMonitor gets the global instance of TendermintMonitor.
NewOrderMetrics returns a pointer of a new OrderMetric object.
NewPortMetrics returns a pointer of a new PortMetrics object.
NewPortMonitor creates a new instance of PortMonitor.
NewStreamMetrics returns a pointer of a new StreamMetrics object.
NewTendermintMonitor creates a new instance of TendermintMonitor.
NopOrderMetrics returns a pointer of a no-op Metrics.
NopPortMetrics returns a pointer of a no-op Metrics.
NopStreamMetrics returns a pointer of no-op Metrics.
ParsePort parses port into uint from a string.

# Constants

const.

# Structs

OrderMetric is the struct of metric in order module.
PortMetrics monitors connecting number.
PortMonitor - structure of monitor for ports.
StreamMetrics is the struct of metric in stream module.
TendermintMonitor - structure of monitor for block/mempool monitoring.