Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GinRequestTotalCount = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "gin_request_total", Help: "Number of hello requests in total", }, []string{"method", "endpoint"}, ) GinRequestGauge = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "gin_request_total2", Help: "Number of hello requests in total", }, []string{"method", "endpoint"}, ) GinRequestHistogram = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "gin_request_total3", Help: "Number of hello requests in total", Buckets: []float64{}, }, []string{"method", "endpoint"}, ) GinRequestSummary = prometheus.NewSummaryVec( prometheus.SummaryOpts{ Name: "gin_request_time_millisecond", Help: "Number of hello requests in total", Objectives: map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001}, }, []string{"method", "endpoint"}, ) )
Functions ¶
func AppMetrics ¶
Types ¶
type GinRoutesInfo ¶
Click to show internal directories.
Click to hide internal directories.