Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( S3ConnectCounter = prometheus.NewCounter( prometheus.CounterOpts{ Namespace: "mo", Subsystem: "fs", Name: "s3_connect_total", Help: "Total number of s3 connect count.", }) S3DNSResolveCounter = prometheus.NewCounter( prometheus.CounterOpts{ Namespace: "mo", Subsystem: "fs", Name: "s3_dns_resolve_total", Help: "Total number of s3 dns resolve count.", }) FSReadS3Counter = fsReadCounter.WithLabelValues("s3") FSReadHitMemCounter = fsReadCounter.WithLabelValues("hit-mem") FSReadHitDiskCounter = fsReadCounter.WithLabelValues("hit-disk") FSReadHitRemoteCounter = fsReadCounter.WithLabelValues("hit-remote") FSWriteS3Counter = fsWriteCounter.WithLabelValues("s3") FSWriteLocalCounter = fsWriteCounter.WithLabelValues("local") )
View Source
var ( S3WriteIOBytesHistogram = s3IOBytesHistogram.WithLabelValues("write") S3ReadIOBytesHistogram = s3IOBytesHistogram.WithLabelValues("read") S3WriteIODurationHistogram = s3IODurationHistogram.WithLabelValues("write") S3ReadIODurationHistogram = s3IODurationHistogram.WithLabelValues("read") S3GetConnDurationHistogram = s3ConnDurationHistogram.WithLabelValues("get-conn") S3DNSResolveDurationHistogram = s3ConnDurationHistogram.WithLabelValues("dns-resolve") S3ConnectDurationHistogram = s3ConnDurationHistogram.WithLabelValues("connect") S3TLSHandshakeDurationHistogram = s3ConnDurationHistogram.WithLabelValues("tls-handshake") LocalWriteIOBytesHistogram = localIOBytesHistogram.WithLabelValues("write") LocalReadIOBytesHistogram = localIOBytesHistogram.WithLabelValues("read") LocalWriteIODurationHistogram = localIODurationHistogram.WithLabelValues("write") LocalReadIODurationHistogram = localIODurationHistogram.WithLabelValues("read") )
View Source
var ( HeartbeatHistogram = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: "hakeeper", Subsystem: "heartbeat_send", Name: "duration_seconds", Help: "hakeeper heartbeat send durations", Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), }, []string{"type"}) HeartbeatFailureCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: "hakeeper", Subsystem: "heartbeat_send", Name: "failed_total", Help: "hakeeper heartbeat failed count", }, []string{"type"}) HeartbeatRecvHistogram = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: "hakeeper", Subsystem: "heartbeat_recv", Name: "duration_seconds", Help: "hakeeper heartbeat recv durations", Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), }, []string{"type"}) HeartbeatRecvFailureCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: "hakeeper", Subsystem: "heartbeat_recv", Name: "failed_total", Help: "hakeeper heartbeat recv failed count", }, []string{"type"}) )
View Source
var ( LogTailSendQueueSizeGauge = logTailQueueSizeGauge.WithLabelValues("send") LogTailReceiveQueueSizeGauge = logTailQueueSizeGauge.WithLabelValues("receive") )
View Source
var ( LogTailBytesHistogram = prometheus.NewHistogram( prometheus.HistogramOpts{ Namespace: "mo", Subsystem: "logtail", Name: "bytes", Help: "Bucketed histogram of logtail log bytes.", Buckets: prometheus.ExponentialBuckets(1, 2.0, 10), }) LogTailApplyDurationHistogram = prometheus.NewHistogram( prometheus.HistogramOpts{ Namespace: "mo", Subsystem: "logtail", Name: "apply_duration_seconds", Help: "Bucketed histogram of apply log tail into mem-table duration.", Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), }) LogTailAppendDurationHistogram = prometheus.NewHistogram( prometheus.HistogramOpts{ Namespace: "mo", Subsystem: "logtail", Name: "append_duration_seconds", Help: "Bucketed histogram of append log tail into logservice duration.", Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), }) LogtailSendTotalHistogram = logTailSendDurationHistogram.WithLabelValues("total") LogtailSendLatencyHistogram = logTailSendDurationHistogram.WithLabelValues("latency") LogtailSendNetworkHistogram = logTailSendDurationHistogram.WithLabelValues("network") )
View Source
var ( TxnUserCounter = txnCounter.WithLabelValues("user") TxnInternalCounter = txnCounter.WithLabelValues("internal") TxnStatementTotalCounter = txnStatementCounter.WithLabelValues("total") TxnStatementRetryCounter = txnStatementCounter.WithLabelValues("retry") TxnCNCommitCounter = txnCommitCounter.WithLabelValues("cn") TxnTNReceiveCommitCounter = txnCommitCounter.WithLabelValues("tn-receive") TxnTNCommitHandledCounter = txnCommitCounter.WithLabelValues("tn-handle") TxnRollbackCounter = prometheus.NewCounter( prometheus.CounterOpts{ Namespace: "mo", Subsystem: "txn", Name: "rollback_total", Help: "Total number of txn rollback handled.", }) TxnLockTotalCounter = txnLockCounter.WithLabelValues("total") TxnLocalLockTotalCounter = txnLockCounter.WithLabelValues("local") TxnRemoteLockTotalCounter = txnLockCounter.WithLabelValues("remote") )
View Source
var ( TxnCommitQueueSizeGauge = txnQueueSizeGauge.WithLabelValues("commit") TxnWaitActiveQueueSizeGauge = txnQueueSizeGauge.WithLabelValues("wait-active") TxnActiveQueueSizeGauge = txnQueueSizeGauge.WithLabelValues("active") )
View Source
var ( TxnCNCommitDurationHistogram = txnCommitDurationHistogram.WithLabelValues("cn") TxnCNSendCommitDurationHistogram = txnCommitDurationHistogram.WithLabelValues("cn-send") TxnCNCommitResponseDurationHistogram = txnCommitDurationHistogram.WithLabelValues("cn-resp") TxnCNCommitWaitLogtailDurationHistogram = txnCommitDurationHistogram.WithLabelValues("cn-wait-logtail") TxnTNCommitDurationHistogram = txnCommitDurationHistogram.WithLabelValues("tn") TxnLifeCycleDurationHistogram = prometheus.NewHistogram( prometheus.HistogramOpts{ Namespace: "mo", Subsystem: "txn", Name: "life_duration_seconds", Help: "Bucketed histogram of txn life cycle duration.", Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), }) TxnCreateTotalDurationHistogram = txnCreateDurationHistogram.WithLabelValues("total") TxnDetermineSnapshotDurationHistogram = txnCreateDurationHistogram.WithLabelValues("determine-snapshot") TxnWaitActiveDurationHistogram = txnCreateDurationHistogram.WithLabelValues("wait-active") TxnStatementBuildPlanDurationHistogram = txnStatementDurationHistogram.WithLabelValues("build-plan") TxnStatementExecuteDurationHistogram = txnStatementDurationHistogram.WithLabelValues("execute") TxnAcquireLockDurationHistogram = txnLockDurationHistogram.WithLabelValues("acquire") TxnHoldLockDurationHistogram = txnLockDurationHistogram.WithLabelValues("hold") TxnUnlockDurationHistogram = prometheus.NewHistogram( prometheus.HistogramOpts{ Namespace: "mo", Subsystem: "txn", Name: "unlock_duration_seconds", Help: "Bucketed histogram of release lock duration.", Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), }) TxnTableRangeDurationHistogram = prometheus.NewHistogram( prometheus.HistogramOpts{ Namespace: "mo", Subsystem: "txn", Name: "ranges_duration_seconds", Help: "Bucketed histogram of txn table ranges duration.", Buckets: prometheus.ExponentialBuckets(0.0005, 2.0, 20), }) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.