We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9257eae commit 1de3905Copy full SHA for 1de3905
ginmetrics/types.go
@@ -78,6 +78,16 @@ func (m *Monitor) SetDuration(duration []float64) {
78
m.reqDuration = duration
79
}
80
81
+func (m *Monitor) SetMetricPrefix(prefix string) {
82
+ metricRequestTotal = prefix + metricRequestTotal
83
+ metricRequestUVTotal = prefix + metricRequestUVTotal
84
+ metricURIRequestTotal = prefix + metricURIRequestTotal
85
+ metricRequestBody = prefix + metricRequestBody
86
+ metricResponseBody = prefix + metricResponseBody
87
+ metricRequestDuration = prefix + metricRequestDuration
88
+ metricSlowRequest = prefix + metricSlowRequest
89
+}
90
+
91
func (m *Monitor) SetMetricSuffix(suffix string) {
92
metricRequestTotal += suffix
93
metricRequestUVTotal += suffix
0 commit comments