|
|
@ -13,7 +13,7 @@ var ( |
|
|
|
Subsystem: "requests", |
|
|
|
Subsystem: "requests", |
|
|
|
Name: "duration_ms", |
|
|
|
Name: "duration_ms", |
|
|
|
Help: "http server requests duration(ms).", |
|
|
|
Help: "http server requests duration(ms).", |
|
|
|
Labels: []string{"path", "caller"}, |
|
|
|
Labels: []string{"path", "caller", "method"}, |
|
|
|
Buckets: []float64{5, 10, 25, 50, 100, 250, 500, 1000}, |
|
|
|
Buckets: []float64{5, 10, 25, 50, 100, 250, 500, 1000}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
_metricServerReqCodeTotal = metric.NewCounterVec(&metric.CounterVecOpts{ |
|
|
|
_metricServerReqCodeTotal = metric.NewCounterVec(&metric.CounterVecOpts{ |
|
|
@ -21,21 +21,21 @@ var ( |
|
|
|
Subsystem: "requests", |
|
|
|
Subsystem: "requests", |
|
|
|
Name: "code_total", |
|
|
|
Name: "code_total", |
|
|
|
Help: "http server requests error count.", |
|
|
|
Help: "http server requests error count.", |
|
|
|
Labels: []string{"path", "caller", "code"}, |
|
|
|
Labels: []string{"path", "caller", "method", "code"}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
_metricServerBBR = metric.NewCounterVec(&metric.CounterVecOpts{ |
|
|
|
_metricServerBBR = metric.NewCounterVec(&metric.CounterVecOpts{ |
|
|
|
Namespace: serverNamespace, |
|
|
|
Namespace: serverNamespace, |
|
|
|
Subsystem: "", |
|
|
|
Subsystem: "", |
|
|
|
Name: "bbr_total", |
|
|
|
Name: "bbr_total", |
|
|
|
Help: "http server bbr total.", |
|
|
|
Help: "http server bbr total.", |
|
|
|
Labels: []string{"url"}, |
|
|
|
Labels: []string{"url", "method"}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
_metricClientReqDur = metric.NewHistogramVec(&metric.HistogramVecOpts{ |
|
|
|
_metricClientReqDur = metric.NewHistogramVec(&metric.HistogramVecOpts{ |
|
|
|
Namespace: clientNamespace, |
|
|
|
Namespace: clientNamespace, |
|
|
|
Subsystem: "requests", |
|
|
|
Subsystem: "requests", |
|
|
|
Name: "duration_ms", |
|
|
|
Name: "duration_ms", |
|
|
|
Help: "http client requests duration(ms).", |
|
|
|
Help: "http client requests duration(ms).", |
|
|
|
Labels: []string{"path"}, |
|
|
|
Labels: []string{"path", "method"}, |
|
|
|
Buckets: []float64{5, 10, 25, 50, 100, 250, 500, 1000}, |
|
|
|
Buckets: []float64{5, 10, 25, 50, 100, 250, 500, 1000}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
_metricClientReqCodeTotal = metric.NewCounterVec(&metric.CounterVecOpts{ |
|
|
|
_metricClientReqCodeTotal = metric.NewCounterVec(&metric.CounterVecOpts{ |
|
|
@ -43,6 +43,6 @@ var ( |
|
|
|
Subsystem: "requests", |
|
|
|
Subsystem: "requests", |
|
|
|
Name: "code_total", |
|
|
|
Name: "code_total", |
|
|
|
Help: "http client requests code count.", |
|
|
|
Help: "http client requests code count.", |
|
|
|
Labels: []string{"path", "code"}, |
|
|
|
Labels: []string{"path", "method", "code"}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
) |
|
|
|
) |
|
|
|