Documentation ¶
Index ¶
- func NewHTTPHandlerFactory(rm *metrics.RouterMetrics, hf ginRouter.HandlerFactory, log logging.Logger) ginRouter.HandlerFactory
- type Collector
- func (c *Collector) HandlerFactory(hf ginRouter.HandlerFactory, log logging.Logger) ginRouter.HandlerFactory
- func (c *Collector) NewEngine(debugMode bool) *gin.Engine
- func (c *Collector) NewExportHandler() gin.HandlerFunc
- func (c *Collector) RunEndpoint(ctx context.Context, engine *gin.Engine, log logging.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPHandlerFactory ¶
func NewHTTPHandlerFactory(rm *metrics.RouterMetrics, hf ginRouter.HandlerFactory, log logging.Logger) ginRouter.HandlerFactory
NewHTTPHandlerFactory - Router 단위의 Metrics 처리를 수행하는 HandlerFactory 생성
Types ¶
type Collector ¶
Collector - Metrics 기반의 Collector 구조
func (*Collector) HandlerFactory ¶
func (c *Collector) HandlerFactory(hf ginRouter.HandlerFactory, log logging.Logger) ginRouter.HandlerFactory
HandlerFactory - 전달된 HandlerFactory 수행 전에 필요한 Metric 관련 처리를 수행하는 HandlerFactory 구성
func (*Collector) NewExportHandler ¶
func (c *Collector) NewExportHandler() gin.HandlerFunc
NewExportHandler - 수집된 Metrics를 JSON 포맷으로 노출하는 go-metrics에서 제공되는 http.Handler 생성
Click to show internal directories.
Click to hide internal directories.