Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TypeHTTP ... TypeHTTP = "http" // TypeGRPCUnary ... TypeGRPCUnary = "unary" // TypeGRPCStream ... TypeGRPCStream = "stream" // TypeRedis ... TypeRedis = "redis" TypeGorm = "gorm" // TypeRocketMQ ... TypeRocketMQ = "rocketmq" // TypeWebsocket ... TypeWebsocket = "ws" // TypeMySQL ... TypeMySQL = "mysql" // CodeJob CodeJobSuccess = "ok" // CodeJobFail ... CodeJobFail = "fail" // CodeJobReentry ... CodeJobReentry = "reentry" // CodeCache CodeCacheMiss = "miss" // CodeCacheHit ... CodeCacheHit = "hit" // Namespace DefaultNamespace = "jupiter" )
View Source
var ( // ServerHandleCounter ... ServerHandleCounter = CounterVecOpts{ Namespace: DefaultNamespace, Name: "server_handle_total", Labels: []string{"type", "method", "peer", "code"}, }.Build() // ServerHandleHistogram ... ServerHandleHistogram = HistogramVecOpts{ Namespace: DefaultNamespace, Name: "server_handle_seconds", Labels: []string{"type", "method", "peer"}, }.Build() // ClientHandleCounter ... ClientHandleCounter = CounterVecOpts{ Namespace: DefaultNamespace, Name: "client_handle_total", Labels: []string{"type", "name", "method", "peer", "code"}, }.Build() // ClientHandleHistogram ... ClientHandleHistogram = HistogramVecOpts{ Namespace: DefaultNamespace, Name: "client_handle_seconds", Labels: []string{"type", "name", "method", "peer"}, }.Build() // JobHandleCounter ... JobHandleCounter = CounterVecOpts{ Namespace: DefaultNamespace, Name: "job_handle_total", Labels: []string{"type", "name", "code"}, }.Build() // JobHandleHistogram ... JobHandleHistogram = HistogramVecOpts{ Namespace: DefaultNamespace, Name: "job_handle_seconds", Labels: []string{"type", "name"}, }.Build() LibHandleHistogram = HistogramVecOpts{ Namespace: DefaultNamespace, Name: "lib_handle_seconds", Labels: []string{"type", "method", "address"}, }.Build() // LibHandleCounter ... LibHandleCounter = CounterVecOpts{ Namespace: DefaultNamespace, Name: "lib_handle_total", Labels: []string{"type", "method", "address", "code"}, }.Build() LibHandleSummary = SummaryVecOpts{ Namespace: DefaultNamespace, Name: "lib_handle_stats", Labels: []string{"name", "status"}, }.Build() // CacheHandleCounter ... CacheHandleCounter = CounterVecOpts{ Namespace: DefaultNamespace, Name: "cache_handle_total", Labels: []string{"type", "name", "action", "code"}, }.Build() // CacheHandleHistogram ... CacheHandleHistogram = HistogramVecOpts{ Namespace: DefaultNamespace, Name: "cache_handle_seconds", Labels: []string{"type", "name", "action"}, }.Build() // BuildInfoGauge ... BuildInfoGauge = GaugeVecOpts{ Namespace: DefaultNamespace, Name: "build_info", Labels: []string{"name", "aid", "mode", "region", "zone", "app_version", "jupiter_version", "start_time", "build_time", "go_version"}, }.Build() )
Functions ¶
func NewCounterVec ¶ added in v0.2.0
NewCounterVec ...
func NewGaugeVec ¶ added in v0.2.0
NewGaugeVec ...
Types ¶
type CounterVecOpts ¶
type CounterVecOpts struct { Namespace string Subsystem string Name string Help string Labels []string }
CounterVecOpts ...
type GaugeVecOpts ¶
type GaugeVecOpts struct { Namespace string Subsystem string Name string Help string Labels []string }
GaugeVecOpts ...
type HistogramVecOpts ¶
type HistogramVecOpts struct { Namespace string Subsystem string Name string Help string Labels []string Buckets []float64 }
HistogramVecOpts ...
type SummaryVecOpts ¶ added in v0.2.0
type SummaryVecOpts struct { Namespace string Subsystem string Name string Help string Labels []string }
SummaryVecOpts ...
func (SummaryVecOpts) Build ¶ added in v0.2.0
func (opts SummaryVecOpts) Build() *summaryVec
Build ...
Click to show internal directories.
Click to hide internal directories.