Documentation ¶
Index ¶
- type MetricsServer
- func (m *MetricsServer) IncExtensionRequestCounter(extension string, status int)
- func (m *MetricsServer) IncRedisRequest(failed bool)
- func (m *MetricsServer) ObserveExtensionRequestDuration(extension string, duration time.Duration)
- func (m *MetricsServer) ObserveRedisRequestDuration(duration time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsServer ¶
func NewMetricsServer ¶
func NewMetricsServer(host string, port int) *MetricsServer
NewMetricsServer returns a new prometheus server which collects api server metrics
func (*MetricsServer) IncExtensionRequestCounter ¶ added in v2.11.0
func (m *MetricsServer) IncExtensionRequestCounter(extension string, status int)
func (*MetricsServer) IncRedisRequest ¶
func (m *MetricsServer) IncRedisRequest(failed bool)
func (*MetricsServer) ObserveExtensionRequestDuration ¶ added in v2.11.0
func (m *MetricsServer) ObserveExtensionRequestDuration(extension string, duration time.Duration)
func (*MetricsServer) ObserveRedisRequestDuration ¶
func (m *MetricsServer) ObserveRedisRequestDuration(duration time.Duration)
ObserveRedisRequestDuration observes redis request duration
Click to show internal directories.
Click to hide internal directories.