Documentation ¶
Index ¶
Constants ¶
View Source
const ( CodeOK = "OK" CodeError = "Error" )
Variables ¶
View Source
var ( // TypeHTTP ... TypeHTTP = "http" // TypeGRPCClient ... TypeGRPCClient = "grpc_client" // TypeGRPCServer ... TypeGRPCServer = "grpc_server" // TypeRedis ... TypeRedis = "redis" // TypeGorm ... TypeGorm = "gorm" // TypeMySQL ... TypeMySQL = "mysql" // DefaultNamespace ... DefaultNamespace = "" )
Functions ¶
func SplitGrpcMethodName ¶
SplitGrpcMethodName split grpc full method into service and method.
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 HistogramVec ¶
type HistogramVec struct {
*prometheus.HistogramVec
}
HistogramVec ...
func (*HistogramVec) Observe ¶
func (histogram *HistogramVec) Observe(v float64, labels ...string)
Observe ...
func (*HistogramVec) ObserveWithExemplar ¶
func (histogram *HistogramVec) ObserveWithExemplar(v float64, exemplar prometheus.Labels, labels ...string)
type HistogramVecOpts ¶
type HistogramVecOpts struct { Namespace string Subsystem string Name string Help string Labels []string Buckets []float64 }
HistogramVecOpts ...
type SummaryVec ¶
type SummaryVec struct {
*prometheus.SummaryVec
}
SummaryVec ...
func (*SummaryVec) Observe ¶
func (summary *SummaryVec) Observe(v float64, labels ...string)
Observe ...
Click to show internal directories.
Click to hide internal directories.