Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServerMetrics ¶
type ServerMetrics struct { NodeEventCounter *prometheus.CounterVec NodeAliveCounter *prometheus.CounterVec }
var (
Metrics *ServerMetrics
)
func NewServerMetrics ¶
func NewServerMetrics() *ServerMetrics
func (*ServerMetrics) AddNodeAlive ¶
func (m *ServerMetrics) AddNodeAlive(id, domain, hostname string, v uint64)
存活的节点添加
func (*ServerMetrics) AddNodeEvent ¶
func (m *ServerMetrics) AddNodeEvent(typ, event, id, domain, hostname string, v int64)
节点事件添加
Click to show internal directories.
Click to hide internal directories.