Documentation ¶
Index ¶
Constants ¶
View Source
const NameSpace = "ns"
Variables ¶
View Source
var ( ResponseTime = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: NameSpace, Name: "http_response_time_milliseconds", Help: "Histogram of RT for HTTP requests (ms).", Buckets: buckets, }, []string{"code", "handler", "method"}, ) ResponseTimeExternal = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: NameSpace, Name: "external_http_response_time_milliseconds", Help: "Histogram of RT for outgoing HTTP requests (ms).", Buckets: buckets, }, []string{"service", "code", "handler", "method"}, ) HandlerDuration = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: NameSpace, Name: "handler_duration_ms", Help: "Histogram of duration (ms) of handlers.", Buckets: buckets, }, []string{"handler", "err", "retries"}, ) NetworkErrorCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: NameSpace, Name: "network_error_counter", Help: "Counter of network errors.", }, []string{"service", "handler", "type"}, ) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.