Documentation ¶
Index ¶
- type MetricsCommon
- func (mc *MetricsCommon) AutoRegister() *MetricsCommon
- func (mc *MetricsCommon) MustRegister(registerer prometheus.Registerer) *MetricsCommon
- func (mc *MetricsCommon) WriteMetricRequest(c *mfctx.Crumps, segment, method string)
- func (mc *MetricsCommon) WriteMetricResponse(c *mfctx.Crumps, mRequest time.Time, segment, method string, statusCode string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsCommon ¶
type MetricsCommon struct { Start *prometheus.CounterVec FinishTotal *prometheus.CounterVec FinishTimeHist *prometheus.HistogramVec FinishTimeTotal *prometheus.CounterVec Alarm map[string]map[string]bool AlarmSegment map[string]bool }
func NewMetricsCommon ¶
func NewMetricsCommon() *MetricsCommon
func (*MetricsCommon) AutoRegister ¶
func (mc *MetricsCommon) AutoRegister() *MetricsCommon
func (*MetricsCommon) MustRegister ¶
func (mc *MetricsCommon) MustRegister(registerer prometheus.Registerer) *MetricsCommon
func (*MetricsCommon) WriteMetricRequest ¶
func (mc *MetricsCommon) WriteMetricRequest(c *mfctx.Crumps, segment, method string)
func (*MetricsCommon) WriteMetricResponse ¶
Click to show internal directories.
Click to hide internal directories.