metrics

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionStatusActive     = "active"
	TransactionStatusCommitted  = "committed"
	TransactionStatusRollbacked = "rollbacked"
	TransactionStatusTimeout    = "timeout"
)

Variables

View Source
var (
	GlobalTransactionCounter = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "dbpack",
		Subsystem: "global_transaction",
		Name:      "count",
		Help:      "global transaction count",
	}, []string{"appid", "transactionname", "status"})

	BranchTransactionCounter = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "dbpack",
		Subsystem: "branch_transaction",
		Name:      "count",
		Help:      "branch transaction count",
	}, []string{"appid", "resourceid", "status"})

	BranchTransactionTimer = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Namespace: "dbpack",
		Subsystem: "branch_transaction",
		Name:      "timer",
		Help:      "global transaction timer",
	}, []string{"appid", "resourceid", "status"})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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