Skip to content

Commit

Permalink
fix: pass ci
Browse files Browse the repository at this point in the history
Signed-off-by: 逆流而上 <[email protected]>
  • Loading branch information
DokiDoki1103 committed Feb 18, 2024
1 parent 9b27947 commit 923dffe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mq/mqcomponent/metrics/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,21 @@ import (
type MetricsServer struct {
}

// Start -
func (s *MetricsServer) Start(ctx context.Context, cfg *configs.Config) error {
return s.StartCancel(ctx, nil, cfg)
}

// CloseHandle -
func (s *MetricsServer) CloseHandle() {
}

// NewMetricsServer -
func NewMetricsServer() *MetricsServer {
return &MetricsServer{}
}

// StartCancel -
func (s *MetricsServer) StartCancel(ctx context.Context, cancel context.CancelFunc, cfg *configs.Config) error {
prometheus.MustRegister(version.NewCollector("acp_mq"))
prometheus.MustRegister(monitor.NewExporter(mqclient.Default().ActionMQ()))
Expand Down

0 comments on commit 923dffe

Please sign in to comment.