We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 704b908 + 36be620 commit a1791f9Copy full SHA for a1791f9
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