We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 704b908 commit 36be620Copy full SHA for 36be620
ginmetrics/types.go
@@ -78,6 +78,16 @@ func (m *Monitor) SetDuration(duration []float64) {
78
m.reqDuration = duration
79
}
80
81
+func (m *Monitor) SetMetricSuffix(suffix string) {
82
+ metricRequestTotal += suffix
83
+ metricRequestUVTotal += suffix
84
+ metricURIRequestTotal += suffix
85
+ metricRequestBody += suffix
86
+ metricResponseBody += suffix
87
+ metricRequestDuration += suffix
88
+ metricSlowRequest += suffix
89
+}
90
+
91
// AddMetric add custom monitor metric.
92
func (m *Monitor) AddMetric(metric *Metric) error {
93
if _, ok := m.metrics[metric.Name]; ok {
0 commit comments