Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSDKMetrics ¶ added in v0.6.0
func RegisterSDKMetrics()
Types ¶
type Metrics ¶
type Metrics struct { //biz ConnectionOnlineGaugeVec *prometheus.GaugeVec //command ZTInfoCounterVec *prometheus.CounterVec IsLeaderGaugeVec *prometheus.GaugeVec LRangeSeekHistogram prometheus.Histogram GCKeysCounterVec *prometheus.CounterVec //expire ExpireKeysTotal *prometheus.CounterVec //tikvGC TiKVGCTotal *prometheus.CounterVec //command biz CommandCallHistogramVec *prometheus.HistogramVec TxnBeginHistogramVec *prometheus.HistogramVec CommandFuncDoneHistogramVec *prometheus.HistogramVec TxnCommitHistogramVec *prometheus.HistogramVec ReplyFuncDoneHistogramVec *prometheus.HistogramVec CommandArgsNumHistogramVec *prometheus.HistogramVec TxnRetriesCounterVec *prometheus.CounterVec TxnConflictsCounterVec *prometheus.CounterVec TxnFailuresCounterVec *prometheus.CounterVec MultiCommandHistogramVec *prometheus.HistogramVec //logger LogMetricsCounterVec *prometheus.CounterVec }
Metrics prometheus statistics
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server status server
func (*Server) GracefulStop ¶
GracefulStop serve graceful stop
func (*Server) ListenAndServe ¶
ListenAndServe start the service by address
Click to show internal directories.
Click to hide internal directories.