You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
问题原因:
源码
// SetMetricPath set metricPath property. metricPath is used for Prometheus
// to get gin server monitoring data.
func (m *Monitor) SetMetricPath(path string) {
m.metricPath = defaultMetricPath
}
是不是应该改为
m.metricPath = path
The text was updated successfully, but these errors were encountered:
当前版本:
github.com/penglongli/gin-metrics v0.1.0
问题情况:
m.SetMetricPath("/metrics") 之后实际访问metrics接口路径还是defaultMetricPath(/debug/metrics)
问题原因:
源码
// SetMetricPath set metricPath property. metricPath is used for Prometheus
// to get gin server monitoring data.
func (m *Monitor) SetMetricPath(path string) {
m.metricPath = defaultMetricPath
}
是不是应该改为
m.metricPath = path
The text was updated successfully, but these errors were encountered: